This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[4.1/4.2/trunk] define/extend CPP_SPEC for {alpha,arm,mips}-linux


This is a followup patch for libstdc++/11953, defining/extending
CPP_SPEC for other linux architectures. Patch checked on alpha-linux,
arm-linux, mips-linux and mipsel-linux.

Ok for trunk and the 4.1/4.2 branches?

  Matthias


2006-12-12  Matthias Klose  <doko@debian.org>

	* gcc/config/alpha/linux.h (CPP_SPEC): Define.
	* gcc/config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
	* gcc/config/mips/linux.h (SUBTARGET_CPP_SPEC): Extend.

Index: gcc/config/alpha/linux.h
===================================================================
--- gcc/config/alpha/linux.h	(revision 117458)
+++ gcc/config/alpha/linux.h	(working copy)
@@ -49,6 +49,8 @@
    %{shared:-lc} \
    %{!shared: %{profile:-lc_p}%{!profile:-lc}}"
 
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+
 /* Show that we need a GP when profiling.  */
 #undef TARGET_PROFILING_NEEDS_GP
 #define TARGET_PROFILING_NEEDS_GP 1
Index: gcc/config/arm/linux-gas.h
===================================================================
--- gcc/config/arm/linux-gas.h	(revision 117458)
+++ gcc/config/arm/linux-gas.h	(working copy)
@@ -28,7 +28,7 @@
 #define DEFAULT_SIGNED_CHAR 0
 
 #undef  SUBTARGET_CPP_SPEC
-#define SUBTARGET_CPP_SPEC  "%{posix:-D_POSIX_SOURCE}"
+#define SUBTARGET_CPP_SPEC  "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 #undef  SIZE_TYPE
 #define SIZE_TYPE "unsigned int"
Index: gcc/config/mips/linux.h
===================================================================
--- gcc/config/mips/linux.h	(revision 117458)
+++ gcc/config/mips/linux.h	(working copy)
@@ -95,7 +95,7 @@
   } while (0)
 
 #undef  SUBTARGET_CPP_SPEC
-#define SUBTARGET_CPP_SPEC "%{pthread:-D_REENTRANT}"
+#define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 /* From iris5.h */
 /* -G is incompatible with -KPIC which is the default, so only allow objects


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