From bf276e5c28ae9cdde3edefac8385c0f95fd47dbe Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 3 Oct 2004 03:31:38 +0000 Subject: [PATCH] linux.h (TARGET_C99_FUNCTIONS): Define. * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define. (OS_MISSING_POWERPC64): Move, and comment. * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define. (OS_MISSING_POWERPC64): Move, and comment. From-SVN: r88440 --- gcc/ChangeLog | 7 +++++++ gcc/config/rs6000/linux.h | 10 ++++++++-- gcc/config/rs6000/linux64.h | 10 ++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c18b3a96272..9c081a91a5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-10-03 Alan Modra + + * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define. + (OS_MISSING_POWERPC64): Move, and comment. + * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define. + (OS_MISSING_POWERPC64): Move, and comment. + 2004-10-02 Ian Lance Taylor * arm.c (output_call_mem): Add missing \t. diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index 0f4d046e049..5420917673c 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -24,6 +24,14 @@ #undef MD_EXEC_PREFIX #undef MD_STARTFILE_PREFIX +/* Linux doesn't support saving and restoring 64-bit regs in a 32-bit + process. */ +#define OS_MISSING_POWERPC64 1 + +/* glibc has float and long double forms of math functions. */ +#undef TARGET_C99_FUNCTIONS +#define TARGET_C99_FUNCTIONS 1 + #undef TARGET_OS_CPP_BUILTINS #define TARGET_OS_CPP_BUILTINS() \ do \ @@ -99,5 +107,3 @@ #define TARGET_HAS_F_SETLKW #define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h" - -#define OS_MISSING_POWERPC64 1 diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 13b673c49df..36c4ae55b68 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -287,6 +287,14 @@ extern int dot_symbols; #undef MD_EXEC_PREFIX #undef MD_STARTFILE_PREFIX +/* Linux doesn't support saving and restoring 64-bit regs in a 32-bit + process. */ +#define OS_MISSING_POWERPC64 !TARGET_64BIT + +/* glibc has float and long double forms of math functions. */ +#undef TARGET_C99_FUNCTIONS +#define TARGET_C99_FUNCTIONS 1 + #undef TARGET_OS_CPP_BUILTINS #define TARGET_OS_CPP_BUILTINS() \ do \ @@ -559,5 +567,3 @@ while (0) #endif #define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h" - -#define OS_MISSING_POWERPC64 !TARGET_64BIT -- 2.30.2