From: Alan Modra Date: Wed, 11 Nov 2020 05:07:25 +0000 (+1030) Subject: Re: Refactor copying decl section names X-Git-Tag: basepoints/gcc-12~3356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=693a79a355e13b3cf381d4adebe3fcea2736c8f0;p=thirdparty%2Fgcc.git Re: Refactor copying decl section names * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to avoid ambiguous overloaded call. --- diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index ba286fa8e82e..d8d9c3f27c0e 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);