Blame SOURCES/gcc34-pr11953.patch

6693b3
2006-02-17  Jakub Jelinek  <jakub@redhat.com>
6693b3
6693b3
	PR libstdc++/11953
6693b3
	* gthr-posix.h (_REENTRANT): Only define if __osf__ is defined.
6693b3
6693b3
	* config/ia64/linux.h (CPP_SPEC): Define.
6693b3
	* config/s390/linux.h (CPP_SPEC): Define.
6693b3
 
6693b3
--- gcc/gthr-posix.h	(revision 111211)
6693b3
+++ gcc/gthr-posix.h	(revision 111212)
6693b3
@@ -36,7 +36,7 @@ Software Foundation, 51 Franklin Street,
6693b3
 #define __GTHREADS 1
6693b3
 
6693b3
 /* Some implementations of <pthread.h> require this to be defined.  */
6693b3
-#ifndef _REENTRANT
6693b3
+#if !defined(_REENTRANT) && defined(__osf__)
6693b3
 #define _REENTRANT 1
6693b3
 #endif
6693b3
 
6693b3
--- gcc/config/s390/linux.h	(revision 111211)
6693b3
+++ gcc/config/s390/linux.h	(revision 111212)
6693b3
@@ -89,6 +89,7 @@ Software Foundation, 51 Franklin Street,
6693b3
           %{m31:-dynamic-linker /lib/ld.so.1} \
6693b3
           %{m64:-dynamic-linker /lib64/ld64.so.1}}}}"
6693b3
 
6693b3
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
6693b3
 
6693b3
 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
6693b3
 
6693b3
--- gcc/config/ia64/linux.h	(revision 111211)
6693b3
+++ gcc/config/ia64/linux.h	(revision 111212)
6693b3
@@ -48,6 +48,7 @@ do {						\
6693b3
       %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
6693b3
       %{static:-static}}"
6693b3
 
6693b3
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
6693b3
 
6693b3
 #define JMP_BUF_SIZE  76
6693b3