Defining __powerpc__ in rs6000.h
David O'Brien
obrien@FreeBSD.org
Fri May 18 11:28:00 GMT 2001
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)
More information about the Gcc
mailing list