]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 19 May 2002 15:21:35 +0000 (15:21 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 19 May 2002 15:21:35 +0000 (15:21 +0000)
From-SVN: r53630

gcc/ChangeLog
gcc/config/mips/iris6.h

index 9ee43b0f2159d392bcb85d3383f463bcd67b0ca9..6877b27de7901bdcbb0ec0687927596dce1c2444 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
+
 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
 
        2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
index 776434a8d59b430a41f4bd7567c14e4c97fcbe16..4b9771a52a828f3fce0bc7ff7e891187f3fb6f8d 100644 (file)
@@ -124,6 +124,18 @@ Boston, MA 02111-1307, USA.  */
 %{mabi=64: -D__mips64} \
 %{!mabi*: -D__mips64}"
 
+/* The GNU C++ standard library requires that __EXTENSIONS__ and
+   _SGI_SOURCE be defined on at least irix6.2 and probably all irix6
+   prior to 6.5.  They normally get defined in SUBTARGET_CPP_SPEC if
+   !ansi, for g++ we want them regardless.  We don't need this on
+   irix6.5 itself, but it shouldn't hurt other than the namespace
+   pollution.  */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC "\
+-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS \
+%{ansi:-D__EXTENSIONS__ -D_SGI_SOURCE} %(cpp) \
+"
+
 /* Irix 6 uses DWARF-2.  */
 #define DWARF2_DEBUGGING_INFO
 #define MIPS_DEBUGGING_INFO