public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-4901] Re: Refactor copying decl section names
@ 2020-11-11  5:10 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-11-11  5:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:693a79a355e13b3cf381d4adebe3fcea2736c8f0

commit r11-4901-g693a79a355e13b3cf381d4adebe3fcea2736c8f0
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Nov 11 15:37:25 2020 +1030

    Re: Refactor copying decl section names
    
            * go-gcc.cc (Gcc_backend::global_variable_set_init): Cast NULL to
            avoid ambiguous overloaded call.

Diff:
---
 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-11  5:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11  5:10 [gcc r11-4901] Re: Refactor copying decl section names Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).