From: Alexandre Oliva Date: Wed, 29 Mar 2000 04:06:13 +0000 (+0000) Subject: aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi is given. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6121128fe93baf5cf81a09a04a381eec61ad63d;p=gcc.git aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi is given. * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi is given. * config/rs6000/aix43.h (CPP_SPEC): Likewise. * config/rs6000/rs6000.h (CPP_SPEC): Moved to... * config/rs6000/aix.h: then modified likewise. From-SVN: r32797 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 217f91d5146..fceb180a7b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2000-03-29 Alexandre Oliva + + * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi + is given. + * config/rs6000/aix43.h (CPP_SPEC): Likewise. + * config/rs6000/rs6000.h (CPP_SPEC): Moved to... + * config/rs6000/aix.h: then modified likewise. + 2000-03-28 Richard Henderson * rtl.h: Redistribute enum reg_note documentation. diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index 9f2b996b74c..fdd74d979ce 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -66,6 +66,13 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_LONG_LONG \ -Asystem(unix) -Asystem(aix) -Acpu(rs6000) -Amachine(rs6000)" +/* Define appropriate architecture macros for preprocessor depending on + target switches. */ + +#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\ + %{ansi: -D_ANSI_C_SOURCE}\ + %(cpp_cpu)" + /* Tell the assembler to assume that all undefined names are external. Don't do this until the fixed IBM assembler is more generally available. diff --git a/gcc/config/rs6000/aix41.h b/gcc/config/rs6000/aix41.h index 7ab7eedc12d..b28d2439956 100644 --- a/gcc/config/rs6000/aix41.h +++ b/gcc/config/rs6000/aix41.h @@ -44,6 +44,7 @@ Boston, MA 02111-1307, USA. */ #undef CPP_SPEC #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\ + %{ansi: -D_ANSI_C_SOURCE}\ %{mpe: -I/usr/lpp/ppe.poe/include}\ %{mthreads: -D_THREAD_SAFE}\ %(cpp_cpu)" diff --git a/gcc/config/rs6000/aix43.h b/gcc/config/rs6000/aix43.h index 3822c0a2aa3..d700a44ff97 100644 --- a/gcc/config/rs6000/aix43.h +++ b/gcc/config/rs6000/aix43.h @@ -105,6 +105,7 @@ do { \ #undef CPP_SPEC #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\ + %{ansi: -D_ANSI_C_SOURCE}\ %{maix64: -D__64BIT__ -D_ARCH_PPC}\ %{mpe: -I/usr/lpp/ppe.poe/include}\ %{mthreads: -D_THREAD_SAFE}\ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 9b4ed256a86..ae712bcf0ad 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -43,11 +43,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_CPU_DEFAULT ((char *)0) #endif -/* Define appropriate architecture macros for preprocessor depending on - target switches. */ - -#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} %(cpp_cpu)" - /* Common CPP definitions used by CPP_SPEC among the various targets for handling -mcpu=xxx switches. */ #define CPP_CPU_SPEC \