diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-11-01 13:46:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-11-01 13:46:10 +0000 |
commit | d32e80061847f2ddc60d1c749b229d0802e3395f (patch) | |
tree | 38a4e23ffc00ec98f9801fc1a310b7ad6298fac6 /gcc | |
parent | cc656415cf740381e14cf576305ef7d7c63975f5 (diff) | |
download | gcc-d32e80061847f2ddc60d1c749b229d0802e3395f.zip gcc-d32e80061847f2ddc60d1c749b229d0802e3395f.tar.gz gcc-d32e80061847f2ddc60d1c749b229d0802e3395f.tar.bz2 |
re PR go/78145 (Several go.test tests fail with error: integer constant overflow on 32bit targets)
PR go/78145
compiler: don't put print/println constants into temporaries
It's not necessary, and it breaks setting their type to int64/uint64
when appropriate.
This fixes GCC PR 78145.
Reviewed-on: https://go-review.googlesource.com/32475
From-SVN: r241740
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index a03ed58..ace3c2f 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -c353ffbe18d1538cac7f2a3fcefb846dbf1a6591 +919ef699fe56a9b40c2bd0df07ac1378ce4a7fab The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 4f85059..69f4e01 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -7193,7 +7193,7 @@ Builtin_call_expression::do_lower(Gogo*, Named_object* function, pa != this->args()->end(); ++pa) { - if (!(*pa)->is_variable()) + if (!(*pa)->is_variable() && !(*pa)->is_constant()) { Temporary_statement* temp = Statement::make_temporary(NULL, *pa, loc); |