]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (rs6000_code_end): Protect the use of ASM_WEAKEN_DECL with #if RS6000_WEAK.
authorJason Merrill <jason@redhat.com>
Thu, 4 Oct 2012 19:54:13 +0000 (15:54 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 4 Oct 2012 19:54:13 +0000 (15:54 -0400)
* config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
ASM_WEAKEN_DECL with #if RS6000_WEAK.

From-SVN: r192101

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 2a7913557efe6ffbf891b13084415daf5d507651..b2b69a220984e7a09930c94b2be2ac9238bc5ba1 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-04  Jason Merrill  <jason@redhat.com>
+
+       * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
+       ASM_WEAKEN_DECL with #if RS6000_WEAK.
+
 2012-10-04  Basile Starynkevitch  <basile@starynkevitch.net>
 
         * gengtype.c (walk_type): Emit mark_hook when inside a
index 3e3d55324e9abe4540d2c9bb029889fc1ab217cd..f4e4dec7bfdb653dbbb32073c4d982f62b769818 100644 (file)
@@ -28295,6 +28295,7 @@ rs6000_code_end (void)
   TREE_PUBLIC (decl) = 1;
   TREE_STATIC (decl) = 1;
 
+#if RS6000_WEAK
   if (USE_HIDDEN_LINKONCE)
     {
       DECL_COMDAT_GROUP (decl) = DECL_ASSEMBLER_NAME (decl);
@@ -28307,6 +28308,7 @@ rs6000_code_end (void)
       ASM_DECLARE_FUNCTION_NAME (asm_out_file, name, decl);
     }
   else
+#endif
     {
       switch_to_section (text_section);
       ASM_OUTPUT_LABEL (asm_out_file, name);