OSDN Git Service

(ASM_OUTPUT_SECTION_NAME): Don't crash if DECL is null.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 1995 19:24:21 +0000 (19:24 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 1995 19:24:21 +0000 (19:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10067 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/svr4.h

index 5ae252c..41c6ffa 100644 (file)
@@ -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