From: rth Date: Mon, 1 Apr 2002 06:52:45 +0000 (+0000) Subject: * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset. X-Git-Tag: upstream/4.9.2~87592 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2898f3a47519778c7ca29231dc1a58917f07a264;p=platform%2Fupstream%2Flinaro-gcc.git * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset. (desc_frgr_mem): Fix reference to f16-f31. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51679 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c97fd63..d7bc594 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-03-31 Richard Henderson + + * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset. + (desc_frgr_mem): Fix reference to f16-f31. + 2002-03-31 Kaveh R. Ghazi * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2, diff --git a/gcc/config/ia64/unwind-ia64.c b/gcc/config/ia64/unwind-ia64.c index 52db9ac..2c1e356 100644 --- a/gcc/config/ia64/unwind-ia64.c +++ b/gcc/config/ia64/unwind-ia64.c @@ -342,8 +342,8 @@ alloc_spill_area (unsigned long *offp, unsigned long regsize, if (reg->where == UNW_WHERE_SPILL_HOME) { reg->where = UNW_WHERE_PSPREL; - reg->val = 0x10 - *offp; - *offp += regsize; + *offp -= regsize; + reg->val = *offp; } } } @@ -541,7 +541,8 @@ desc_frgr_mem (unsigned char grmask, unw_word frmask, { if ((frmask & 1) != 0) { - set_reg (sr->curr.reg + UNW_REG_F2 + i, UNW_WHERE_SPILL_HOME, + enum unw_register_index base = i < 4 ? UNW_REG_F2 : UNW_REG_F16 - 4; + set_reg (sr->curr.reg + base + i, UNW_WHERE_SPILL_HOME, sr->region_start + sr->region_len - 1, 0); sr->any_spills = 1; }