* config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
a CONSTRUCTOR.
From-SVN: r34019
+Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
+ a CONSTRUCTOR.
+
2000-05-18 Chris Demetriou <cgd@sibyte.com>
* gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
else \
data_section (); \
} \
- else if (TREE_CODE (DECL) == VAR_DECL \
- || TREE_CODE (DECL) == CONSTRUCTOR) \
+ else if (TREE_CODE (DECL) == VAR_DECL) \
{ \
if ((flag_pic && RELOC) \
|| !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
else \
const_section (); \
} \
+ else if (TREE_CODE (DECL) == CONSTRUCTOR) \
+ { \
+ if ((flag_pic && RELOC) \
+ || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
+ || ! TREE_CONSTANT (DECL)) \
+ data_section (); \
+ else \
+ const_section (); \
+ } \
else \
const_section (); \
}