From bfbdca0bf1ed2203cebb3daaa8ad755e983bc2d7 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 8 Apr 2004 17:16:34 +0000 Subject: [PATCH] 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 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. From-SVN: r80511 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2