summaryrefslogtreecommitdiff
path: root/gcc/config/bfin/uclinux.h
diff options
context:
space:
mode:
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-13 18:04:01 +0000
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-13 18:04:01 +0000
commit624f1f0d86ce027330a7bc1fa826f502cbf2c85f (patch)
treed79eddb9ea5edaeffd0f186398656370460c9c1d /gcc/config/bfin/uclinux.h
parent04dde933e1920413c4b667b0dcdffffe4e776d80 (diff)
downloadgcc-624f1f0d86ce027330a7bc1fa826f502cbf2c85f.tar.gz
* config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112016 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/bfin/uclinux.h')
-rw-r--r--gcc/config/bfin/uclinux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/bfin/uclinux.h b/gcc/config/bfin/uclinux.h
index 4372af24257..7476df8255a 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"