aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-05-13 02:52:47 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-05-13 02:52:47 +0000
commit31397a7b647de5fd81965c36a86ac04b1de7da57 (patch)
tree6c03ea1e0df0a833f0a7a9d1c789e710557a7bab /gcc
parente2f751475364ac2ccfa59a8259ce97a177e65055 (diff)
downloadgcc-31397a7b647de5fd81965c36a86ac04b1de7da57.zip
gcc-31397a7b647de5fd81965c36a86ac04b1de7da57.tar.gz
gcc-31397a7b647de5fd81965c36a86ac04b1de7da57.tar.bz2
os_defines.h: Revert 2002-05-06 change.
libstdc++-v3: * config/os/irix/irix5.2/bits/os_defines.h: Revert 2002-05-06 change. gcc: * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define. From-SVN: r53408
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mips/iris6.h12
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 755323e..a6fffce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
+
2002-05-12 Tom Tromey <tromey@redhat.com>
* tree.h (copy_node): Don't mention TREE_PERMANENT.
diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h
index 776434a..56ea807 100644
--- a/gcc/config/mips/iris6.h
+++ b/gcc/config/mips/iris6.h
@@ -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
+ polution. */
+#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