diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-11-06 18:28:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-11-06 18:28:21 +0000 |
commit | fb3f38da2a7d45b88c838b3ac55fe40479961790 (patch) | |
tree | 89ff7fdde0dc578287fb6c80a46652eaf78f3ddf /gcc | |
parent | 855a44ee8f73b4c53a0bad7780baa85d043b890f (diff) | |
download | gcc-fb3f38da2a7d45b88c838b3ac55fe40479961790.zip gcc-fb3f38da2a7d45b88c838b3ac55fe40479961790.tar.gz gcc-fb3f38da2a7d45b88c838b3ac55fe40479961790.tar.bz2 |
compiler, libgo: Fixes to prepare for 64-bit int.
From-SVN: r193254
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 8a9f7d1..5e9e828 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -2568,8 +2568,12 @@ Integer_type::create_abstract_integer_type() { static Integer_type* abstract_type; if (abstract_type == NULL) - abstract_type = new Integer_type(true, false, INT_TYPE_SIZE, - RUNTIME_TYPE_KIND_INT); + { + Type* int_type = Type::lookup_integer_type("int"); + abstract_type = new Integer_type(true, false, + int_type->integer_type()->bits(), + RUNTIME_TYPE_KIND_INT); + } return abstract_type; } |