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