* 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 abdc2855ac0d405a3e62888998efa51f94fa24ad..c5e642c5e1021d0d9858b3f22c34e56b861cb1a3 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 4372af24257f2c3f3c3b4d374b35e65e301f3864..7476df8255ae6fca1be0c9f1eaaef092f4fc9549 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"