From: Eric Botcazou Date: Mon, 9 Apr 2012 08:54:03 +0000 (+0000) Subject: re PR target/52717 (thunk referenced in discarded section when building samba with... X-Git-Tag: releases/gcc-4.5.4~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c34cbe1a530bb32c7aa77f97ee0a6a8afaf0b1c;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: r186240 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49c29a0f06cb..05179e9f7c35 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 0404b44e654c..7a736d134471 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -9124,6 +9124,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;