Go patch committed: Size of int is now 64 bits on x86_64

Ian Lance Taylor iant@google.com
Tue Nov 6 20:59:00 GMT 2012


On Tue, Nov 6, 2012 at 10:46 AM, Ian Lance Taylor <iant@google.com> wrote:
> This patch to the Go compiler and library changes the size of the Go
> type "int" to be the same as the size of a pointer.  This means that on
> x86_64 the size of int will be 64 bits.  This matches the new behaviour
> of the other Go compiler, and is the intended implementation for the
> future Go 1.1 release.  Bootstrapped and ran Go testsuite on
> x86_64-unknown-linux-gnu.  Committed to mainline.

By the way, if you have an existing working directory with
--enable-languages=go, make sure to remove your TARGET/libgo directory
before you build after updating to this patch.  This change requires
rebuilding all the object files, but there is no dependency that will
force that to happen.

Ian



More information about the Gcc-patches mailing list