This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Define HANDLE_SYSV_PRAGMA and HANDLE_PRAGMA_PACK_PUSH_POP on PA HP-UX
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Cc: efrias at syncad dot com
- Date: Fri, 31 Dec 2004 12:11:46 -0500 (EST)
- Subject: [committed] Define HANDLE_SYSV_PRAGMA and HANDLE_PRAGMA_PACK_PUSH_POP on PA HP-UX
In order to provide a consistent treatment of pragmas on the PA, I've
defined HANDLE_SYSV_PRAGMA and HANDLE_PRAGMA_PACK_PUSH_POP. The 64-bit
HP-UX port already had HANDLE_SYSV_PRAGMA defined via elfos.h. The
linux port defined HANDLE_PRAGMA_PACK_PUSH_POP as well.
Tested with no regressions on hppa1.1-hp-hpux10.20, hppa2.0w-hp-hpux11.11
and hppa64-hp-hpux11.11. Committed to head.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2004-12-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa-hpux.h (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Define.
Index: config/pa/pa-hpux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa-hpux.h,v
retrieving revision 1.15
diff -u -3 -p -r1.15 pa-hpux.h
--- config/pa/pa-hpux.h 25 Aug 2004 17:49:57 -0000 1.15
+++ config/pa/pa-hpux.h 26 Dec 2004 17:17:13 -0000
@@ -121,3 +121,11 @@ Boston, MA 02111-1307, USA. */
compatibility with the HP-UX unwind library. */
#undef TARGET_HPUX_UNWIND_LIBRARY
#define TARGET_HPUX_UNWIND_LIBRARY 1
+
+/* Handle #pragma weak and #pragma pack. */
+#undef HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA
+
+/* Define this so we can compile MS code for use with WINE. */
+#undef HANDLE_PRAGMA_PACK_PUSH_POP
+#define HANDLE_PRAGMA_PACK_PUSH_POP