summaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-19 21:22:04 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-19 21:22:04 +0000
commitcbcfd5e3d8d2b8c6ca1c8a67d9554c188ebf9ce1 (patch)
tree38cb017fd903c3620a5e88ecf3ae36249695c729 /gcc/gimple-fold.c
parentbe42dbcec6416d879a72b52e261451a67630c139 (diff)
downloadgcc-cbcfd5e3d8d2b8c6ca1c8a67d9554c188ebf9ce1.tar.gz
* gimple-fold.c (canonicalize_constructor_val): Strip only useless type
conversions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index b97719a4c1c..ccdeb34677f 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -139,7 +139,7 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
tree
canonicalize_constructor_val (tree cval, tree from_decl)
{
- STRIP_NOPS (cval);
+ STRIP_USELESS_TYPE_CONVERSION (cval);
if (TREE_CODE (cval) == POINTER_PLUS_EXPR
&& TREE_CODE (TREE_OPERAND (cval, 1)) == INTEGER_CST)
{