From 8c34cbe1a530bb32c7aa77f97ee0a6a8afaf0b1c Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 9 Apr 2012 08:54:03 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/sparc.c | 1 + 2 files changed, 7 insertions(+) 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; -- 2.47.2