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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
         Resolution|WONTFIX                     |---

--- Comment #15 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> It's true that, as far as I'm aware, no other architecture has this issue,
> as either the PIC register is caller-saved, or it gets saved by setjmp.

OK, that was my understanding too.

> However the original SPARC library authors clearly thought of this and
> decided it was the responsibility of the compiler to not rely on input or
> local registers being preserved given their explicit note in SCD, so whether
> or not you believe that this was a good idea, that's what they chose and
> what we currently have, and GCC is not adhering to that. Sure, it would be
> nice if the registers were saved by setjmp, but it's documented behaviour
> and thus not a bug as such in glibc nor Solaris's libc.

Fair enough, let's bow to SCD's wisdom then. ;-)

Reply via email to