summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-07 23:54:24 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-07 23:54:24 +0000
commit4a22784700fe8fb81dc655a992332db1c2aa4d33 (patch)
tree3fd31c020b3318c7a578cfd62a10f6ac2fbc85d1 /gcc/config/linux.h
parentca08952d53523b4b8197db54a8b68743bd2539e1 (diff)
downloadgcc-4a22784700fe8fb81dc655a992332db1c2aa4d33.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42989 138bc75d-0d04-0410-961f-82ee72b054a4
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