This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small tweak to config/cpu/hppa/os_defines.h
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 13 Nov 2002 17:46:04 -0500 (EST)
- Subject: Small tweak to config/cpu/hppa/os_defines.h
In a recent patch, I made changes that allowed building the
hppa64-hp-hpux11 port using the HP assembler. This assembler doesn't
support weak symbols, so we to define _GLIBCPP_INST_ATOMICITY_LOCK
both on the 32-bit port and the 64-bit port with the HP assembler.
Tested on hppa64-hp-hpux11* and hppa2.0w-hp-hpux11*. Installed
on main.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2002-11-09 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.
Index: config/os/hpux/os_defines.h
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/config/os/hpux/os_defines.h,v
retrieving revision 1.4
diff -u -3 -p -r1.4 os_defines.h
--- config/os/hpux/os_defines.h 5 Nov 2002 19:17:37 -0000 1.4
+++ config/os/hpux/os_defines.h 9 Nov 2002 22:44:53 -0000
@@ -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