diff options
author | Alan Modra <amodra@gmail.com> | 2020-11-11 15:37:25 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-11-11 15:39:08 +1030 |
commit | 693a79a355e13b3cf381d4adebe3fcea2736c8f0 (patch) | |
tree | 31d10c907d3c542a1a6768efb57020d1b766d65b /gcc/go/go-gcc.cc | |
parent | 4656461585bfd0b925553995a9d114645f1287d0 (diff) | |
download | gcc-693a79a355e13b3cf381d4adebe3fcea2736c8f0.zip gcc-693a79a355e13b3cf381d4adebe3fcea2736c8f0.tar.gz gcc-693a79a355e13b3cf381d4adebe3fcea2736c8f0.tar.bz2 |
Re: Refactor copying decl section names
* go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
avoid ambiguous overloaded call.
Diffstat (limited to 'gcc/go/go-gcc.cc')
-rw-r--r-- | gcc/go/go-gcc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index ba286fa..d8d9c3f 100644 --- 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); |