Handle a NULL DECL being passed to ASM_OUTPUT_ALIGNED_DECL_LOCAL.
authorNick Clifton <nickc@cambridge.redhat.com>
Mon, 5 Nov 2001 16:36:35 +0000 (16:36 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 5 Nov 2001 16:36:35 +0000 (16:36 +0000)
From-SVN: r46787

gcc/ChangeLog
gcc/config/arm/unknown-elf.h

index 411749162a3b0eaf7b0c8175ab7c8b3314bca31c..95be507b98d1d2a486ef9f9c2d88b4439fc9d59d 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
+       DECL being NULL.
+
 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
 
        * Makefile.in (bb-reoder.o): Add depdendency on cfglayout.h;
index ba5f7efb2f3789c1e501b0bd311cc57ee1d5d93c..0affaab23052c89d54b0bd9a3a67fe3839be4e43 100644 (file)
@@ -75,7 +75,7 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN)   \
   do                                                                   \
     {                                                                  \
-      if (IN_NAMED_SECTION (DECL))                                     \
+      if ((DECL) != NULL && IN_NAMED_SECTION (DECL))                   \
        named_section (DECL, NULL, 0);                                  \
       else                                                             \
        bss_section ();                                                 \