From: Alan Modra Date: Wed, 11 Nov 2020 05:07:25 +0000 (+1030) Subject: Re: Refactor copying decl section names X-Git-Tag: upstream/12.2.0~12053 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=693a79a355e13b3cf381d4adebe3fcea2736c8f0;p=platform%2Fupstream%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 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);