lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
authorPhil Edwards <pme@gcc.gnu.org>
Thu, 7 Jun 2001 23:54:24 +0000 (23:54 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Thu, 7 Jun 2001 23:54:24 +0000 (23:54 +0000)
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

gcc/ChangeLog
gcc/config/linux.h
gcc/config/pa/pa-linux.h
gcc/cp/ChangeLog
gcc/cp/lang-specs.h

index 60ea3c6bdb66f6bbc325f2f3c5cdc808e090fb70..0387a6a9b982864624854dfff62a80597944c59a 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * doc/contrib.texi: Add copyright notice.
index 1a69758010a5b1d1913cc71f1077e0a4ad424ed4..62186ef79b2fca67504a135cbb89573ff6c0a609 100644 (file)
@@ -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
index 5ed5901433da4445e5192f064edee3d144c85a47..baa1cf5b4a5d5cfe541afca897b410a2f1dedec9 100644 (file)
@@ -27,8 +27,6 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #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
 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
 
index 39ff3399c089c432fa878ceb9576fd4b019e0821..8be3d79c91da41499186b5ed1041293e65ed1e2a 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        PR c++/2914
index dcb9b24dab1273f9aa0e3579ee530947b379c67f..526b67c0d8bd9f2d05d6a89f44cd4bf2b255e9dd 100644 (file)
@@ -35,13 +35,13 @@ Boston, MA 02111-1307, USA.  */
   {"@c++",
    /* cc1plus has an integrated ISO C preprocessor.  We should invoke
       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}\
        %{!fno-exceptions:-D__EXCEPTIONS}\
        %{!fno-new-abi:-D__GXX_ABI_VERSION=100}\
        %{ansi:-D__STRICT_ANSI__ -trigraphs -$} %(cpp_options)}\
      %{!E:%{!M:%{!MM:\
-       %{save-temps:cpp0 -lang-c++ -D_GNU_SOURCE \
+       %{save-temps:cpp0 -lang-c++ \
                    %{!no-gcc:-D__GNUG__=%v1}\
                            %{!Wno-deprecated:-D__DEPRECATED}\
                    %{!fno-exceptions:-D__EXCEPTIONS}\
@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA.  */
                    %(cpp_options) %b.ii \n}\
       cc1plus %{save-temps:-fpreprocessed %b.ii}\
               %{!save-temps:%(cpp_options)\
-                           %{!no-gcc:-D__GNUG__=%v1} -D_GNU_SOURCE \
+                           %{!no-gcc:-D__GNUG__=%v1} \
                                    %{!Wno-deprecated:-D__DEPRECATED}\
                            %{!fno-exceptions:-D__EXCEPTIONS}\
                            %{!fno-new-abi:-D__GXX_ABI_VERSION=100}\