From 46da3ce5804b76e4cc2713702f5cbfe14cd175c3 Mon Sep 17 00:00:00 2001 From: gingold Date: Fri, 16 Mar 2012 10:58:28 +0000 Subject: [PATCH] 2012-03-16 Tristan Gingold * config/ia64/vms-unwind.h: Remove ulong (and replace it by unw_reg where used). Define unw_reg with __int64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185463 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgcc/ChangeLog | 5 +++++ libgcc/config/ia64/vms-unwind.h | 19 +++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 5184a85..744dd93 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-16 Tristan Gingold + + * 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 * 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 48bdc68..6fd9ac0 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"); -- 2.7.4