This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/80233] [7 Regression] ICE in combine_instructions w/ -O2 (and above)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80233

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
How about this patch instead?

--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1250,7 +1250,8 @@ combine_instructions (rtx_insn *f, unsigned int nregs)
            continue;

          while (last_combined_insn
-                && last_combined_insn->deleted ())
+                && (!INSN_P (last_combined_insn)
+                    || last_combined_insn->deleted ()))
            last_combined_insn = PREV_INSN (last_combined_insn);
          if (last_combined_insn == NULL_RTX
              || BARRIER_P (last_combined_insn)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]