re PR target/78336 (powerpc-darwin bootstrap broken (probably by 241930))
authorDavid Edelsohn <dje.gcc@gmail.com>
Sun, 13 Nov 2016 14:28:49 +0000 (14:28 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 13 Nov 2016 14:28:49 +0000 (09:28 -0500)
        PR target/78336
        * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
        ASM_OUTPUT_DEF.

From-SVN: r242353

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

index e5510c37bf982a46202f41cd0fee6583a5c983ce..68cc9c6d2d23d0ba1d76ae154923159f0674389b 100644 (file)
@@ -1,3 +1,9 @@
+2016-11-13  David Edelsohn  <dje.gcc@gmail.com>
+
+       PR target/78336
+       * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
+       ASM_OUTPUT_DEF.
+
 2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR target/77957
index 05448cb7904799fbe3204faba882df4845a1a74c..609f26707c26b167adea98b16e5b658ec09a8fc7 100644 (file)
@@ -35673,7 +35673,9 @@ rs6000_asm_weaken_decl (FILE *stream, tree decl,
   fputc ('\n', stream);
   if (val)
     {
+#ifdef ASM_OUTPUT_DEF
       ASM_OUTPUT_DEF (stream, name, val);
+#endif
       if (decl && TREE_CODE (decl) == FUNCTION_DECL
          && DEFAULT_ABI == ABI_AIX && DOT_SYMBOLS)
        {