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

Reply via email to