From 132e2b41ef9b7d77ba05a42b89d6ce4cda706e36 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 29 Aug 2019 11:59:41 +0000 Subject: [PATCH] i386-features.c (general_scalar_chain::convert_insn): Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS. 2019-08-29 Richard Biener * config/i386/i386-features.c (general_scalar_chain::convert_insn): Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS. From-SVN: r275031 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386-features.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f94dae24c4d..7a975622df7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-08-29 Richard Biener + + * config/i386/i386-features.c (general_scalar_chain::convert_insn): + Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS. + 2019-08-29 Richard Biener PR bootstrap/91580 diff --git a/gcc/config/i386/i386-features.c b/gcc/config/i386/i386-features.c index f3c0eb67ec7..03f33f8b0b0 100644 --- a/gcc/config/i386/i386-features.c +++ b/gcc/config/i386/i386-features.c @@ -893,7 +893,7 @@ general_scalar_chain::convert_insn (rtx_insn *insn) if (use) convert_reg (insn, DF_REF_REG (ref), *defs_map.get (regno_reg_rtx [DF_REF_REGNO (ref)])); - else + else if (MAY_HAVE_DEBUG_BIND_INSNS) { /* If we generated a scalar copy we can leave debug-insns as-is, if not, we have to adjust them. */ -- 2.30.2