[Bug c/92086] Provide way to avoid saving callee-saved registers in functions without callers
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 4 23:35:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92086
--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
This is related to the compiler saving the return address for noreturn
sibcalls, like in
void g(void) __attribute__((noreturn));
void f(void) { g(); }
Maybe we should have an option like "-fimprove-debugging-experience" that
defaults to true only for -O0 and -Og (and maybe -O1)?
More information about the Gcc-bugs
mailing list