From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26351 invoked by alias); 7 Nov 2012 09:18:18 -0000 Received: (qmail 26235 invoked by uid 48); 7 Nov 2012 09:18:02 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/55228] New: index.go should check size of int instead of GOARCH Date: Wed, 07 Nov 2012 09:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00552.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55228 Bug #: 55228 Summary: index.go should check size of int instead of GOARCH Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go AssignedTo: ian@airs.com ReportedBy: hjl.tools@gmail.com go.test/test/index.go has } else if a == "s" && n == "" && (i == "i64big" || i == "i64bigger") && runtime.GOARCH == "amd64" { // On amd64, these huge numbers do fit in an int , so they are not // rejected at compile time. However, x32 also sets GOARCH to amd64 and it has 32-bit pointer. index.go should check size of int instead of GOARCH.