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
This commit is contained in:
Eric Botcazou 2010-12-30 21:31:04 +00:00 committed by Eric Botcazou
parent 223706ad62
commit b331ec2b8a
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-12-30 Eric Botcazou <ebotcazou@adacore.com>
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 <joseph@codesourcery.com>
PR c/46889

View File

@ -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;