Commit 1b0086cc by Jan Hubicka Committed by Jan Hubicka

* tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.

From-SVN: r164198
parent 6611da37
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.
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment