projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b4bd7
)
Add rune as an alias for int.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 28 Oct 2011 22:06:24 +0000
(22:06 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 28 Oct 2011 22:06:24 +0000
(22:06 +0000)
From-SVN: r180634
gcc/go/gofrontend/gogo.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/gogo.cc
b/gcc/go/gofrontend/gogo.cc
index 18436abd29c5c4d8910c40d5e4fd8f1b6d50c270..e20063b817ffeb9eb6bb970350d64af33bede0df 100644
(file)
--- 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));