diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-10 16:36:04 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-10 16:36:04 +0000 |
| commit | 7ac41a84cf211c5010f8e7b948ce78afa1571d22 (patch) | |
| tree | 5166e7926af675228b49168d6e553dbee8575940 | |
| parent | 986973ca39d62f0f9f760d182bc73a030baf2523 (diff) | |
| download | ppe42-gcc-7ac41a84cf211c5010f8e7b948ce78afa1571d22.tar.gz ppe42-gcc-7ac41a84cf211c5010f8e7b948ce78afa1571d22.zip | |
* tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164198 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/tree-ssa-ccp.c | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4d1e7b66ffc..6e64c269b25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 33d5cc75fea..0bc90ad9291 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. */ |

