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


	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


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