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
This commit is contained in:
Andrew Pinski 2004-04-08 17:16:34 +00:00 committed by Andrew Pinski
parent df0785d62c
commit bfbdca0bf1
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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;