re PR middle-end/33670 (cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf)

PR middle-end/33670
	* haifa-sched.c (check_sched_flags): Remove.
	(sched_init): Don't call it.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r129948
This commit is contained in:
Maxim Kuvyrkov 2007-11-06 23:20:38 +00:00 committed by Jakub Jelinek
parent ae75007994
commit 3c9cc6f470
2 changed files with 7 additions and 18 deletions

View File

@ -1,3 +1,10 @@
2007-11-07 Maxim Kuvyrkov <maxim@codesourcery.com>
Jakub Jelinek <jakub@redhat.com>
PR middle-end/33670
* haifa-sched.c (check_sched_flags): Remove.
(sched_init): Don't call it.
2007-11-06 Rask Ingemann Lambertsen <rask@sygehus.dk>
PR target/32787

View File

@ -582,7 +582,6 @@ static void add_jump_dependencies (rtx, rtx);
#ifdef ENABLE_CHECKING
static int has_edge_p (VEC(edge,gc) *, int);
static void check_cfg (rtx, rtx);
static void check_sched_flags (void);
#endif
#endif /* INSN_SCHEDULING */
@ -2692,9 +2691,6 @@ sched_init (void)
else
/* So we won't read anything accidentally. */
spec_info = 0;
#ifdef ENABLE_CHECKING
check_sched_flags ();
#endif
}
else
/* So we won't read anything accidentally. */
@ -4517,20 +4513,6 @@ check_cfg (rtx head, rtx tail)
gcc_assert (bb == 0);
}
/* Perform a few consistency checks of flags in different data structures. */
static void
check_sched_flags (void)
{
unsigned int f = current_sched_info->flags;
if (flag_sched_stalled_insns)
gcc_assert (!(f & DO_SPECULATION));
if (f & DO_SPECULATION)
gcc_assert (!flag_sched_stalled_insns
&& spec_info
&& spec_info->mask);
}
#endif /* ENABLE_CHECKING */
#endif /* INSN_SCHEDULING */