diff options
author | Richard Henderson <rth@cygnus.com> | 2000-08-01 13:24:22 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-08-01 13:24:22 -0700 |
commit | 0577bad8bf7781c9d0118b68e9d1bdc8b8d66d8f (patch) | |
tree | b0302bf69b55078ecff87764f9ababbf4b5a6bad /gcc | |
parent | 7e2fda6e4a47eebcd310e314da6a63be9629dbbd (diff) | |
download | gcc-0577bad8bf7781c9d0118b68e9d1bdc8b8d66d8f.zip gcc-0577bad8bf7781c9d0118b68e9d1bdc8b8d66d8f.tar.gz gcc-0577bad8bf7781c9d0118b68e9d1bdc8b8d66d8f.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/elfos.h | 3 | ||||
-rw-r--r-- | gcc/config/ia64/sysv4.h | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 279d0f6..7708394 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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: diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 7962a34..2f9f037 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 906e66b..02fdede 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 (); \ |