diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-04-08 17:16:34 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-04-08 10:16:34 -0700 |
commit | bfbdca0bf1ed2203cebb3daaa8ad755e983bc2d7 (patch) | |
tree | 4fe37f2b72567501dc0eb8e43c2cca8f9fcd74e8 /gcc | |
parent | df0785d62cdc5d01d863b1c2d7814d9c7f2c3457 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2c2f7b..e5fdb04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. + 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New. 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; |