re PR bootstrap/83396 (Bootstrap failures with Statement Frontiers)
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 14 Dec 2017 15:06:25 +0000 (15:06 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Thu, 14 Dec 2017 15:06:25 +0000 (15:06 +0000)
PR bootstrap/83396
* reload1.c (emit_input_reload_insns): Skip debug markers.

From-SVN: r255640

gcc/ChangeLog
gcc/reload1.c

index 5805e116ff5e61bd1a4c6a551afcedce7599a8d9..b7c76314d18719e9d4001326c52075a9944144fa 100644 (file)
@@ -1,3 +1,8 @@
+2017-12-14  Andreas Schwab  <schwab@linux-m68k.org>
+
+       PR bootstrap/83396
+       * reload1.c (emit_input_reload_insns): Skip debug markers.
+
 2017-12-14  Alexandre Oliva <aoliva@redhat.com>
 
        * config/i386/i386.c (rest_of_insert_endbranch): Use call loc
index fe1ec0d011fbf22ca96b9a9aa83753177b653969..baedc43b75f151a1da9e30d1f4b8d4b08b3f2da8 100644 (file)
@@ -7345,12 +7345,12 @@ emit_input_reload_insns (struct insn_chain *chain, struct reload *rl,
 
              /* Adjust any debug insns between temp and insn.  */
              while ((temp = NEXT_INSN (temp)) != insn)
-               if (DEBUG_INSN_P (temp))
+               if (DEBUG_BIND_INSN_P (temp))
                  INSN_VAR_LOCATION_LOC (temp)
                    = simplify_replace_rtx (INSN_VAR_LOCATION_LOC (temp),
                                            old, reloadreg);
                else
-                 gcc_assert (NOTE_P (temp));
+                 gcc_assert (DEBUG_INSN_P (temp) || NOTE_P (temp));
            }
          else
            {