projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f8fa9b
)
compiler: Fix multiple conversions to different named slices.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Tue, 13 Dec 2011 18:52:19 +0000
(18:52 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Tue, 13 Dec 2011 18:52:19 +0000
(18:52 +0000)
From-SVN: r182293
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index ab6f4feeaf3da45cddecad3aed17c2e72c90c016..365e99c548683d6f41ebd9adbf4f1cde46036765 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-3669,7
+3669,7
@@
Type_conversion_expression::do_get_tree(Translate_context* context)
if (e->integer_type()->is_unsigned()
&& e->integer_type()->bits() == 8)
{
if (e->integer_type()->is_unsigned()
&& e->integer_type()->bits() == 8)
{
-
static tree string_to_byte_array_fndecl
;
+
tree string_to_byte_array_fndecl = NULL_TREE
;
ret = Gogo::call_builtin(&string_to_byte_array_fndecl,
this->location(),
"__go_string_to_byte_array",
ret = Gogo::call_builtin(&string_to_byte_array_fndecl,
this->location(),
"__go_string_to_byte_array",
@@
-3681,7
+3681,7
@@
Type_conversion_expression::do_get_tree(Translate_context* context)
else
{
go_assert(e == Type::lookup_integer_type("int"));
else
{
go_assert(e == Type::lookup_integer_type("int"));
-
static tree string_to_int_array_fndecl
;
+
tree string_to_int_array_fndecl = NULL_TREE
;
ret = Gogo::call_builtin(&string_to_int_array_fndecl,
this->location(),
"__go_string_to_int_array",
ret = Gogo::call_builtin(&string_to_int_array_fndecl,
this->location(),
"__go_string_to_int_array",