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

Issue 14521056: code review 14521056: cmd/8g: work around 64-bit bug in 8c for Plan 9 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by ality
Modified:
10 years, 5 months ago
Reviewers:
r, rsc, lucio
CC:
golang-dev
Visibility:
Public.

Description

cmd/8g: work around 64-bit bug in 8c for Plan 9 CL 13602043 was an attempt that didn't address the actual problem (which was detailed in that thread after the CL was submitted). https://codereview.appspot.com/13602043/ CL 13456043 was an earlier attempt by Lucio De Re that fixed the actual problem but changed too much code according to Russ. https://codereview.appspot.com/13456043/ This CL works around the bug in the simplest way possible: by storing part of the problematic expression in a temporary.

Patch Set 1 #

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

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

Total comments: 2

Patch Set 4 : diff -r 062f1f0ea8ba https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M src/cmd/8g/ggen.c View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 8
ality
Hello rsc@golang.org, lucio.dere@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 7 months ago (2013-10-11 18:07:17 UTC) #1
r
https://codereview.appspot.com/14521056/diff/1002/src/cmd/8g/ggen.c File src/cmd/8g/ggen.c (right): https://codereview.appspot.com/14521056/diff/1002/src/cmd/8g/ggen.c#newcode49 src/cmd/8g/ggen.c:49: for(i=0, j=(stkptrsize-stkzerosize)/widthptr*2; i<stkzerosize; i+=widthptr, j+=2) can you move the ...
10 years, 7 months ago (2013-10-11 18:38:53 UTC) #2
ality
PTAL https://codereview.appspot.com/14521056/diff/1002/src/cmd/8g/ggen.c File src/cmd/8g/ggen.c (right): https://codereview.appspot.com/14521056/diff/1002/src/cmd/8g/ggen.c#newcode49 src/cmd/8g/ggen.c:49: for(i=0, j=(stkptrsize-stkzerosize)/widthptr*2; i<stkzerosize; i+=widthptr, j+=2) On 2013/10/11 18:38:53, ...
10 years, 7 months ago (2013-10-11 18:53:14 UTC) #3
r
LGTM
10 years, 7 months ago (2013-10-11 21:04:58 UTC) #4
lucio
So now the code looks like this: off = frame-stkzerosize; j = (stkptrsize - stkzerosize)/widthptr ...
10 years, 7 months ago (2013-10-12 04:27:01 UTC) #5
r
Sure, that's fine.
10 years, 7 months ago (2013-10-12 17:34:40 UTC) #6
ality
This CL is no longer relevant due to the new linker changes. Abandoning. Anthony
10 years, 5 months ago (2013-12-09 22:13:35 UTC) #7
ality
10 years, 5 months ago (2013-12-09 22:14:00 UTC) #8
*** Abandoned ***
Sign in to reply to this message.

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