https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112962
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 56864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56864&action=edit gcc14-pr112962-2.patch And another one for nothrow/leaf. I'm too lazy to figure out the exact details for -fnon-call-exceptions, will defer that to somebody who cares about those and has time to figure out all the details. I think e.g. aarch64 doesn't set nothrow on builtins with -fnon-call-exceptions if they might raise floating point exceptions or read/write memory.