re PR target/47038 (failure of gcc.dg/pr46685.c)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 30 Dec 2010 21:31:04 +0000 (21:31 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 30 Dec 2010 21:31:04 +0000 (21:31 +0000)
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
gcc/config/sparc/sparc.c

index ac064a01c45bde4c7e8b251af392f93476986e3f..bbc5827279b3c2f46ac3833bb2ede416696c0d33 100644 (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
index 7df0dfba4d5e3826ba6fbba48cc46b8306aae6da..62fc32830afae3a6ea23444a5cbcff6411ec3c3a 100644 (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;