From: Richard Henderson Date: Tue, 1 Aug 2000 20:24:22 +0000 (-0700) Subject: elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0577bad8bf7781c9d0118b68e9d1bdc8b8d66d8f;p=gcc.git elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL. * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL. * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise. From-SVN: r35412 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 279d0f678f9..77083945b21 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-01 Richard Henderson + + * 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 From Joern Rennecke: diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 7962a34c610..2f9f037e868 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -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); \ diff --git a/gcc/config/ia64/sysv4.h b/gcc/config/ia64/sysv4.h index 906e66b1b03..02fdede601e 100644 --- a/gcc/config/ia64/sysv4.h +++ b/gcc/config/ia64/sysv4.h @@ -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 (); \