diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-24 08:17:42 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-24 08:17:42 +0000 |
commit | 1ab8c36eafa50ade5183af06f5b75e22f8cab634 (patch) | |
tree | b054ea8cc3f2f50078c575535eb599d9731d331b /gcc/tree-inline.c | |
parent | 677144a018a688a3d70b1f5f26dcbd903b31d6b0 (diff) | |
download | gcc-1ab8c36eafa50ade5183af06f5b75e22f8cab634.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 525009eb738..6eb890b0ea2 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; } } |