Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(636)

Issue 9033043: code review 9033043: cmd/gc: fix some overflows in the compiler (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by r
Modified:
11 years, 10 months ago
Reviewers:
dave
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

cmd/gc: fix some overflows in the compiler Some 64-bit fields were run through 32-bit words, some counts were not checked for overflow, and relocations must fit in 32 bits. Tests to follow.

Patch Set 1 #

Total comments: 3

Patch Set 2 : diff -r 3cbb458c93cf https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -36 lines) Patch
M src/cmd/5g/cgen.c View 1 chunk +3 lines, -1 line 0 comments Download
M src/cmd/5g/gsubr.c View 2 chunks +3 lines, -2 lines 0 comments Download
M src/cmd/6g/cgen.c View 3 chunks +6 lines, -4 lines 0 comments Download
M src/cmd/6g/ggen.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/6g/gobj.c View 1 chunk +2 lines, -1 line 0 comments Download
M src/cmd/6g/gsubr.c View 2 chunks +5 lines, -3 lines 0 comments Download
M src/cmd/6g/reg.c View 2 chunks +3 lines, -3 lines 0 comments Download
M src/cmd/8g/cgen.c View 1 chunk +3 lines, -1 line 0 comments Download
M src/cmd/8g/gsubr.c View 1 chunk +2 lines, -1 line 0 comments Download
M src/cmd/gc/align.c View 3 chunks +5 lines, -2 lines 0 comments Download
M src/cmd/gc/closure.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/gen.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/go.h View 4 chunks +6 lines, -6 lines 0 comments Download
M src/cmd/gc/pgen.c View 2 chunks +11 lines, -2 lines 0 comments Download
M src/cmd/gc/sinit.c View 2 chunks +6 lines, -2 lines 0 comments Download
M src/cmd/gc/subr.c View 4 chunks +8 lines, -3 lines 0 comments Download
M src/cmd/gc/swt.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/gc/typecheck.c View 1 chunk +2 lines, -1 line 0 comments Download
M src/cmd/gc/unsafe.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 10 months ago (2013-04-30 02:48:54 UTC) #1
dsymonds
LGTM
11 years, 10 months ago (2013-04-30 05:42:06 UTC) #2
r
*** Submitted as https://code.google.com/p/go/source/detail?r=587ffbeec2f5 *** cmd/gc: fix some overflows in the compiler Some 64-bit fields ...
11 years, 10 months ago (2013-04-30 05:44:43 UTC) #3
dave_cheney.net
Some general questions about the use of int64 vs vlong. https://codereview.appspot.com/9033043/diff/1/src/cmd/6g/cgen.c File src/cmd/6g/cgen.c (right): https://codereview.appspot.com/9033043/diff/1/src/cmd/6g/cgen.c#newcode571 ...
11 years, 10 months ago (2013-04-30 05:51:28 UTC) #4
r
11 years, 10 months ago (2013-04-30 06:32:48 UTC) #5
The compiler is sloppy about it and should be tidied up, but not now.
int64 and vlong are the same thing.

-rob
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b