[Bug target/114097] Missed register optimization in _Noreturn functions
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 26 10:31:30 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114097
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:bb98f71bac8aace4e685e648a81dfaf365123833
commit r14-9178-gbb98f71bac8aace4e685e648a81dfaf365123833
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Feb 25 13:14:39 2024 -0800
x86: Check interrupt instead of noreturn attribute
ix86_set_func_type checks noreturn attribute to avoid incompatible
attribute error in LTO1 on interrupt functions. Since TREE_THIS_VOLATILE
is set also for _Noreturn without noreturn attribute, check interrupt
attribute for interrupt functions instead.
gcc/
PR target/114097
* config/i386/i386-options.cc (ix86_set_func_type): Check
interrupt instead of noreturn attribute.
gcc/testsuite/
PR target/114097
* gcc.target/i386/pr114097-1.c: New test.
More information about the Gcc-bugs
mailing list