diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-04-09 08:53:27 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-04-09 08:53:27 +0000 |
commit | 5ff5b41ca3bbb8cc659d6ccb7b4dcebfa7678a6e (patch) | |
tree | 5bf5e2eef7a0fb52e7de45649c4ca94eaa873e22 /gcc | |
parent | 7df2d73c7ee27406b56e7223f871a845d529ba22 (diff) | |
download | gcc-5ff5b41ca3bbb8cc659d6ccb7b4dcebfa7678a6e.zip gcc-5ff5b41ca3bbb8cc659d6ccb7b4dcebfa7678a6e.tar.gz gcc-5ff5b41ca3bbb8cc659d6ccb7b4dcebfa7678a6e.tar.bz2 |
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')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e22bcd..ee71f75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 71480f8..5c8e868 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; |