aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/svr3.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/svr3.h')
-rw-r--r--gcc/config/svr3.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h
index 9f8ddc1..94cefb4 100644
--- a/gcc/config/svr3.h
+++ b/gcc/config/svr3.h
@@ -363,7 +363,10 @@ dtors_section () \
else if (TREE_CODE (DECL) == VAR_DECL) \
{ \
if ((0 && RELOC) /* should be (flag_pic && RELOC) */ \
- || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL)) \
+ || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
+ || !DECL_INITIAL (DECL) \
+ || (DECL_INITIAL (DECL) != error_mark_node \
+ && !TREE_CONSTANT (DECL_INITIAL (DECL)))) \
data_section (); \
else \
const_section (); \