This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Defining __powerpc__ in rs6000.h
- To: obrien at FreeBSD dot org
- Subject: Re: Defining __powerpc__ in rs6000.h
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 21 May 2001 18:52:59 -0400
- cc: Geoff Keating <geoffk at geoffk dot org>, gcc at gcc dot gnu dot org, shebs at apple dot com
Currently rs6000/linux.h defines:
-DPPC -D__ELF__ -Dpowerpc
which implicitly becomes -D__PPC__ and -D__powerpc__ as well.
sysv4.h defines:
-DPPC (implicitly -D__PPC__)
Darwin of course has to be different defining -D__ppc__ (:^).
I am checking whether AIX would like to define __PPC__ and
__powerpc__ as well.
It looks like rs6000.h CPP_CPU_SPEC and ASM_CPU_SPEC really should
be defined in aix.h.
I do not see enough commonality to define a single CPP_PREDEFINES
in rs6000.h without negotiating with each group whether they mind the
additional macros.
If rs6000/freebsd.h included rs6000/sysv4.h, it automatically
would get -DPPC -D__PPC__, but there are other reasons FreeBSD does not
want to use rs6000/sysv4.h. It seems that you should just define /
override the macros (presumably the ones from rs6000/sysv4.h or
rs6000/linux.h) in rs6000/freebsd.h, regardless what other changes are
made.
Why do you want the definitions in rs6000.h?
David