summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-03-16 10:58:28 +0000
committerTristan Gingold <gingold@gcc.gnu.org>2012-03-16 10:58:28 +0000
commit86286a8a969979fabab15c052ad8540e44a61720 (patch)
tree53b4c257d5d612ef4e18159f30e1da73141aa838 /libgcc
parent6ceb677f26951e8c06da7f565db05ce482a80f8a (diff)
downloadgcc-86286a8a969979fabab15c052ad8540e44a61720.tar.gz
vms-unwind.h: Remove ulong (and replace it by unw_reg where used).
2012-03-16 Tristan Gingold <gingold@adacore.com> * config/ia64/vms-unwind.h: Remove ulong (and replace it by unw_reg where used). Define unw_reg with __int64. From-SVN: r185463
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/ia64/vms-unwind.h19
2 files changed, 14 insertions, 10 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 5184a85b033..744dd93355a 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-16 Tristan Gingold <gingold@adacore.com>
+
+ * config/ia64/vms-unwind.h: Remove ulong (and replace
+ it by unw_reg where used). Define unw_reg with __int64.
+
2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/i386/sol2-unwind.h (x86_fallback_frame_state): Remove
diff --git a/libgcc/config/ia64/vms-unwind.h b/libgcc/config/ia64/vms-unwind.h
index 48bdc6884ea..6fd9ac006d3 100644
--- a/libgcc/config/ia64/vms-unwind.h
+++ b/libgcc/config/ia64/vms-unwind.h
@@ -49,9 +49,8 @@ extern int LIB$I64_INIT_INVO_CONTEXT (INVO_CONTEXT_BLK *, int, int);
extern int LIB$I64_GET_CURR_INVO_CONTEXT (INVO_CONTEXT_BLK *);
extern int LIB$I64_GET_PREV_INVO_CONTEXT (INVO_CONTEXT_BLK *);
-typedef unsigned long ulong;
typedef unsigned int uint;
-typedef unsigned long uw_reg;
+typedef unsigned __int64 uw_reg;
typedef uw_reg * uw_loc;
typedef char fp_reg[16];
@@ -179,8 +178,8 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
if (eh_debug)
printf ("User frame, "
- "chfmech @ 0x%lx, chfsig64 @ 0x%lx, intstk @ 0x%lx\n",
- (ulong)chfmech, (ulong)chfsig64, (ulong)intstk);
+ "chfmech @ 0x%p, chfsig64 @ 0x%p, intstk @ 0x%p\n",
+ chfmech, chfsig64, intstk);
/* Step 2 :
------------------------------------------------------------------------
@@ -239,10 +238,10 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
trick already) and how this would be handled. Blind alpha tentative
below for experimentation purposes in malfunctioning cases. */
{
- ulong q_bsp = (ulong) intstk->intstk$q_bsp;
- ulong q_bspstore = (ulong) intstk->intstk$q_bspstore;
- ulong q_bspbase = (ulong) intstk->intstk$q_bspbase;
- ulong ih_bspbase = (ulong) icb->libicb$ih_bspbase;
+ uw_reg q_bsp = (uw_reg) intstk->intstk$q_bsp;
+ uw_reg q_bspstore = (uw_reg) intstk->intstk$q_bspstore;
+ uw_reg q_bspbase = (uw_reg) intstk->intstk$q_bspbase;
+ uw_reg ih_bspbase = (uw_reg) icb->libicb$ih_bspbase;
if (eh_debug)
printf ("q_bspstore = 0x%lx, q_bsp = 0x%lx, q_bspbase = 0x%lx\n"
@@ -254,8 +253,8 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
nothing resulted in proper behavior. */
if (q_bspstore < q_bsp && ih_bspbase && try_bs_copy)
{
- ulong dirty_size = q_bsp - q_bspstore;
- ulong q_rnat = (ulong) intstk->intstk$q_rnat;
+ uw_reg dirty_size = q_bsp - q_bspstore;
+ uw_reg q_rnat = (uw_reg) intstk->intstk$q_rnat;
if (eh_debug)
printf ("Attempting an alternate backing store copy ...\n");