Commit 35d59da7 by Uros Bizjak

re PR rtl-optimization/56023 ([alpha] -fcompare-debug failure due to sched1 pass)

	PR rtl-optimization/56023
	* haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
	dependent on debug instruction.

testsuite/ChangeLog:

	PR rtl-optimization/56023
	* gcc.dg/pr56023.c: New test.

From-SVN: r195342
parent 5b9db1bc
2012-01-21 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/56023
* haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
dependent on debug instruction.
2013-01-21 Martin Jambor <mjambor@suse.cz> 2013-01-21 Martin Jambor <mjambor@suse.cz>
PR middle-end/56022 PR middle-end/56022
......
...@@ -6809,6 +6809,9 @@ fix_inter_tick (rtx head, rtx tail) ...@@ -6809,6 +6809,9 @@ fix_inter_tick (rtx head, rtx tail)
INSN_TICK (head) = tick; INSN_TICK (head) = tick;
} }
if (DEBUG_INSN_P (head))
continue;
FOR_EACH_DEP (head, SD_LIST_RES_FORW, sd_it, dep) FOR_EACH_DEP (head, SD_LIST_RES_FORW, sd_it, dep)
{ {
rtx next; rtx next;
......
2012-01-21 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/56023
* gcc.dg/pr56023.c: New test.
2013-01-21 Martin Jambor <mjambor@suse.cz> 2013-01-21 Martin Jambor <mjambor@suse.cz>
PR middle-end/56022 PR middle-end/56022
...@@ -11,7 +16,7 @@ ...@@ -11,7 +16,7 @@
PR debug/53235 PR debug/53235
* g++.dg/debug/dwarf2/nested-4.C: XFAIL on darwin. * g++.dg/debug/dwarf2/nested-4.C: XFAIL on darwin.
2013-01-20 Hans-Peter Nilsson <hp@axis.com> 2013-01-20 Hans-Peter Nilsson <hp@axis.com>
* gfortran.dg/inquire_10.f90: Run only for non-newlib targets. * gfortran.dg/inquire_10.f90: Run only for non-newlib targets.
...@@ -69,10 +74,10 @@ ...@@ -69,10 +74,10 @@
2013-01-17 Jack Howarth <howarth@bromo.med.uc.edu> 2013-01-17 Jack Howarth <howarth@bromo.med.uc.edu>
PR sanitizer/55679 PR sanitizer/55679
* g++.dg/asan/interception-test-1.C: Skip on darwin. * g++.dg/asan/interception-test-1.C: Skip on darwin.
* lib/target-supports.exp (check_effective_target_swapcontext): Use * lib/target-supports.exp (check_effective_target_swapcontext): Use
check_no_compiler_messages to test support in ucontext.h. check_no_compiler_messages to test support in ucontext.h.
(check_effective_target_setrlimit): Return 0 for Darwin's non-posix (check_effective_target_setrlimit): Return 0 for Darwin's non-posix
compliant RLIMIT_AS. compliant RLIMIT_AS.
......
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */
void
foo (char *c)
{
unsigned int x = 0;
unsigned int i;
for (i = 0; c[i]; i++)
{
if (i >= 5 && x != 1)
break;
else if (c[i] == ' ')
x = i;
else if (c[i] == '/' && c[i + 1] != ' ' && i)
x = i + 1;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment