This is the mail archive of the 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]
Other format: [Raw text]

Re: [PATCH] fix rs6000 builtin defines for eabi, eabisim, rtems

Janis Johnson <> writes:

> This patch fixes mainline C builds for powerpc-eabisim.
> Before the change for PowePC bi-arch support the macro CPP_SYSV_SPEC in
> config/rs6000/sysv4.h defined _RELOCATABLE, __pic__, and __PIC__ at the
> appropriate times.  Those were moved to TARGET_OS_SYSV_CPP_BUILTINS,
> which was not included in all of the places where it's needed.  This
> patch adds that to TARGET_OS_CPP_BUILTINS for eabi, eabisim, and rtems.
> vxworks support doesn't currently set _RELOCATABLE and sets __pic__ and
> __PIC__ differently, so it might need to be fixed as well.
> Tested by building powerpc-eabisim, C only (more problems to
> investigate!).
> OK for mainline?

This is OK.

> 2003-06-09  Janis Johnson  <>
> 	* config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
> 	common to rs6000 sysv targets.
> 	* config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
> 	* config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
- Geoffrey Keating <>

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