From: Bernd Schmidt Date: Tue, 5 Apr 2011 22:19:17 +0000 (+0000) Subject: re PR bootstrap/48403 (bootstrap comparison failure) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fca96842b4d2d5361d11b6531336749531b16445;p=gcc.git re PR bootstrap/48403 (bootstrap comparison failure) PR bootstrap/48403 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only if old and new states differ. From-SVN: r172006 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dff7d07e642..0f9ce6c77bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-05 Bernd Schmidt + + PR bootstrap/48403 + * haifa-sched.c (schedule_block): Increment cycle_issued_insns only + if old and new states differ. + 2011-04-05 Joseph Myers * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200, diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 8f2e4ada33c..30f55be5178 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -3230,10 +3230,12 @@ schedule_block (basic_block *target_bb) if (recog_memoized (insn) >= 0) { + memcpy (temp_state, curr_state, dfa_state_size); cost = state_transition (curr_state, insn); if (!flag_sched_pressure) gcc_assert (cost < 0); - cycle_issued_insns++; + if (memcmp (temp_state, curr_state, dfa_state_size) != 0) + cycle_issued_insns++; asm_p = false; } else