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
+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.
+
2006-04-24 Richard Guenther <rguenther@suse.de>
* cfgloop.h (struct loops): Remove unused field array. Reorder
+2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
+ Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/27218
+ * g++.dg/tree-ssa/pr27218.C: New testcase.
+
2006-04-23 Mark Mitchell <mark@codesourcery.com>
PR c++/26912
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+struct Vector
+{
+ double _x, _y;
+};
+typedef Vector Point;
+Vector d;
+static inline Vector f(void)
+{
+ return d;
+}
+void add_duck (void)
+{
+ new Point (f());
+}
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;
}
}