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 c/67967] [5.2/6 Regression] ICE in i386_pe_seh_unwind_emit


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

--- Comment #4 from UroÅ Bizjak <ubizjak at gmail dot com> ---
A totaly untested, bit kind of obvious patch:

--cut here--
Index: config/i386/winnt.c
===================================================================
--- config/i386/winnt.c (revision 228818)
+++ config/i386/winnt.c (working copy)
@@ -1128,11 +1128,11 @@ i386_pe_seh_unwind_emit (FILE *asm_out_file, rtx_i
       switch (REG_NOTE_KIND (note))
        {
        case REG_FRAME_RELATED_EXPR:
+       case REG_CFA_EXPRESSION:
          pat = XEXP (note, 0);
          goto found;

        case REG_CFA_DEF_CFA:
-       case REG_CFA_EXPRESSION:
          /* Only emitted with DRAP, which we disable.  */
          gcc_unreachable ();
          break;
--cut here--

Can you please check the above patch?

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