From 693a79a355e13b3cf381d4adebe3fcea2736c8f0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 11 Nov 2020 15:37:25 +1030 Subject: [PATCH] Re: Refactor copying decl section names * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to avoid ambiguous overloaded call. --- gcc/go/go-gcc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index ba286fa8e82..d8d9c3f27c0 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); -- 2.30.2