Commit 313333a6 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/43068 (ICE: in estimate_operator_cost, at…

re PR tree-optimization/43068 (ICE: in estimate_operator_cost, at tree-inline.c:3141 with -freorder-blocks -ftracer)

2010-02-15  Richard Guenther  <rguenther@suse.de>

	PR middle-end/43068
	* cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
	if that is zero.

	* g++.dg/torture/pr43068.C: New testcase.

From-SVN: r156770
parent ff78880a
2010-02-15 Richard Guenther <rguenther@suse.de>
PR middle-end/43068
* cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
if that is zero.
2010-02-15 Nick Clifton <nickc@redhat.com>
* config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
......
......@@ -1230,7 +1230,8 @@ thunk_adjust (gimple_stmt_iterator * bsi,
gimple stmt;
tree ret;
if (this_adjusting)
if (this_adjusting
&& fixed_offset != 0)
{
stmt = gimple_build_assign (ptr,
fold_build2_loc (input_location,
......@@ -1315,7 +1316,8 @@ thunk_adjust (gimple_stmt_iterator * bsi,
offsettmp);
}
if (!this_adjusting)
if (!this_adjusting
&& fixed_offset != 0)
/* Adjust the pointer by the constant. */
{
tree ptrtmp;
......
2010-02-15 Richard Guenther <rguenther@suse.de>
PR middle-end/43068
* g++.dg/torture/pr43068.C: New testcase.
2010-02-14 Volker Reichelt <reichelt@gcc.gnu.org>
PR c++/43024
......
/* { dg-do compile } */
/* { dg-options "-freorder-blocks -ftracer} */
struct A {
virtual A *f();
};
struct B : virtual A {
virtual B *f();
};
B *B::f() { return 0; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment