Re: [PATCH] Fix unwind info in -mindirect-branch=thunk thunks (PR target/87414)

2018-09-26 Thread Uros Bizjak
On Tue, Sep 25, 2018 at 9:31 AM, Jakub Jelinek wrote: > Hi! > > The indirect branch thunks we emit look like: > __x86_indirect_thunk_rax: > .cfi_startproc > call.LIND1 > .LIND0: > pause > lfence > jmp .LIND0 > .LIND1: > mov %rax, (%rsp)

[PATCH] Fix unwind info in -mindirect-branch=thunk thunks (PR target/87414)

2018-09-25 Thread Jakub Jelinek
Hi! The indirect branch thunks we emit look like: __x86_indirect_thunk_rax: .cfi_startproc call.LIND1 .LIND0: pause lfence jmp .LIND0 .LIND1: mov %rax, (%rsp) ret .cfi_endproc The problem is that the CFI is incorrect.