OSDN Git Service

PR libstdc++/11953
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Dec 2006 15:15:19 +0000 (15:15 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Dec 2006 15:15:19 +0000 (15:15 +0000)
* gthr-posix.h (_REENTRANT): Only define if __osf__ is defined.

* config/ia64/linux.h (CPP_SPEC): Define.
* config/s390/linux.h (CPP_SPEC): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119788 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/linux.h
gcc/config/s390/linux.h
gcc/gthr-posix.h

index a857f9a..3e5514b 100644 (file)
@@ -1,3 +1,11 @@
+2006-12-12  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libstdc++/11953
+       * gthr-posix.h (_REENTRANT): Only define if __osf__ is defined.
+
+       * config/ia64/linux.h (CPP_SPEC): Define.
+       * config/s390/linux.h (CPP_SPEC): Define.
+
 2006-12-12  Jim Wilson  <wilson@specifix.com>
            Jakub Jelinek  <jakub@redhat.com>
 
index 9e8ca59..cecae0d 100644 (file)
@@ -48,6 +48,7 @@ do {                                          \
       %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \
       %{static:-static}}"
 
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 #define JMP_BUF_SIZE  76
 
index 8efcaec..fd8ef0b 100644 (file)
@@ -88,6 +88,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
           %{m31:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "} \
           %{m64:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}}"
 
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
 
index fb58be9..837bc1a 100644 (file)
@@ -36,7 +36,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 #define __GTHREADS 1
 
 /* Some implementations of <pthread.h> require this to be defined.  */
-#ifndef _REENTRANT
+#if !defined(_REENTRANT) && defined(__osf__)
 #define _REENTRANT 1
 #endif