[Bug target/82158] _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)
peter at cordes dot ca
gcc-bugzilla@gcc.gnu.org
Tue Sep 26 15:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82158
Peter Cordes <peter at cordes dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |WONTFIX
--- Comment #11 from Peter Cordes <peter at cordes dot ca> ---
Flagging this WONTFIX instead of INVALID, since I'm still convinced gcc could
do better. What I'm proposing wouldn't be any worse than breaking the ABI on
UB. I guess unsafe code-gen for something that gcc warns about by default is
not too bad, though.
I guess I should file a separate missed-optimization bug about not eliminating
the code from a basic block that returns in a noreturn function.
See also
https://stackoverflow.com/questions/45981545/why-does-noreturn-function-return/46407858#46407858
(description of the possible optimizations).
More information about the Gcc-bugs
mailing list