]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/52717 (thunk referenced in discarded section when building samba with...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Apr 2012 08:53:49 +0000 (08:53 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Apr 2012 08:53:49 +0000 (08:53 +0000)
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

gcc/ChangeLog
gcc/config/sparc/sparc.c

index f76a89851b96b63de48c59f1a3d2bd12a597e84b..f8973e5ca1cae09286f2d245368f2a0bf1d25edc 100644 (file)
@@ -1,3 +1,9 @@
+2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       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  <mattst88@gmail.com>
 
        * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
index f1c5ecd83e533e9b63f99445fdd8dbcba84ac83e..fea4a81d34b838b0ab4eed520dd1ed32406d69a4 100644 (file)
@@ -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;