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

Re: convert 32-bit PowerPC GNU/Linux to TARGET_OS_CPP_BUILTINS


On Wed, Jul 03, 2002 at 08:52:47AM -0700, Matt Kraai wrote:
> Index: gcc/config/rs6000/linux64.h
[snip]
> --- 106,128 ----
>   #undef MD_EXEC_PREFIX
>   #undef MD_STARTFILE_PREFIX
>   
> ! #undef TARGET_OS_CPP_BUILTINS
> ! #define TARGET_OS_CPP_BUILTINS()            \
> !   do                                        \
> !     {                                       \
> !       builtin_define_std ("_PPC_");         \
> !       builtin_define_std ("__PPC__");       \
> !       builtin_define_std ("_PPC64_");       \
> !       builtin_define_std ("__PPC64__");     \
> !       builtin_define_std ("__powerpc__");   \
> !       builtin_define_std ("__powerpc64__"); \
> !       builtin_define_std ("_PIC_");         \
> !       builtin_define_std ("__PIC__");       \
> !       builtin_define_std ("__ELF__");       \
> !       builtin_assert ("cpu=powerpc64");     \
> !       builtin_assert ("machine=powerpc64"); \
> !     }                                       \
> !   while (0)

Since powerpc64-linux is a relatively new target, is there good reason
to define _PPC_, _PPC64_ and _PIC_?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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