aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>2001-07-30 19:01:19 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2001-07-30 12:01:19 -0700
commitc2c0294ae5205428cf07ccb94fab90fbf9de2728 (patch)
tree8ce0e7344201d404e35001b1fd303e3d0c5d9469 /gcc
parent57cb6d521aff11ba862ad3b72fa4eb97fcf5c116 (diff)
downloadgcc-c2c0294ae5205428cf07ccb94fab90fbf9de2728.zip
gcc-c2c0294ae5205428cf07ccb94fab90fbf9de2728.tar.gz
gcc-c2c0294ae5205428cf07ccb94fab90fbf9de2728.tar.bz2
linux.h (CPLUSPLUS_CPP_SPEC): Add -D_GNU_SOURCE.
2001-07-30 H.J. Lu <hjl@gnu.org> * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add -D_GNU_SOURCE. From-SVN: r44480
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/linux.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2a95892..429347c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-30 H.J. Lu <hjl@gnu.org>
+
+ * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
+ -D_GNU_SOURCE.
+
2001-07-30 H.J. Lu (hjl@gnu.org)
* config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h
index 710df19..356eca2 100644
--- a/gcc/config/mips/linux.h
+++ b/gcc/config/mips/linux.h
@@ -105,6 +105,13 @@ Boston, MA 02111-1307, USA. */
%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
%{pthread:-D_REENTRANT}"
+/* The GNU C++ standard library requires that these macros be defined. */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC "\
+-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS \
+-D_GNU_SOURCE %(cpp) \
+"
+
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
provides part of the support for getting C++ file-scope static