summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2001-06-07 23:54:24 +0000
committerPhil Edwards <pme@gcc.gnu.org>2001-06-07 23:54:24 +0000
commit37344b9b0d23085c897e881992b8965b9ce67648 (patch)
tree3fd31c020b3318c7a578cfd62a10f6ac2fbc85d1 /gcc/config/linux.h
parentad262bb2d5ffbc395f11a53cd7a3fdb312e7031d (diff)
downloadgcc-37344b9b0d23085c897e881992b8965b9ce67648.tar.gz
lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
2001-06-07 Phil Edwards <pme@sources.redhat.com> * cp/lang-specs.h: Move -D_GNU_SOURCE to config/linux.h. * config/linux.h (CPLUSPLUS_CPP_SPEC): Move -D_GNU_SOURCE to here. * config/pa/pa-linux.h: Allow CPLUSPLUS_CPP_SPEC to remain. From-SVN: r42989
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 1a69758010a..62186ef79b2 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -75,6 +75,13 @@ Boston, MA 02111-1307, USA. */
#define CC1_SPEC "%{profile:-p}"
#endif
+/* The GNU C++ standard library requires that these macros be
+ defined. */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC \
+ "-D_GNU_SOURCE \
+ %(cpp_cpu)"
+
#ifndef USE_GNULIBC_1
#undef DEFAULT_VTABLE_THUNKS
#define DEFAULT_VTABLE_THUNKS 1