* config/rs6000/aix43.h (CPLUSCPLUS_CPP_SPEC): Define it.
authorMark Mitchell <mark@codesourcery.com>
Wed, 7 Feb 2001 19:10:57 +0000 (19:10 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 7 Feb 2001 19:10:57 +0000 (19:10 +0000)
From-SVN: r39525

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

index 285097e26248031e8e6e21a05be7efed5de0d06e..25ed2930dc46cfa180adffd7ab9fe10626444f8c 100644 (file)
@@ -1,5 +1,7 @@
 2001-02-07  Mark Mitchell  <mark@codesourcery.com>
 
+       * config/rs6000/aix43.h (CPLUSCPLUS_CPP_SPEC): Define it.
+
        * defaults.h (CPLUSPLUS_CPP_SPEC): New macro.
        * gcc.c (struct compiler): Add cpp_spec field.
        (input_file_compiler): New variable.
index 861bc452fff7b645520903f824a7565a6e223f2f..3f08e771fe27e6890f71dd71eb70795534e28236 100644 (file)
@@ -110,6 +110,19 @@ do {                                                                       \
    %{pthread: -D_THREAD_SAFE}\
    %(cpp_cpu)"
 
+/* The GNU C++ standard library requires that these macros be 
+   defined.  */
+#undef CPLUSPLUS_CPP_SPEC                      
+#define CPLUSPLUS_CPP_SPEC                     \
+  "-D_XOPEN_SOURCE=500                         \
+   -D_XOPEN_SOURCE_EXTENDED=1                  \
+   -D_LARGE_FILE_API                           \
+   -D_ALL_SOURCE                                \
+   %{maix64: -D__64BIT__ -D_ARCH_PPC -D__LONG_MAX__=9223372036854775807L}\
+   %{mpe: -I/usr/lpp/ppe.poe/include}\
+   %{pthread: -D_THREAD_SAFE}\
+   %(cpp_cpu)"
+
 /* Common CPP definitions used by CPP_SPEC among the various targets
    for handling -mcpu=xxx switches.  */
 #undef CPP_CPU_SPEC