From: David Edelsohn Date: Thu, 12 Oct 2017 00:02:45 +0000 (+0000) Subject: * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common): Test for... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c82da65c680e5a3f770d199bffaf4fcae7964561;p=gcc.git * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common): Test for NULL decl. From-SVN: r253667 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcc39c7b31d..5542414afc7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-10-11 David Edelsohn + + * config/rs6000/rs6000.c + (rs6000_xcoff_asm_output_aligned_decl_common): Test for NULL decl. + 2017-10-11 Segher Boessenkool * config/rs6000/predicates.md (zero_constant, all_ones_constant): diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index e8684821c98..e6e254ac041 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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); }