diff mbox

PATCH: PR bootstrap/53555: [4.8 Regression] Bootstrap failure

Message ID 20120602132741.GA23970@intel.com
State New
Headers show

Commit Message

H.J. Lu June 2, 2012, 1:27 p.m. UTC
Hi,

ix86_sched_reorder should skip debug insns.  Tested on Linux/ia32.
OK to install?

Thanks.

H.J.
---
2012-06-02  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/53555
	* config/i386/i386.c (ix86_sched_reorder) Skip debug insns.

Comments

Uros Bizjak June 4, 2012, 11:06 p.m. UTC | #1
On Sat, Jun 2, 2012 at 3:27 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:

> ix86_sched_reorder should skip debug insns.  Tested on Linux/ia32.
> OK to install?
>
> 2012-06-02  H.J. Lu  <hongjiu.lu@intel.com>
>
>        PR bootstrap/53555
>        * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.

OK.

Thanks,
Uros.
diff mbox

Patch

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index c6c2c5e..13755f4 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -23919,6 +23919,8 @@  ix86_sched_reorder(FILE *dump, int sched_verbose, rtx *ready, int *pn_ready,
         {
           rtx con;
 	  con = DEP_CON (dep);
+	  if (!NONDEBUG_INSN_P (con))
+	    continue;
           insn1 = PATTERN (con);
           if (GET_CODE (insn1) == PARALLEL)
             insn1 = XVECEXP (insn1, 0, 0);
@@ -23935,6 +23937,8 @@  ix86_sched_reorder(FILE *dump, int sched_verbose, rtx *ready, int *pn_ready,
                 {
                   rtx pro;
                   pro = DEP_PRO (dep1);
+		  if (!NONDEBUG_INSN_P (pro))
+		    continue;
                   if (pro != insn)
                     index = -1;
 	        }