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
This commit is contained in:
parent
b5425e756b
commit
c2431a6272
4 changed files with 11 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue