diff options
author | Jan Hubicka <jh@suse.cz> | 2010-09-10 18:36:04 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-09-10 16:36:04 +0000 |
commit | 1b0086ccac98e5aa4c9c47ea4bafb251ed2a2bb4 (patch) | |
tree | 5166e7926af675228b49168d6e553dbee8575940 /gcc/tree-ssa-ccp.c | |
parent | 6611da37114cc6a8ba94f81ec6d7d95f729a2877 (diff) | |
download | gcc-1b0086ccac98e5aa4c9c47ea4bafb251ed2a2bb4.zip gcc-1b0086ccac98e5aa4c9c47ea4bafb251ed2a2bb4.tar.gz gcc-1b0086ccac98e5aa4c9c47ea4bafb251ed2a2bb4.tar.bz2 |
* tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
From-SVN: r164198
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 33d5cc7..0bc90ad 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -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. */ |