[patch] add apple specific i386 cpu
Jan Hubicka
hubicka@ucw.cz
Tue Jun 5 12:35:00 GMT 2007
> On Tue, 5 Jun 2007, H. J. Lu wrote:
>
> > > Adding machinery to default to different -march depending on presence of
> > > -m64 don't seem to be that big deal either.
> > >
> >
> > I prefer this solution with something like
> >
> > ../configure --with-cpu-32=xxx --with-arch-32=xxx --with-cpu-64=xxx --with-arch-64=xxx
This is pretty much what I had in mind (ie having pairs of --with-cpu
and --with-arch) and let driver to chose the value.
>
> I have patches that do something like this (option spellings --with-arch64
> etc.) for MIPS and Power (but not IA32), but they'd need cleaning up for
> FSF submission to be correct for both 32-bit and 64-bit defaults, and such
> changes are effectively independent for each target.
>
> The basic principle of such changes is obvious:
>
> { "cpu64", "%{m64:%{!mcpu=*:-mcpu=%(VALUE)}}" }
>
> or similar in OPTION_DEFAULT_SPECS, and the obvious changes to config.gcc,
> but "m64" needs to be "!m32" when defaulting to 64-bit.
I would preffer this relatively target independent solution than adding
new virtual CPU mostly mirroring what generic does. Adding the extra -
in name seems like good step for me - some targets have more than 32/64
variants and we might end up with adding more --with-cpu subvariants and
having something like --with-cpunewabi is less readable than
--with-cpu-newabi
Honza
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
More information about the Gcc-patches
mailing list