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?

Reply via email to