Commit c2431a62 by Jakub Jelinek Committed by Jakub Jelinek

re PR libstdc++/11953 (_REENTRANT defined when compiling non-threaded code.)

	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.

From-SVN: r119788
parent b5425e75
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> 2006-12-12 Jim Wilson <wilson@specifix.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
......
...@@ -48,6 +48,7 @@ do { \ ...@@ -48,6 +48,7 @@ do { \
%{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \ %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \
%{static:-static}}" %{static:-static}}"
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
#define JMP_BUF_SIZE 76 #define JMP_BUF_SIZE 76
......
...@@ -88,6 +88,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -88,6 +88,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
%{m31:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "} \ %{m31:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "} \
%{m64:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}}" %{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 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
......
...@@ -36,7 +36,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -36,7 +36,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#define __GTHREADS 1 #define __GTHREADS 1
/* Some implementations of <pthread.h> require this to be defined. */ /* Some implementations of <pthread.h> require this to be defined. */
#ifndef _REENTRANT #if !defined(_REENTRANT) && defined(__osf__)
#define _REENTRANT 1 #define _REENTRANT 1
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment