]> gcc.gnu.org Git - gcc.git/commitdiff
darwin.c (darwin_encode_section_info): When the decl has a DECL_INITIAL, it is only...
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 8 Apr 2004 17:16:34 +0000 (17:16 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 8 Apr 2004 17:16:34 +0000 (10:16 -0700)
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

gcc/ChangeLog
gcc/config/darwin.c

index e2c2f7b71e4367f2924a31b8e12ed108aaf7c6eb..e5fdb04cb64c92bbb385fbe74c45f4e6d4e4355a 100644 (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.
index f6e29b8c96a85b770402223995cb4a874559b97d..fd4ff3234ee171aadea87f811f8d6872b92b5495 100644 (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;
 
This page took 0.07804 seconds and 5 git commands to generate.