aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-10-20 15:09:43 +0000
committerJakub Jelinek <jakub@redhat.com>2009-10-20 15:09:43 +0000
commitacdc09859e1c15d41ec0fc26eac1c5ee40aa2fc6 (patch)
tree560c299c453860db502a7d7a73884177e48025df
parent442948db31393d52a4d223187ce7c25695d69228 (diff)
PR debug/41739
* haifa-sched.c (try_ready): Skip debug deps updating speculation status. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@153017 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/haifa-sched.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 40b2359f30c..812dd1475f8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-20 Alexandre Oliva <aoliva@redhat.com>
+
+ PR debug/41739
+ * haifa-sched.c (try_ready): Skip debug deps updating speculation
+ status.
+
2009-10-20 Richard Guenther <rguenther@suse.de>
* ggc-page.c: Include cfgloop.h.
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index bc947fad6f6..7cbe1ecee51 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -3754,6 +3754,10 @@ try_ready (rtx next)
{
ds_t ds = DEP_STATUS (dep) & SPECULATIVE;
+ if (DEBUG_INSN_P (DEP_PRO (dep))
+ && !DEBUG_INSN_P (next))
+ continue;
+
if (first_p)
{
first_p = false;