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

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

index 2e22bcdd1cf368ff4c6c6cd6824ba1e048c61624..ee71f7541f9c46a0339f5ee836ed20462757a46b 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-09  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * config/sh/constraints.md: Update list of constraints in
index 71480f8cf20138bdbafd89c95a417b357a1ff308..5c8e8686a18a077bb2d035bde07ab2508128ecee 100644 (file)
@@ -10800,6 +10800,7 @@ sparc_file_end (void)
                                                             NULL_TREE));
          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;