From: Ian Lance Taylor Date: Fri, 28 Oct 2011 22:06:24 +0000 (+0000) Subject: Add rune as an alias for int. X-Git-Tag: releases/gcc-4.7.0~2728 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8d84495f84f41a27c0c26290f9573fa541df85a;p=thirdparty%2Fgcc.git Add rune as an alias for int. From-SVN: r180634 --- diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 18436abd29c5..e20063b817ff 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));