Commit 3b8ff89f by Mikael Pettersson Committed by Jeff Law

re PR rtl-optimization/46856 (internal compiler error in final_scan_insn breaks…

re PR rtl-optimization/46856 (internal compiler error in final_scan_insn breaks m68k-linux bootstrap)


	PR rtl-optimization/46856
	* postreload.c (reload_combine_recognize_const_pattern): Do not
	separate cc0 setter and user on cc0 targets.

	PR rtl-optimization/46856
	* gcc.c-torture/compile/pr46856.c: New test.

From-SVN: r169321
parent 434b8972
2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
PR rtl-optimization/46856
* postreload.c (reload_combine_recognize_const_pattern): Do not
separate cc0 setter and user on cc0 targets.
2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
PR c/43082
......
......@@ -1009,6 +1009,12 @@ reload_combine_recognize_const_pattern (rtx insn)
&& reg_state[clobbered_regno].real_store_ruid >= use_ruid)
break;
#ifdef HAVE_cc0
/* Do not separate cc0 setter and cc0 user on HAVE_cc0 targets. */
if (must_move_add && sets_cc0_p (PATTERN (use_insn)))
break;
#endif
gcc_assert (reg_state[regno].store_ruid <= use_ruid);
/* Avoid moving a use of ADDREG past a point where it is stored. */
if (reg_state[REGNO (addreg)].store_ruid > use_ruid)
......
2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
PR rtl-optimization/46856
* gcc.c-torture/compile/pr46856.c: New test.
2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
Andrew Pinski <pinskia@gmail.com>
......
struct data {
int prio;
signed char status;
};
struct base {
unsigned _num;
struct data vec[10];
};
static struct data *ix(struct base *base, unsigned i)
{
return &base->vec[i];
}
struct heap {
struct base base;
};
struct heap *heap;
void increase_insn_priority (int *fld, int amount)
{
if (ix(heap ? &heap->base : 0, *fld)->status > 0)
ix(heap ? &heap->base : 0, *fld)->prio += amount;
}
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