diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1996-04-21 15:17:43 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1996-04-21 15:17:43 -0700 |
commit | 75c91bcd752ca5f5be4859f91c90e53d8c1a1c72 (patch) | |
tree | 150e0c1d7852135d7f48893ef0f518d6857b7c0e | |
parent | 0b0ee36cd91aa7d15014b077b786e072aa848cbe (diff) | |
download | gcc-75c91bcd752ca5f5be4859f91c90e53d8c1a1c72.zip gcc-75c91bcd752ca5f5be4859f91c90e53d8c1a1c72.tar.gz gcc-75c91bcd752ca5f5be4859f91c90e53d8c1a1c72.tar.bz2 |
(ASM_OUTPUT_SECTION): Test DECL before
dereferencing it.
From-SVN: r11865
-rw-r--r-- | gcc/config/m68k/coff.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/m68k/coff.h b/gcc/config/m68k/coff.h index 35556c9..9f0a638 100644 --- a/gcc/config/m68k/coff.h +++ b/gcc/config/m68k/coff.h @@ -99,8 +99,8 @@ Boston, MA 02111-1307, USA. */ #undef ASM_OUTPUT_SECTION_NAME #define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME) \ fprintf((FILE), ".section\t%s,\"%c\"\n", (NAME), \ - TREE_CODE (DECL) == FUNCTION_DECL || \ - TREE_READONLY (DECL) ? 'x' : 'd') + (DECL) && (TREE_CODE (DECL) == FUNCTION_DECL || \ + TREE_READONLY (DECL)) ? 'x' : 'd') /* Support the ctors and dtors sections for g++. */ |