diff options
author | Brendan Kehoe <brendan@gcc.gnu.org> | 1995-02-13 01:11:50 -0500 |
---|---|---|
committer | Brendan Kehoe <brendan@gcc.gnu.org> | 1995-02-13 01:11:50 -0500 |
commit | fe7cdaaac690e962c82a441c1a4df3e43fa47987 (patch) | |
tree | 595ab4430222b52c0ab8fa1497f21b43a9f09e0a /gcc/config/mips/elf64.h | |
parent | 0ee902cb1a0ec325de5b4273884cbdee0dacb903 (diff) | |
download | gcc-fe7cdaaac690e962c82a441c1a4df3e43fa47987.tar.gz |
sysv4.h (ASM_OUTPUT_SECTION_NAME): Check to make sure DECL is non-null before trying to reference it.
Sun Feb 12 20:20:28 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
* config/sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME): Check to make
sure DECL is non-null before trying to reference it.
* config/mips/elf64.h (ASM_OUTPUT_SECTION_NAME): Likewise.
From-SVN: r8915
Diffstat (limited to 'gcc/config/mips/elf64.h')
-rw-r--r-- | gcc/config/mips/elf64.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h index 76d845934ea..33c887201fc 100644 --- a/gcc/config/mips/elf64.h +++ b/gcc/config/mips/elf64.h @@ -80,9 +80,9 @@ do { \ #define ASM_OUTPUT_SECTION_NAME(F, DECL, NAME) \ do { \ extern FILE *asm_out_text_file; \ - if (TREE_CODE (DECL) == FUNCTION_DECL) \ + if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL) \ fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \ - else if (TREE_READONLY (DECL)) \ + else if ((DECL) && TREE_READONLY (DECL)) \ fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \ else \ fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \ |