From: Andrew MacLeod Date: Thu, 28 Nov 2013 14:11:12 +0000 (+0000) Subject: tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to is_gimple_reg_type. X-Git-Tag: releases/gcc-4.9.0~2392 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c6b087cc13517cbf9f52786e2727b6fc774d9da;p=thirdparty%2Fgcc.git tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to is_gimple_reg_type. 2013-11-28 Andrew MacLeod * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to is_gimple_reg_type. * ipa-prop.c (determine_known_aggregate_parts): Likewise. From-SVN: r205485 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 777fe094d7de..507f86273155 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-11-28 Andrew MacLeod + + * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to + is_gimple_reg_type. + * ipa-prop.c (determine_known_aggregate_parts): Likewise. + 2013-11-28 Terry Guo * config/arm/arm.c (v7m_extra_costs): New table. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 2254d0de421d..712dab76c50d 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1424,7 +1424,7 @@ determine_known_aggregate_parts (gimple call, tree arg, lhs = gimple_assign_lhs (stmt); rhs = gimple_assign_rhs1 (stmt); - if (!is_gimple_reg_type (rhs) + if (!is_gimple_reg_type (TREE_TYPE (rhs)) || TREE_CODE (lhs) == BIT_FIELD_REF || contains_bitfld_component_ref_p (lhs)) break; diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index da583fdc6aaf..783b6513e30d 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -667,7 +667,7 @@ valid_gimple_call_p (tree expr) for (i = 0; i < nargs; i++) { tree arg = CALL_EXPR_ARG (expr, i); - if (is_gimple_reg_type (arg)) + if (is_gimple_reg_type (TREE_TYPE (arg))) { if (!is_gimple_val (arg)) return false;