summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sparc.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-04-09 08:53:27 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-04-09 08:53:27 +0000
commit5ff5b41ca3bbb8cc659d6ccb7b4dcebfa7678a6e (patch)
tree5bf5e2eef7a0fb52e7de45649c4ca94eaa873e22 /gcc/config/sparc/sparc.c
parent7df2d73c7ee27406b56e7223f871a845d529ba22 (diff)
downloadgcc-5ff5b41ca3bbb8cc659d6ccb7b4dcebfa7678a6e.tar.gz
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: r186237
Diffstat (limited to 'gcc/config/sparc/sparc.c')
-rw-r--r--gcc/config/sparc/sparc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 71480f8cf20..5c8e8686a18 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -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;