diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/unknown-elf.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 411749162a3..95be507b98d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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; diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h index ba5f7efb2f3..0affaab2305 100644 --- a/gcc/config/arm/unknown-elf.h +++ b/gcc/config/arm/unknown-elf.h @@ -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 (); \ |