From c0318c9910bdfc53afa531716a2e2295a8dc5bd7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 28 Jun 1995 15:24:21 -0400 Subject: [PATCH] (ASM_OUTPUT_SECTION_NAME): Don't crash if DECL is null. From-SVN: r10067 --- gcc/config/svr4.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h index 5ae252cc0c5..41c6ffa0e10 100644 --- a/gcc/config/svr4.h +++ b/gcc/config/svr4.h @@ -579,8 +579,8 @@ dtors_section () \ read-only for a const data decl, and writable for a non-const data decl. */ #define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME) \ fprintf (FILE, ".section\t%s,\"%s\",@progbits\n", NAME, \ - TREE_CODE (DECL) == FUNCTION_DECL ? "ax" : \ - TREE_READONLY (DECL) ? "a" : "aw") + (DECL) && TREE_CODE (DECL) == FUNCTION_DECL ? "ax" : \ + (DECL) && TREE_READONLY (DECL) ? "a" : "aw") /* A C statement (sans semicolon) to output an element in the table of -- 2.30.2