https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497

--- Comment #19 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to andi from comment #18)
> > > -mgeneral-regs-only works for this case, but breaks SSE.
> > 
> > Why is __attribute__((no_caller_saved_registers)) needed on start?
> 
> To maintain the standard ABI to its caller. Otherwise the final
> return could clobber caller state.

GCC should do the right thing without no_caller_saved_registers. If not,
it is a GCC bug.  Do you have a testcase to show such GCC bug?

Reply via email to