[patch] add apple specific i386 cpu
Joseph S. Myers
joseph@codesourcery.com
Tue Jun 5 12:27: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
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.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list