diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-28 15:24:21 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-28 15:24:21 -0400 |
commit | c0318c9910bdfc53afa531716a2e2295a8dc5bd7 (patch) | |
tree | 3286352d239be897250d9770a4dc3a2c3e2974c3 | |
parent | 4c99e795dd7133876f72471f26a488b09291f9ac (diff) | |
download | gcc-c0318c9910bdfc53afa531716a2e2295a8dc5bd7.zip gcc-c0318c9910bdfc53afa531716a2e2295a8dc5bd7.tar.gz gcc-c0318c9910bdfc53afa531716a2e2295a8dc5bd7.tar.bz2 |
(ASM_OUTPUT_SECTION_NAME): Don't crash if DECL is null.
From-SVN: r10067
-rw-r--r-- | gcc/config/svr4.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h index 5ae252c..41c6ffa 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 |