From b6ef3ef68fbc6b316776e9e4799da61324e04d95 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Wed, 13 Nov 2002 22:36:39 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/config/os/hpux/os_defines.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index faa6414bd70..250c7f90cc1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2002-11-13 John David Anglin + + * config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define + on hppa when there is no weak support. + 2002-11-13 Benjamin Kosnik PR libstdc++/8230 diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h index aae9998c552..9dd4fb41af6 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 -- 2.30.2