This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: G++ defining _GNU_SOURCE


On Thu, Jun 07, 2001 at 04:30:35PM -0700, Mark Mitchell wrote:
> The point is that pa-linux doesn't
> want the main PA stuff -- but it does want the main GNU/Linux stuff.

Mmm.  Okay.  Dunno why that wasn't clear before.

This is what I'm checking in.


Index: cp/lang-specs.h
===================================================================
retrieving revision 1.43
diff -u -3 -r1.43 lang-specs.h
--- cp/lang-specs.h	2001/04/06 06:17:33	1.43
+++ cp/lang-specs.h	2001/06/06 22:33:36
@@ -35,13 +35,13 @@
   {"@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 @@
 		    %(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}\
Index: config/linux.h
===================================================================
retrieving revision 1.12
diff -u -3 -r1.12 linux.h
--- config/linux.h	2001/04/16 18:30:34	1.12
+++ config/linux.h	2001/06/06 22:33:22
@@ -75,6 +75,13 @@
 #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: config/pa/pa-linux.h
===================================================================
retrieving revision 1.5
diff -u -3 -r1.5 pa-linux.h
--- config/pa/pa-linux.h	2001/04/20 01:13:37	1.5
+++ config/pa/pa-linux.h	2001/06/07 23:45:23
@@ -27,8 +27,6 @@
 #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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]