https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110247
--- Comment #2 from LIU Hao <lh_mouse at 126 dot com> --- (In reply to Andrew Pinski from comment #1) > The way I read the documentation, it will NOT be used when dealing with If it is known, then why shouldn't it? One potential usecase where this would be helpful is `__errno_location()` in GNU libc., and maybe `__emutls_get_address()`. > And it is used only for calls from an interrupt handler (e.g. directly from > assembly). and even more you need to use -mgeneral-regs-only too. That function will be compiled with `-mgeneral-regs-only`, but callers need not.