projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4656461
)
Re: Refactor copying decl section names
author
Alan Modra
<amodra@gmail.com>
Wed, 11 Nov 2020 05:07:25 +0000
(15:37 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 11 Nov 2020 05:09:08 +0000
(15:39 +1030)
* go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
avoid ambiguous overloaded call.
gcc/go/go-gcc.cc
patch
|
blob
|
history
diff --git
a/gcc/go/go-gcc.cc
b/gcc/go/go-gcc.cc
index ba286fa8e82e2f83133e906de6716be59edac7da..d8d9c3f27c0ef7ef7c0aabd1a76b079b812bd441 100644
(file)
--- a/
gcc/go/go-gcc.cc
+++ b/
gcc/go/go-gcc.cc
@@
-2756,7
+2756,7
@@
Gcc_backend::global_variable_set_init(Bvariable* var, Bexpression* expr)
if (symtab_node::get(var_decl)
&& symtab_node::get(var_decl)->implicit_section)
{
- set_decl_section_name (var_decl, NULL);
+ set_decl_section_name (var_decl,
(const char *)
NULL);
resolve_unique_section (var_decl,
compute_reloc_for_constant (expr_tree),
1);