From: Eric Botcazou Date: Mon, 9 Apr 2012 08:53:49 +0000 (+0000) Subject: re PR target/52717 (thunk referenced in discarded section when building samba with... X-Git-Tag: releases/gcc-4.6.4~596 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98af9cecb83a99ac8c876403a6e62b4b9566e425;p=thirdparty%2Fgcc.git re PR target/52717 (thunk referenced in discarded section when building samba with -flto) PR target/52717 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on the DECL generated for the special GOT helper. From-SVN: r186239 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f76a89851b96..f8973e5ca1ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-04-09 Eric Botcazou + + PR target/52717 + * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on + the DECL generated for the special GOT helper. + 2012-04-06 Matt Turner * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc". diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index f1c5ecd83e53..fea4a81d34b8 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -9638,6 +9638,7 @@ sparc_file_end (void) void_list_node)); DECL_RESULT (decl) = build_decl (BUILTINS_LOCATION, RESULT_DECL, NULL_TREE, void_type_node); + TREE_PUBLIC (decl) = 1; TREE_STATIC (decl) = 1; make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;