From 798fd7881731b48e30aab5b0944bbf748ca10e9e Mon Sep 17 00:00:00 2001 From: danglin Date: Wed, 13 Nov 2002 22:36:39 +0000 Subject: [PATCH] * config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define on hppa when there is no weak support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59092 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 faa6414..250c7f9 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 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 -- 2.7.4