This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Linux/mips needs -D_GNU_SOURCE
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Linux/mips needs -D_GNU_SOURCE
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 25 Jul 2001 17:19:12 -0700
Linux/mips also need -D_GNU_SOURCE.
H.J.
----
2001-07-21 H.J. Lu <hjl@gnu.org>
* config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
-D_GNU_SOURCE.
--- gcc/config/mips/linux.h.gnu Fri Jul 20 23:37:12 2001
+++ gcc/config/mips/linux.h Sat Jul 21 00:05:31 2001
@@ -40,6 +40,13 @@ Boston, MA 02111-1307, USA. */
#undef HANDLE_SYSV_PRAGMA
#define HANDLE_SYSV_PRAGMA 1
+/* 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) \
+"
+
/* Use more efficient ``thunks'' to implement C++ vtables. */
#undef DEFAULT_VTABLE_THUNKS
#define DEFAULT_VTABLE_THUNKS 1