]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
linux.h (CPLUSPLUS_CPP_SPEC): Add -D_GNU_SOURCE.
authorH.J. Lu <hjl@gnu.org>
Mon, 30 Jul 2001 19:01:19 +0000 (19:01 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 30 Jul 2001 19:01:19 +0000 (12:01 -0700)
2001-07-30  H.J. Lu <hjl@gnu.org>

* config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
-D_GNU_SOURCE.

From-SVN: r44480

gcc/ChangeLog
gcc/config/mips/linux.h

index 2a9589276a4a696d7d74bd8caed7e0d6c0836873..429347c6fcc99c8e27d8096049621de1b5b03304 100644 (file)
@@ -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.
index 710df19b518f79d2f0dbbed8b9c270bf9e24616f..356eca2586abacf6695ca5326d988286b482ac7f 100644 (file)
@@ -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