[Bug c++/86286] Could __attribute__ ((nothrow)) on a noexcept function turn off EH codegen?
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 11:59:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86286
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> But when a noexcept function calls a non-noexcept function there is
> additional code needed to call std::terminate if an exception occurs:
I forgot to include the code for this case:
int g (int i);
int goo (int i) noexcept { return g (i); }
>
> _Z3gooi:
> .LFB1:
> .cfi_startproc
> .cfi_personality 0x3,__gxx_personality_v0
> .cfi_lsda 0x3,.LLSDA1
> jmp _Z1gi
> .cfi_endproc
> .LFE1:
> .globl __gxx_personality_v0
> .section .gcc_except_table,"a",@progbits
> .LLSDA1:
> .byte 0xff
> .byte 0xff
> .byte 0x1
> .uleb128 .LLSDACSE1-.LLSDACSB1
> .LLSDACSB1:
> .LLSDACSE1:
> .text
More information about the Gcc-bugs
mailing list