diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-01-21 21:26:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-01-21 21:26:10 +0000 |
commit | fb3f3aa2db50e34f8e1881d7472c1acf14d95963 (patch) | |
tree | 028f071b465ab278a66ee501a5ee1ae92b8b4234 /gcc/go/gofrontend/runtime.cc | |
parent | 4787ac51eb9b79b3cd27f0366a86df5440eaeee6 (diff) | |
download | gcc-fb3f3aa2db50e34f8e1881d7472c1acf14d95963.zip gcc-fb3f3aa2db50e34f8e1881d7472c1acf14d95963.tar.gz gcc-fb3f3aa2db50e34f8e1881d7472c1acf14d95963.tar.bz2 |
compiler: Change alias handling, change rune alias to int32.
From-SVN: r183374
Diffstat (limited to 'gcc/go/gofrontend/runtime.cc')
-rw-r--r-- | gcc/go/gofrontend/runtime.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/runtime.cc b/gcc/go/gofrontend/runtime.cc index 7893d45..9d19030 100644 --- a/gcc/go/gofrontend/runtime.cc +++ b/gcc/go/gofrontend/runtime.cc @@ -38,6 +38,8 @@ enum Runtime_function_type RFT_UINT64, // Go type uintptr, C type uintptr_t. RFT_UINTPTR, + // Go type rune, C type int32_t. + RFT_RUNE, // Go type float64, C type double. RFT_FLOAT64, // Go type complex128, C type __complex double. @@ -108,6 +110,10 @@ runtime_function_type(Runtime_function_type bft) t = Type::lookup_integer_type("uint64"); break; + case RFT_RUNE: + t = Type::lookup_integer_type("int32"); + break; + case RFT_UINTPTR: t = Type::lookup_integer_type("uintptr"); break; @@ -203,6 +209,7 @@ convert_to_runtime_function_type(Runtime_function_type bft, Expression* e, case RFT_INT64: case RFT_UINT64: case RFT_UINTPTR: + case RFT_RUNE: case RFT_FLOAT64: case RFT_COMPLEX128: case RFT_STRING: |