aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2002-11-13 22:36:39 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2002-11-13 22:36:39 +0000
commitb6ef3ef68fbc6b316776e9e4799da61324e04d95 (patch)
treeb35da42cfdccc21ec59f69139639c22525bc960f
parent48d1c3c568c1417b86ed9e23f48c5d4344a2d096 (diff)
downloadgcc-b6ef3ef68fbc6b316776e9e4799da61324e04d95.zip
gcc-b6ef3ef68fbc6b316776e9e4799da61324e04d95.tar.gz
gcc-b6ef3ef68fbc6b316776e9e4799da61324e04d95.tar.bz2
os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define on hppa when there is no weak support.
* config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define on hppa when there is no weak support. From-SVN: r59092
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/config/os/hpux/os_defines.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index faa6414..250c7f9 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define
+ on hppa when there is no weak support.
+
2002-11-13 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8230
diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h
index aae9998..9dd4fb4 100644
--- a/libstdc++-v3/config/os/hpux/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/os_defines.h
@@ -84,8 +84,9 @@ namespace std
typedef long int __padding_type;
#endif
-/* We need explicit instantiation of the atomicity lock on 32-bit HPUX. */
-#ifndef __LP64__
+/* We need explicit instantiation of the atomicity lock on HPPA if
+ there is no weak support. */
+#if !defined(_GLIBCPP_SUPPORTS_WEAK) && defined (__hppa__)
#define _GLIBCPP_INST_ATOMICITY_LOCK 1
#endif
#endif