os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define on hppa when there is no weak...
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Wed, 13 Nov 2002 22:36:39 +0000 (22:36 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 13 Nov 2002 22:36:39 +0000 (22:36 +0000)
* config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define
on hppa when there is no weak support.

From-SVN: r59092

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/hpux/os_defines.h

index faa6414bd7084d85ffc4d10a925c9a41681dd9c1..250c7f90cc12e59d6a162fc33207f0ce107df07e 100644 (file)
@@ -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
index aae9998c552ecf7caa26fe0e6a80202c86432345..9dd4fb41af6debefef7a2a85a913bb632cceeee3 100644 (file)
@@ -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