* config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common): Test for...
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 12 Oct 2017 00:02:45 +0000 (00:02 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 12 Oct 2017 00:02:45 +0000 (20:02 -0400)
From-SVN: r253667

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

index bcc39c7b31d566af2624ff98329bbb553404502e..5542414afc790d8885dda08d4ee5b7020d3f401e 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-11  David Edelsohn  <dje.gcc@gmail.com>
+
+       * config/rs6000/rs6000.c
+       (rs6000_xcoff_asm_output_aligned_decl_common): Test for NULL decl.
+
 2017-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/predicates.md (zero_constant, all_ones_constant):
index e8684821c9858429bf6366de21772fa798665d20..e6e254ac0414cd307dae7c0d45b184cf690068ea 100644 (file)
@@ -34375,7 +34375,8 @@ rs6000_xcoff_asm_output_aligned_decl_common (FILE *stream,
           size, align2);
 
 #ifdef HAVE_GAS_HIDDEN
-  fputs (rs6000_xcoff_visibility (decl), stream);
+  if (decl != NULL)
+    fputs (rs6000_xcoff_visibility (decl), stream);
 #endif
   putc ('\n', stream);
 }