aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-10-28 22:06:24 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-10-28 22:06:24 +0000
commitb8d84495f84f41a27c0c26290f9573fa541df85a (patch)
treef2381858b171c46bc66dc820b8112e7d557a8d81 /gcc/go
parent18b4bd7b6cd8dabb4598c97c2e030032738ee112 (diff)
downloadgcc-b8d84495f84f41a27c0c26290f9573fa541df85a.zip
gcc-b8d84495f84f41a27c0c26290f9573fa541df85a.tar.gz
gcc-b8d84495f84f41a27c0c26290f9573fa541df85a.tar.bz2
Add rune as an alias for int.
From-SVN: r180634
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/gogo.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc
index 18436ab..e20063b 100644
--- a/gcc/go/gofrontend/gogo.cc
+++ b/gcc/go/gofrontend/gogo.cc
@@ -85,6 +85,10 @@ Gogo::Gogo(Backend* backend, int int_type_size, int pointer_size)
Named_object* byte_type = this->declare_type("byte", loc);
byte_type->set_type_value(uint8_type);
+ // "rune" is an alias for "int".
+ Named_object* rune_type = this->declare_type("rune", loc);
+ rune_type->set_type_value(int_type);
+
this->add_named_type(Type::make_integer_type("uintptr", true,
pointer_size,
RUNTIME_TYPE_KIND_UINTPTR));