[PATCH] Fix -fcompare-debug scheduling issue (PR rtl-optimization/44013)
Jakub Jelinek
jakub@redhat.com
Fri Jun 4 13:15:00 GMT 2010
Hi!
Another patch from Alex I've just bootstrapped/regtested on x86_64-linux and
i686-linux. Details in the PR, seems to fix the issue on picochip too.
Ok for trunk?
2010-06-04 Alexandre Oliva <aoliva@redhat.com>
PR rtl-optimization/44013
* sched-deps.c (add_dependence_list_and_free): Don't free lists
when processing debug insns.
--- gcc/sched-deps.c.orig 2010-06-02 02:04:01.000000000 -0300
+++ gcc/sched-deps.c 2010-06-02 02:05:10.000000000 -0300
@@ -1407,7 +1407,10 @@ add_dependence_list_and_free (struct dep
{
rtx list, next;
- if (deps->readonly)
+ /* We don't want to short-circuit dependencies involving debug
+ insns, because they may cause actual dependencies to be
+ disregarded. */
+ if (deps->readonly || DEBUG_INSN_P (insn))
{
add_dependence_list (insn, *listp, uncond, dep_type);
return;
Jakub
More information about the Gcc-patches
mailing list