Commit 37344b9b by Phil Edwards

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
parent ad262bb2
2001-06-07 Phil Edwards <pme@sources.redhat.com>
* linux.h (CPLUSPLUS_CPP_SPEC): Move -D_GNU_SOURCE to here.
* pa/pa-linux.h: Allow CPLUSPLUS_CPP_SPEC to remain.
2001-06-08 Joseph S. Myers <jsm28@cam.ac.uk> 2001-06-08 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/contrib.texi: Add copyright notice. * doc/contrib.texi: Add copyright notice.
......
...@@ -75,6 +75,13 @@ Boston, MA 02111-1307, USA. */ ...@@ -75,6 +75,13 @@ Boston, MA 02111-1307, USA. */
#define CC1_SPEC "%{profile:-p}" #define CC1_SPEC "%{profile:-p}"
#endif #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 #ifndef USE_GNULIBC_1
#undef DEFAULT_VTABLE_THUNKS #undef DEFAULT_VTABLE_THUNKS
#define DEFAULT_VTABLE_THUNKS 1 #define DEFAULT_VTABLE_THUNKS 1
......
...@@ -27,8 +27,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -27,8 +27,6 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian" #define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
#undef CPLUSPLUS_CPP_SPEC
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
......
2001-06-07 Phil Edwards <pme@sources.redhat.com>
* lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
2001-06-07 Nathan Sidwell <nathan@codesourcery.com> 2001-06-07 Nathan Sidwell <nathan@codesourcery.com>
PR c++/2914 PR c++/2914
......
...@@ -35,13 +35,13 @@ Boston, MA 02111-1307, USA. */ ...@@ -35,13 +35,13 @@ Boston, MA 02111-1307, USA. */
{"@c++", {"@c++",
/* cc1plus has an integrated ISO C preprocessor. We should invoke /* cc1plus has an integrated ISO C preprocessor. We should invoke
the external preprocessor if -save-temps is given. */ the external preprocessor if -save-temps is given. */
"%{E|M|MM:cpp0 -lang-c++ -D_GNU_SOURCE %{!no-gcc:-D__GNUG__=%v1}\ "%{E|M|MM:cpp0 -lang-c++ %{!no-gcc:-D__GNUG__=%v1}\
%{!Wno-deprecated:-D__DEPRECATED}\ %{!Wno-deprecated:-D__DEPRECATED}\
%{!fno-exceptions:-D__EXCEPTIONS}\ %{!fno-exceptions:-D__EXCEPTIONS}\
%{!fno-new-abi:-D__GXX_ABI_VERSION=100}\ %{!fno-new-abi:-D__GXX_ABI_VERSION=100}\
%{ansi:-D__STRICT_ANSI__ -trigraphs -$} %(cpp_options)}\ %{ansi:-D__STRICT_ANSI__ -trigraphs -$} %(cpp_options)}\
%{!E:%{!M:%{!MM:\ %{!E:%{!M:%{!MM:\
%{save-temps:cpp0 -lang-c++ -D_GNU_SOURCE \ %{save-temps:cpp0 -lang-c++ \
%{!no-gcc:-D__GNUG__=%v1}\ %{!no-gcc:-D__GNUG__=%v1}\
%{!Wno-deprecated:-D__DEPRECATED}\ %{!Wno-deprecated:-D__DEPRECATED}\
%{!fno-exceptions:-D__EXCEPTIONS}\ %{!fno-exceptions:-D__EXCEPTIONS}\
...@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA. */
%(cpp_options) %b.ii \n}\ %(cpp_options) %b.ii \n}\
cc1plus %{save-temps:-fpreprocessed %b.ii}\ cc1plus %{save-temps:-fpreprocessed %b.ii}\
%{!save-temps:%(cpp_options)\ %{!save-temps:%(cpp_options)\
%{!no-gcc:-D__GNUG__=%v1} -D_GNU_SOURCE \ %{!no-gcc:-D__GNUG__=%v1} \
%{!Wno-deprecated:-D__DEPRECATED}\ %{!Wno-deprecated:-D__DEPRECATED}\
%{!fno-exceptions:-D__EXCEPTIONS}\ %{!fno-exceptions:-D__EXCEPTIONS}\
%{!fno-new-abi:-D__GXX_ABI_VERSION=100}\ %{!fno-new-abi:-D__GXX_ABI_VERSION=100}\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment