Commit 5ff5b41c by Eric Botcazou Committed by Eric Botcazou

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
parent 7df2d73c
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> 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/constraints.md: Update list of constraints in * config/sh/constraints.md: Update list of constraints in
......
...@@ -10800,6 +10800,7 @@ sparc_file_end (void) ...@@ -10800,6 +10800,7 @@ sparc_file_end (void)
NULL_TREE)); NULL_TREE));
DECL_RESULT (decl) = build_decl (BUILTINS_LOCATION, RESULT_DECL, DECL_RESULT (decl) = build_decl (BUILTINS_LOCATION, RESULT_DECL,
NULL_TREE, void_type_node); NULL_TREE, void_type_node);
TREE_PUBLIC (decl) = 1;
TREE_STATIC (decl) = 1; TREE_STATIC (decl) = 1;
make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl));
DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN; DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment