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

Issue 7394047: code review 7394047: cmd/dist: avoid using %ebx on i386. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by minux1
Modified:
12 years, 9 months ago
Reviewers:
CC:
golang-dev, iant
Visibility:
Public.

Description

cmd/dist: avoid using %ebx on i386. Or gcc (-fPIC) will complain: cmd/dist/unix.c: In function ‘cansse2’ cmd/dist/unix.c:774: error: can't find a register in class ‘BREG’ while reloading ‘asm’ cmd/dist/unix.c:774: error: ‘asm’ operand has impossible constraints This affects bootstrapping on native Darwin/386 where all code is compiled with -fPIC.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M src/cmd/dist/unix.c View 1 2 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 3
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 9 months ago (2013-02-23 09:56:01 UTC) #1
iant
LGTM
12 years, 9 months ago (2013-02-24 14:20:19 UTC) #2
minux1
12 years, 9 months ago (2013-02-24 14:46:05 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=d7ae1953ef1b ***

cmd/dist: avoid using %ebx on i386.
Or gcc (-fPIC) will complain:
cmd/dist/unix.c: In function ‘cansse2’
cmd/dist/unix.c:774: error: can't find a register in class ‘BREG’ while
reloading ‘asm’
cmd/dist/unix.c:774: error: ‘asm’ operand has impossible constraints

This affects bootstrapping on native Darwin/386 where all code is
compiled with -fPIC.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/7394047
Sign in to reply to this message.

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