From: Jan Hubicka Date: Fri, 10 Sep 2010 16:36:04 +0000 (+0200) Subject: * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag. X-Git-Tag: releases/gcc-4.6.0~4402 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b0086ccac98e5aa4c9c47ea4bafb251ed2a2bb4;p=thirdparty%2Fgcc.git * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag. From-SVN: r164198 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4d1e7b66ffc7..6e64c269b25a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-09-10 Jan Hubicka + + * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag. + 2010-09-10 Richard Guenther * 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 33d5cc75feaf..0bc90ad92917 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. */