diff options
| author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-26 06:54:15 +0000 |
|---|---|---|
| committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-26 06:54:15 +0000 |
| commit | 120a2fed173faf7e857c2ad3cc6d5bf14671709f (patch) | |
| tree | 4da878ce1023935732ab30a3a136fc84f8f2321a /libstdc++-v3/config/os/hpux/os_defines.h | |
| parent | f44e8fa5938540198fbf6152b9ecaa575dfd78ca (diff) | |
| download | ppe42-gcc-120a2fed173faf7e857c2ad3cc6d5bf14671709f.tar.gz ppe42-gcc-120a2fed173faf7e857c2ad3cc6d5bf14671709f.zip | |
gcc:
* config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
commented-out logic to use DCE threads (if present), add
support for POSIX threads.
* config/ia64/hpux.h: Define CPP_SPEC to set appropriate
#defines for -pthread. Add -lpthread to LIB_SPEC when
-pthread. In both cases take -mt as a synonym for -pthread
for acc compatibility.
Define GTHREAD_USE_WEAK to 0.
* config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
Remove old logic for DCE threads from LIB_SPEC.
* config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
libstdc++-v3:
* config/os/hpux/os_defines.h: Unconditionally define
_GLIBCXX_GTHREAD_USE_WEAK to 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70797 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config/os/hpux/os_defines.h')
| -rw-r--r-- | libstdc++-v3/config/os/hpux/os_defines.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h index ba0445a4cb6..b83516dd260 100644 --- a/libstdc++-v3/config/os/hpux/os_defines.h +++ b/libstdc++-v3/config/os/hpux/os_defines.h @@ -97,8 +97,9 @@ typedef long int __padding_type; #define _GLIBCXX_INST_ATOMICITY_LOCK 1 #endif -/* Don't use pragma weak in gthread headers. */ -#ifdef __hppa__ +/* Don't use pragma weak in gthread headers. HP-UX rejects programs + with unsatisfied external references even if all of those references + are weak; gthread relies on such unsatisfied references being resolved + to null pointers when weak symbol support is on. */ #define _GLIBCXX_GTHREAD_USE_WEAK 0 #endif -#endif |

