This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Turn on -mapp-regs by default on Solaris
On Thu, 21 Apr 2005 16:00:17 -0700
Richard Henderson <rth@redhat.com> wrote:
> On Fri, Apr 22, 2005 at 12:11:48AM +0200, Eric Botcazou wrote:
> > * config/sparc/sol2.h (TARGET_DEFAULT): Add MASK_APP_REGS.
> > * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
>
> I have no idea why I did this. Ok by me if it works....
Me too, of course.
Eric and myself actually did all of the history research.
When Jakub added ".register" support to the Sparc backend
(back in 1999), you changed solaris and friends over to
"-mno-app-regs" by default because it seemed to you that
this would make ".register work better" (this is what you
stated in your posting on gcc-patches at the time).
You even made that change to linux64 as well, but that was
quickly reverted by Jakub.
As Eric pointed out to me, even Sun's compiler does -mapp-reg
by default.
It's kind of amusing that Solaris Sparc targets have been
without 3 or 4 registers since ~1999. Heck, that's how
many integer registers some targets have total :-)