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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-03-29
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This fixes it for me:
--- combine.c.jj1       2017-03-21 15:49:11.000000000 +0100
+++ combine.c   2017-03-29 07:59:56.627951253 +0200
@@ -1254,6 +1254,7 @@ combine_instructions (rtx_insn *f, unsig
            last_combined_insn = PREV_INSN (last_combined_insn);
          if (last_combined_insn == NULL_RTX
              || BARRIER_P (last_combined_insn)
+             || NOTE_P (last_combined_insn)
              || BLOCK_FOR_INSN (last_combined_insn) != this_basic_block
              || DF_INSN_LUID (last_combined_insn) <= DF_INSN_LUID (insn))
            last_combined_insn = insn;
but I'll study the combine dumps in more detail.

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