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

Issue 126990043: code review 126990043: cmd/cgo: iterate over names in deterministic order (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by mdempsky
Modified:
9 years, 8 months ago
Reviewers:
minux, iant
CC:
golang-codereviews, bradfitz, minux, iant
Visibility:
Public.

Description

cmd/cgo: iterate over names in deterministic order This makes GCC behavior (and cgo build failures) deterministic. Fixes issue 8487. Ran this shell command on linux/amd64 (Ubuntu 12.04) before and after this change: for x in `seq 100`; do go tool cgo -debug-gcc=true issue8441.go 2>&1 | md5sum done | sort | uniq -c Before: 67 2cdcb8c7c4e290f7d9009abc581b83dd - 10 9a55390df94f7cec6d810f3e20590789 - 10 acfad22140d43d9b9517bbc5dfc3c0df - 13 c337f8fee2304b3a8e3158a4362d8698 - After: 100 785c316cbcbcd50896695050e2fa23c1 -

Patch Set 1 #

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

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

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

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

Messages

Total messages: 5
mdempsky
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 8 months ago (2014-08-10 01:33:12 UTC) #1
bradfitz
R=iant On Sat, Aug 9, 2014 at 6:33 PM, mdempsky via golang-codereviews < golang-codereviews@googlegroups.com> wrote: ...
9 years, 8 months ago (2014-08-10 17:43:09 UTC) #2
minux
LGTM.
9 years, 8 months ago (2014-08-11 07:34:47 UTC) #3
iant
LGTM
9 years, 8 months ago (2014-08-11 23:44:31 UTC) #4
iant
9 years, 8 months ago (2014-08-11 23:49:43 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=d37e1b0c2c65 ***

cmd/cgo: iterate over names in deterministic order

This makes GCC behavior (and cgo build failures) deterministic.

Fixes issue 8487.

Ran this shell command on linux/amd64 (Ubuntu 12.04) before and
after this change:

    for x in `seq 100`; do
      go tool cgo -debug-gcc=true issue8441.go 2>&1 | md5sum
    done | sort | uniq -c

Before:
    67 2cdcb8c7c4e290f7d9009abc581b83dd  -
    10 9a55390df94f7cec6d810f3e20590789  -
    10 acfad22140d43d9b9517bbc5dfc3c0df  -
    13 c337f8fee2304b3a8e3158a4362d8698  -

After:
    100 785c316cbcbcd50896695050e2fa23c1  -

LGTM=minux, iant
R=golang-codereviews, bradfitz, minux, iant
CC=golang-codereviews
https://codereview.appspot.com/126990043

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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