diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2c2f7b71e4..e5fdb04cb64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-08 Andrew Pinski + + * config/darwin.c (darwin_encode_section_info): When the decl has + a DECL_INITIAL, it is only defined also when it is not a common. + 2004-04-08 Kaveh R. Ghazi * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index f6e29b8c96a..fd4ff3234ee 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1004,7 +1004,7 @@ darwin_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED) && (!TREE_PUBLIC (decl) || (!DECL_ONE_ONLY (decl) && !DECL_WEAK (decl))) && ((TREE_STATIC (decl) && (!DECL_COMMON (decl) || !TREE_PUBLIC (decl))) - || (DECL_INITIAL (decl) + || (!DECL_COMMON (decl) && DECL_INITIAL (decl) && DECL_INITIAL (decl) != error_mark_node))) defined = 1;