From: Jim Wilson Date: Sun, 21 Apr 1996 22:17:43 +0000 (-0700) Subject: (ASM_OUTPUT_SECTION): Test DECL before X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75c91bcd752ca5f5be4859f91c90e53d8c1a1c72;p=gcc.git (ASM_OUTPUT_SECTION): Test DECL before dereferencing it. From-SVN: r11865 --- 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++. */