re PR debug/51471 (gcc.c-torture/execute/20040811-1.c and gcc.c-torture/execute/vla-dealloc-1.c fails at -O3 -g on mips64-linux-gnu)

2012-01-09  Tom de Vries  <tom@codesourcery.com>
	    Andrew Pinski  <apinski@cavium.com>

	PR debug/51471
	* reorg.c (fill_slots_from_thread): Don't speculate frame-related insns.

Co-Authored-By: Andrew Pinski <apinski@cavium.com>

From-SVN: r183038
This commit is contained in:
Tom de Vries 2012-01-09 22:19:47 +00:00 committed by Tom de Vries
parent 4f7c82dcdb
commit 243b92d11e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-01-09 Tom de Vries <tom@codesourcery.com>
Andrew Pinski <apinski@cavium.com>
* reorg.c (fill_slots_from_thread): Don't speculate frame-related insns.
2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
* sched-int.h (bb_note): Move to...

View File

@ -2716,7 +2716,8 @@ fill_slots_from_thread (rtx insn, rtx condition, rtx thread,
if (!must_annul
&& (condition == const_true_rtx
|| (! insn_sets_resource_p (trial, &opposite_needed, true)
&& ! may_trap_or_fault_p (pat))))
&& ! may_trap_or_fault_p (pat)
&& ! RTX_FRAME_RELATED_P (trial))))
{
old_trial = trial;
trial = try_split (pat, trial, 0);