This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Defining __powerpc__ in rs6000.h


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]