This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should gcc configurted for CPU to generate code for CPU bydefault?
- From: Philip Blundell <pb at nexus dot co dot uk>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 19 Jul 2002 16:24:24 +0100
- Subject: Re: Should gcc configurted for CPU to generate code for CPU bydefault?
- References: <20020719081402.A20608@lucon.org>
On Fri, 2002-07-19 at 16:14, H. J. Lu wrote:
> When I configure gcc for i686 with
>
> .../configure --target=i686-xxxxx
>
> I'd like to be able to make gcc generate code for i686 by default. It
> is also useful for MIPS. I am thinking adding
>
> --with-default-CPU=cpu
FYI, the arm port already has a "--with-cpu=CPU" configure option that
does pretty much this. Having gcc automatically take the cpu name from
the target tuple (ie --target=i686-linux implying 686 code) is probably
not desirable.
p.