From 3c9cc6f4708f8eb78dde10d42eb4744c8b30fa4d Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Tue, 6 Nov 2007 23:20:38 +0000 Subject: [PATCH] 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 From-SVN: r129948 --- gcc/ChangeLog | 7 +++++++ gcc/haifa-sched.c | 18 ------------------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67760064058..884461a2d79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-11-07 Maxim Kuvyrkov + Jakub Jelinek + + PR middle-end/33670 + * haifa-sched.c (check_sched_flags): Remove. + (sched_init): Don't call it. + 2007-11-06 Rask Ingemann Lambertsen PR target/32787 diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 38d013672dc..6e56e9e8ea8 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -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 */