OSDN Git Service

(ASM_OUTPUT_SECTION): Test DECL before
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Apr 1996 22:17:43 +0000 (22:17 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Apr 1996 22:17:43 +0000 (22:17 +0000)
dereferencing it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11865 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/m68k/coff.h

index 35556c9..9f0a638 100644 (file)
@@ -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++.  */