aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gcc.gnu.org>2006-04-24 01:17:42 -0700
committerRichard Biener <rguenth@gcc.gnu.org>2006-04-24 08:17:42 +0000
commit72fa5e06ab66219c7c7ef13e2bd9a2e123a89672 (patch)
treeb054ea8cc3f2f50078c575535eb599d9731d331b /gcc/tree-inline.c
parent0162f1556ef63ae13060047d897329d1724faf91 (diff)
downloadgcc-72fa5e06ab66219c7c7ef13e2bd9a2e123a89672.zip
gcc-72fa5e06ab66219c7c7ef13e2bd9a2e123a89672.tar.gz
gcc-72fa5e06ab66219c7c7ef13e2bd9a2e123a89672.tar.bz2
re PR tree-optimization/27218 (ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1515, inlining produces non-gimple)
2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org> Richard Guenther <rguenther@suse.de> PR tree-optimization/27218 * tree-inline.c (expand_call_inline): Strip useless type conversions for the return slot address. * g++.dg/tree-ssa/pr27218.C: New testcase. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r113218
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 525009e..6eb890b 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -2073,6 +2073,7 @@ expand_call_inline (basic_block bb, tree stmt, tree *tp, void *data)
if (CALL_EXPR_RETURN_SLOT_OPT (t))
{
return_slot_addr = build_fold_addr_expr (modify_dest);
+ STRIP_USELESS_TYPE_CONVERSION (return_slot_addr);
modify_dest = NULL;
}
}