aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/bfin/uclinux.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index abdc285..c5e642c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/bfin/uclinux.h b/gcc/config/bfin/uclinux.h
index 4372af2..7476df8 100644
--- a/gcc/config/bfin/uclinux.h
+++ b/gcc/config/bfin/uclinux.h
@@ -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"