https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106627
Bug ID: 106627
Summary: Exception from multiversion function cannot be caught
Product: gcc
Version: 12.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106627
--- Comment #2 from Simon Rainer ---
Created attachment 53518
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53518&action=edit
Proposed patch: Set TREE_NOTHROW correctly
I think I identified the issue and found a fix.
ix86_get_function_v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106816
Bug ID: 106816
Summary: noreturn/pure attributes are not set correctly on
multiversioned functions
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106816
--- Comment #2 from Simon Rainer ---
(In reply to H.J. Lu from comment #1)
> Like this?
>
> diff --git a/gcc/config/i386/i386-features.cc
> b/gcc/config/i386/i386-features.cc
> index fd212262f50..4904e4d71b3 100644
> --- a/gcc/config/i386/i386-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106816
--- Comment #4 from Simon Rainer ---
That's weird, I still get the following with your patch applied:
main:
.LFB2:
.cfi_startproc
subq$8, %rsp
.cfi_def_cfa_offset 16
call_Z5_Z1fvv@PLT
movl$1,