summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/config/os/hpux
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-05 19:17:37 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-05 19:17:37 +0000
commit95168ca53c3d547977698967e2ce5b67710b026b (patch)
tree951abaef5b170fb73ebd43f7f61ebdd780d1fa85 /libstdc++-v3/config/os/hpux
parent9d67a43bd1a2b8be32ebfe991d8dfa6023327912 (diff)
downloadppe42-gcc-95168ca53c3d547977698967e2ce5b67710b026b.tar.gz
ppe42-gcc-95168ca53c3d547977698967e2ce5b67710b026b.zip
* config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define.
* src/misc-inst.cc (std): Instantiate atomicity lock when _GLIBCPP_INST_ATOMICITY_LOCK is defined. * config/cpu/hppa/atomicity.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config/os/hpux')
-rw-r--r--libstdc++-v3/config/os/hpux/os_defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h
index 5deef5f9edb..aae9998c552 100644
--- a/libstdc++-v3/config/os/hpux/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/os_defines.h
@@ -84,4 +84,8 @@ namespace std
typedef long int __padding_type;
#endif
+/* We need explicit instantiation of the atomicity lock on 32-bit HPUX. */
+#ifndef __LP64__
+#define _GLIBCPP_INST_ATOMICITY_LOCK 1
+#endif
#endif
OpenPOWER on IntegriCloud