diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-03-29 04:06:13 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-03-29 04:06:13 +0000 |
commit | d6121128fe93baf5cf81a09a04a381eec61ad63d (patch) | |
tree | 0d115c30a2c34e7948cf5c3653ccc277bbb88e20 /gcc | |
parent | 09b189bf69f5ac863f00890d2d83619aed76429f (diff) | |
download | gcc-d6121128fe93baf5cf81a09a04a381eec61ad63d.zip gcc-d6121128fe93baf5cf81a09a04a381eec61ad63d.tar.gz gcc-d6121128fe93baf5cf81a09a04a381eec61ad63d.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/rs6000/aix.h | 7 | ||||
-rw-r--r-- | gcc/config/rs6000/aix41.h | 1 | ||||
-rw-r--r-- | gcc/config/rs6000/aix43.h | 1 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 5 |
5 files changed, 17 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 217f91d..fceb180 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br> + + * 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 <rth@cygnus.com> * rtl.h: Redistribute enum reg_note documentation. diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index 9f2b996..fdd74d9 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 7ab7eed..b28d243 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 3822c0a..d700a44 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 9b4ed25..ae712bc 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 \ |