aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi is given.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Wed, 29 Mar 2000 04:06:13 +0000 (04:06 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 29 Mar 2000 04:06:13 +0000 (04:06 +0000)
* 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

gcc/ChangeLog
gcc/config/rs6000/aix.h
gcc/config/rs6000/aix41.h
gcc/config/rs6000/aix43.h
gcc/config/rs6000/rs6000.h

index 217f91d514693fa663890fe3b0393eb7c04bf017..fceb180a7b805d7c62ca7de0e2b0f338a8d6572d 100644 (file)
@@ -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. 
index 9f2b996b74ce3b45d920c6e2431ac8361039bf1c..fdd74d979ced093bff285ac8ad3dc1e450aa7365 100644 (file)
@@ -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.
index 7ab7eedc12d2d609f3c5223e069c84fcdca69ea4..b28d243995629b371f3a5ba5c4d3e4d8ca2c54e4 100644 (file)
@@ -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)"
index 3822c0a2aa38fe6d09ca9431af419894c8510819..d700a44ff97fe9bff2c84ccbd589f64d19b5fbac 100644 (file)
@@ -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}\
index 9b4ed256a862ea2df82db19de13a6b920ae8a110..ae712bcf0adce2346db30a2380837549462783e4 100644 (file)
@@ -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 \