This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Go patch committed: Size of int is now 64 bits on x86_64
On Tue, Nov 6, 2012 at 4:51 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> FAIL: ./tmp.go compilation, -O0 -g -fno-var-tracking-assignments
>
>> The Go library doesn't have proper support for x32 right now. I'm not
>
> libgo works OK on x32 since x32 doesn't need much special treatment.
> The above is the only Go regression on x32.
I expect that libgo is setting runtime.GOARCH == "amd64" for x32.
Based on that, the index.go test assumes that values that do not fit
in 32 bits can be stored in an int. However, the size of int on x32
will be 32 bits. We need to decide what runtime.GOARCH should be for
x32.
Ian