Commit f2b33981 by Richard Kenner Committed by Richard Kenner

elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of a CONSTRUCTOR.

	* config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
	a CONSTRUCTOR.

From-SVN: r34019
parent 6dad70df
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> 2000-05-18 Chris Demetriou <cgd@sibyte.com>
* gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
......
...@@ -484,8 +484,7 @@ dtors_section () \ ...@@ -484,8 +484,7 @@ dtors_section () \
else \ else \
data_section (); \ data_section (); \
} \ } \
else if (TREE_CODE (DECL) == VAR_DECL \ else if (TREE_CODE (DECL) == VAR_DECL) \
|| TREE_CODE (DECL) == CONSTRUCTOR) \
{ \ { \
if ((flag_pic && RELOC) \ if ((flag_pic && RELOC) \
|| !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \ || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
...@@ -496,6 +495,15 @@ dtors_section () \ ...@@ -496,6 +495,15 @@ dtors_section () \
else \ else \
const_section (); \ 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 \ else \
const_section (); \ const_section (); \
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment