summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/os/hpux/os_defines.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-08-26 06:54:15 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-08-26 06:54:15 +0000
commit7e2055ec11ece615f17218f61ae8fd0b594bfba6 (patch)
tree4da878ce1023935732ab30a3a136fc84f8f2321a /libstdc++-v3/config/os/hpux/os_defines.h
parent6cd28c3182ddfd66585f121bcb09445fdd96ece5 (diff)
downloadgcc-7e2055ec11ece615f17218f61ae8fd0b594bfba6.tar.gz
config.gcc (hppa*-*-hpux11*, [...]): Remove commented-out logic to use DCE threads (if present)...
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. From-SVN: r70797
Diffstat (limited to 'libstdc++-v3/config/os/hpux/os_defines.h')
-rw-r--r--libstdc++-v3/config/os/hpux/os_defines.h7
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