OSDN Git Service

* tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2010 16:36:04 +0000 (16:36 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2010 16:36:04 +0000 (16:36 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164198 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-ccp.c

index 4d1e7b6..6e64c26 100644 (file)
@@ -1,3 +1,7 @@
+2010-09-10  Jan Hubicka  <jh@suse.cz>
+
+       * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
+
 2010-09-10  Richard Guenther  <rguenther@suse.de>
 
        * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
index 33d5cc7..0bc90ad 100644 (file)
@@ -1373,8 +1373,7 @@ fold_const_aggregate_ref (tree t)
 
       if (ctor == NULL_TREE
          || (TREE_CODE (ctor) != CONSTRUCTOR
-             && TREE_CODE (ctor) != STRING_CST)
-         || !TREE_STATIC (ctor))
+             && TREE_CODE (ctor) != STRING_CST))
        return NULL_TREE;
 
       /* Get the index.  If we have an SSA_NAME, try to resolve it
@@ -1460,8 +1459,7 @@ fold_const_aggregate_ref (tree t)
        }
 
       if (ctor == NULL_TREE
-         || TREE_CODE (ctor) != CONSTRUCTOR
-         || !TREE_STATIC (ctor))
+         || TREE_CODE (ctor) != CONSTRUCTOR)
        return NULL_TREE;
 
       field = TREE_OPERAND (t, 1);
@@ -1527,8 +1525,7 @@ fold_const_aggregate_ref (tree t)
 
       if (ctor == NULL_TREE
          || (TREE_CODE (ctor) != CONSTRUCTOR
-             && TREE_CODE (ctor) != STRING_CST)
-         || !TREE_STATIC (ctor))
+             && TREE_CODE (ctor) != STRING_CST))
        return NULL_TREE;
 
       /* Get the byte offset.  */