[Bug c/67967] ICE in i386_pe_seh_unwind_emit

2015-10-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67967

--- Comment #3 from Uroš Bizjak  ---
Actually, gcc can now handle misaligned stack for x86_64 and it emits 

{
  rtx unspec = gen_rtx_UNSPEC (mode, gen_rtvec (1, reg), UNSPEC_STOREU);
  insn = emit_insn (gen_rtx_SET (mem, unspec));
}

that is later decorated with:

add_reg_note (insn, REG_CFA_EXPRESSION, gen_rtx_SET (mem, reg));

So, i386_pe_seh_unwind_emit has to be updated to handle REG_CFA_EXPRESSION.

[Bug c/67967] ICE in i386_pe_seh_unwind_emit

2015-10-14 Thread tprince at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67967

--- Comment #2 from tprince at computer dot org ---
Created attachment 36512
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36512&action=edit
C source

According to ChangeLog, ktietz is the one who modified this since it was last
working (verified on 26 Sept. 2015).  There are hundreds of failures pointing
to the same source line, between build and test suite.


[Bug c/67967] ICE in i386_pe_seh_unwind_emit

2015-10-14 Thread tprince at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67967

--- Comment #1 from tprince at computer dot org ---
Created attachment 36511
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36511&action=edit
include file