elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
authorRichard Henderson <rth@cygnus.com>
Tue, 1 Aug 2000 20:24:22 +0000 (13:24 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 1 Aug 2000 20:24:22 +0000 (13:24 -0700)
        * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
        * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.

From-SVN: r35412

gcc/ChangeLog
gcc/config/elfos.h
gcc/config/ia64/sysv4.h

index 279d0f678f9539356f2cf306646da06513a464d2..77083945b2190c9b57af7ba55dc19e879fd0249f 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-01  Richard Henderson  <rth@cygnus.com>
+
+       * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
+       * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
+
 2000-08-01  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        From Joern Rennecke:
index 7962a34c61093d8b4771834518f5e3342c54abcd..2f9f037e868a38ada41429cfee107ba5a3fe3437 100644 (file)
@@ -582,7 +582,8 @@ dtors_section ()                                            \
                                                                \
       size_directive_output = 0;                               \
                                                                \
-      if (!flag_inhibit_size_directive && DECL_SIZE (DECL))    \
+      if (!flag_inhibit_size_directive                         \
+         && (DECL) && DECL_SIZE (DECL))                        \
        {                                                       \
          size_directive_output = 1;                            \
          fprintf (FILE, "\t%s\t ", SIZE_ASM_OP);               \
index 906e66b1b03ba0018bc2fc40e94ccdee07487a88..02fdede601e6758ce4f0f51690012dee7d69bda4 100644 (file)
@@ -37,7 +37,8 @@ extern int size_directive_output;
 #undef ASM_OUTPUT_ALIGNED_LOCAL
 #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
 do {                                                                   \
-  if (XSTR (XEXP (DECL_RTL (DECL), 0), 0)[0] == SDATA_NAME_FLAG_CHAR)  \
+  if ((DECL)                                                           \
+      && XSTR (XEXP (DECL_RTL (DECL), 0), 0)[0] == SDATA_NAME_FLAG_CHAR) \
     sbss_section ();                                                   \
   else                                                                 \
     bss_section ();                                                    \