From 75c91bcd752ca5f5be4859f91c90e53d8c1a1c72 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sun, 21 Apr 1996 15:17:43 -0700 Subject: [PATCH] (ASM_OUTPUT_SECTION): Test DECL before dereferencing it. From-SVN: r11865 --- gcc/config/m68k/coff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/m68k/coff.h b/gcc/config/m68k/coff.h index 35556c91d29..9f0a638d02c 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++. */ -- 2.30.2