aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-07-19 21:22:04 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-07-19 21:22:04 +0000
commita3628196ec3dee889444cce725c810e84e36b670 (patch)
tree38cb017fd903c3620a5e88ecf3ae36249695c729 /gcc/gimple-fold.c
parentb42ff0a550777b45ca004460ef55f50f8f0e34c9 (diff)
downloadgcc-a3628196ec3dee889444cce725c810e84e36b670.zip
gcc-a3628196ec3dee889444cce725c810e84e36b670.tar.gz
gcc-a3628196ec3dee889444cce725c810e84e36b670.tar.bz2
gimple-fold.c (canonicalize_constructor_val): Strip only useless type conversions.
* gimple-fold.c (canonicalize_constructor_val): Strip only useless type conversions. From-SVN: r189685
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 b97719a..ccdeb346 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)
{