From b331ec2b8a2573900bcf28a176f9429c533e4782 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 30 Dec 2010 21:31:04 +0000 Subject: [PATCH] re PR target/47038 (failure of gcc.dg/pr46685.c) PR target/47038 * config/sparc/sparc.c (sparc_file_end): Call resolve_unique_section on the GOT helper if USE_HIDDEN_LINKONCE. From-SVN: r168351 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/sparc.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac064a01c45..bbc5827279b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-30 Eric Botcazou + + PR target/47038 + * config/sparc/sparc.c (sparc_file_end): Call resolve_unique_section + on the GOT helper if USE_HIDDEN_LINKONCE. + 2010-12-30 Joseph Myers PR c/46889 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 7df0dfba4d5..62fc32830af 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -9534,6 +9534,7 @@ sparc_file_end (void) make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN; DECL_VISIBILITY_SPECIFIED (decl) = 1; + resolve_unique_section (decl, 0, flag_function_sections); allocate_struct_function (decl, true); cfun->is_thunk = 1; current_function_decl = decl; -- 2.30.2