This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] add apple specific i386 cpu
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Eric Christopher" <echristo at apple dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>, "Geoff Keating" <geoffk at apple dot com>
- Date: Mon, 4 Jun 2007 18:12:06 -0700
- Subject: Re: [patch] add apple specific i386 cpu
- References: <337617B1-7879-4C01-ABDA-FCF631CD0A7C@apple.com>
On 6/4/07, Eric Christopher <echristo@apple.com> wrote:
So, Apple has only shipped i386 hardware targeting a specific set of
i386 hardware. Previously we had a target of nocona by default, but
unfortunately that supports sse3 so the best would perhaps be to have
an architecture for the minimum supported hardware for apple.
Can you not use the name Apple? It seems better to use Darwin or
something like sse264? The main reason is that we should not credit
Apple in this case. Maybe there is a better way of implementing this
for darwin only. Something like what is done for the rs6000 back-end:
#undef PROCESSOR_DEFAULT
#define PROCESSOR_DEFAULT PROCESSOR_PPC7400
#undef PROCESSOR_DEFAULT64
#define PROCESSOR_DEFAULT64 PROCESSOR_POWER4
....
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_POWERPC | MASK_MULTIPLE | MASK_NEW_MNEMONICS \
| MASK_PPC_GFXOPT)
Thanks,
Andrew Pinski