aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2014-09-18 19:14:19 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2014-09-18 19:14:19 +0000
commit2fb5f0da9dff6e7f4e394da90c0edcc333402217 (patch)
tree131eb9ecb7c23931a1734a7f72c2334e00377bcc /gcc/haifa-sched.c
parentf4d5fe4732a287ef7b0981f8d895a9c263312b66 (diff)
downloadgcc-2fb5f0da9dff6e7f4e394da90c0edcc333402217.zip
gcc-2fb5f0da9dff6e7f4e394da90c0edcc333402217.tar.gz
gcc-2fb5f0da9dff6e7f4e394da90c0edcc333402217.tar.bz2
re PR debug/63285 (-fcompare-debug scheduler related failure)
2014-09-18 Vladimir Makarov <vmakarov@redhat.com> PR debug/63285 * haifa-sched.c (schedule_block): Advance cycle at the end of BB if advance != 0. 2014-09-18 Vladimir Makarov <vmakarov@redhat.com> PR debug/63285 * gcc.target/i386/pr63285.c: New test. From-SVN: r215364
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index fb92bb2..cb41cc2 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -6473,7 +6473,7 @@ schedule_block (basic_block *target_bb, state_t init_state)
if (ls.modulo_epilogue)
success = true;
end_schedule:
- if (!ls.first_cycle_insn_p)
+ if (!ls.first_cycle_insn_p || advance)
advance_one_cycle ();
perform_replacements_new_cycle ();
if (modulo_ii > 0)