]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
compiler, runtime: Size of int is now 64 bits on x86_64.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 6 Nov 2012 18:46:38 +0000 (18:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 6 Nov 2012 18:46:38 +0000 (18:46 +0000)
From-SVN: r193255

gcc/go/gofrontend/gogo.cc
libgo/runtime/runtime.h

index 3455a917f0ad93048cf9ef6428db6cfad4e4811e..5b566103ec8485bb2a5e4e5a62d986b7a9258f32 100644 (file)
@@ -23,8 +23,7 @@
 
 // Class Gogo.
 
-Gogo::Gogo(Backend* backend, Linemap* linemap, int int_type_size,
-           int pointer_size)
+Gogo::Gogo(Backend* backend, Linemap* linemap, int, int pointer_size)
   : backend_(backend),
     linemap_(linemap),
     package_(NULL),
@@ -83,6 +82,7 @@ Gogo::Gogo(Backend* backend, Linemap* linemap, int int_type_size,
   this->add_named_type(Type::make_complex_type("complex128", 128,
                                               RUNTIME_TYPE_KIND_COMPLEX128));
 
+  int int_type_size = pointer_size;
   if (int_type_size < 32)
     int_type_size = 32;
   this->add_named_type(Type::make_integer_type("uint", true,
index 72e1eb2f8b95691a8a18a4d482fa97cd97d56718..6edeae5f9d9d48bdf2541cda83e66a64d06e0189 100644 (file)
@@ -41,8 +41,8 @@ typedef double       float64 __attribute__ ((mode (DF)));
 typedef signed int   intptr __attribute__ ((mode (pointer)));
 typedef unsigned int uintptr __attribute__ ((mode (pointer)));
 
-typedef int            intgo; // Go's int
-typedef unsigned int   uintgo; // Go's uint
+typedef intptr         intgo; // Go's int
+typedef uintptr                uintgo; // Go's uint
 
 /* Defined types.  */