* config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
authorJie Zhang <jie.zhang@analog.com>
Mon, 13 Mar 2006 18:04:01 +0000 (18:04 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Mon, 13 Mar 2006 18:04:01 +0000 (18:04 +0000)
From-SVN: r112016

gcc/ChangeLog
gcc/config/bfin/uclinux.h

index abdc285..c5e642c 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-13  Jie Zhang  <jie.zhang@analog.com>
+
+       * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
+
 2006-03-13  Jeff Law  <law@redhat.com>
 
        * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
index 4372af2..7476df8 100644 (file)
@@ -1,3 +1,7 @@
+/* The GNU C++ standard library requires that these macros be defined.  */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
+
 #undef  STARTFILE_SPEC
 #define STARTFILE_SPEC \
   "crt1%O%s crti%O%s crtbegin%O%s crtlibid%O%s"