Fix typo.
authorDavid Edelsohn <dje@gcc.gnu.org>
Mon, 7 Nov 2016 20:30:30 +0000 (15:30 -0500)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 7 Nov 2016 20:30:30 +0000 (15:30 -0500)
From-SVN: r241932

gcc/config/rs6000/rs6000.c

index 1316252e48141f876316ee1ecac9a709038a904f..b0c2b2e69ee09f6da81aa2a33aa0fe698b20b095 100644 (file)
@@ -35612,14 +35612,14 @@ rs6000_asm_weaken_decl (FILE *stream, tree decl,
     {
       if (TARGET_XCOFF)                                                
        fputs ("[DS]", stream);
-#if HAVE_GAS_HIDDEN
+#if TARGET_XCOFF && HAVE_GAS_HIDDEN
       if (TARGET_XCOFF)
        fputs (rs6000_xcoff_visibility (decl), stream);
 #endif
       fputs ("\n\t.weak\t.", stream);
       RS6000_OUTPUT_BASENAME (stream, name);
     }
-#if HAVE_GAS_HIDDEN
+#if TARGET_XCOFF && HAVE_GAS_HIDDEN
   if (TARGET_XCOFF)
     fputs (rs6000_xcoff_visibility (decl), stream);
 #endif