This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Defining __powerpc__ in rs6000.h
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: Defining __powerpc__ in rs6000.h
- From: "David O'Brien" <obrien at FreeBSD dot org>
- Date: Fri, 18 May 2001 11:27:15 -0700
- Cc: gcc at gcc dot gnu dot org
- Organization: The NUXI BSD group
- References: <20010518044607.A74333@dragon.nuxi.com> <jmvgmysetm.fsf@geoffk.org>
- Reply-To: obrien at FreeBSD dot org
On Fri, May 18, 2001 at 11:16:21AM -0700, Geoff Keating wrote:
> "David O'Brien" <obrien@FreeBSD.org> writes:
>
> > Would it be possible to define __powerpc__, __ppc__, etc... in
> > CPP_CPU_SPEC, or something simular as is done in i386/i386.h and
> > alpha/alpha.h?
>
> Some of these chips are not powerpc, so the define would be wrong.
Sorry, I did not mean those exact defines, but the applicable ones. The
why it is done in i386/i386.h and alpha/alpha.h would work for rs6000.h
maybe. I don't know the exact -D's to use, but I'm sure you guys do.
#define CPP_CPU_SPEC \
"%{!mcpu*: \
%{mpower: %{!mpower2: -D_ARCH_PWR -D__power__}} \
%{mpower2: -D_ARCH_PWR2 -D__power__ -D__power2__} \
%{mpowerpc*: -D_ARCH_PPC -D__powerpc__} \
..snip..
%{mcpu=603: -D_ARCH_PPC -D__powerpc__ -D__ppc__ -D__ppc603__ -Acpu=powerpc -Amachine=powerpc} \
..snip..
%{mcpu=740: -D_ARCH_PPC -D__powerpc__ -D__ppc__ -D__ppc740__ -Acpu=powerpc -Acpu=powerpc -Amachine=powerpc} \
..etc..
--
-- David (obrien@FreeBSD.org)