aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-04-08 17:16:34 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-04-08 10:16:34 -0700
commitbfbdca0bf1ed2203cebb3daaa8ad755e983bc2d7 (patch)
tree4fe37f2b72567501dc0eb8e43c2cca8f9fcd74e8 /gcc/config
parentdf0785d62cdc5d01d863b1c2d7814d9c7f2c3457 (diff)
downloadgcc-bfbdca0bf1ed2203cebb3daaa8ad755e983bc2d7.zip
gcc-bfbdca0bf1ed2203cebb3daaa8ad755e983bc2d7.tar.gz
gcc-bfbdca0bf1ed2203cebb3daaa8ad755e983bc2d7.tar.bz2
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 <pinskia@physics.uc.edu> * 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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index f6e29b8..fd4ff32 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;