PATCH: Add --with-arch=cpu (Re: Should gcc configurted for CPU to generate code for CPU by default?)
H. J. Lu
hjl@lucon.org
Fri Jul 19 18:46:00 GMT 2002
On Fri, Jul 19, 2002 at 01:49:52PM -0400, Daniel Jacobowitz wrote:
> > >
> > > Can't this be done at the driver level? We have different handling of
> > >
> >
> > What do you mean by that?
>
> I.E. make the GCC driver supply a default value of -mcpu if none is
> specified on the command line, the same way sane programs set defaults.
>
That is exactly what the gcc driver is doing today. My patch provides
a way to choose a different default value for -march at the configure
time. Without my change, the default value for -march is i386 for all
ia32 processors and it is fixed.
H.J.
More information about the Gcc
mailing list