]> 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:54:03 +0000 (08:54 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Apr 2012 08:54:03 +0000 (08:54 +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: r186240

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

index 49c29a0f06cbdcbc3941093c4fc870e73e112a53..05179e9f7c353af4332d7d02f73a39cafe650783 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 0404b44e654cdec9216724305b5e3e91ad7ca1a3..7a736d13447193c971eb819076904f13bd27b887 100644 (file)
@@ -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;