From: ian Date: Fri, 28 Oct 2011 22:06:24 +0000 (+0000) Subject: Add rune as an alias for int. X-Git-Tag: upstream/4.9.2~16697 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7dba16a88a2911be8b6e6c09412c14d4a3dd317;p=platform%2Fupstream%2Flinaro-gcc.git Add rune as an alias for int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180634 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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));