aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@gcc.gnu.org>2007-07-13 05:57:26 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2007-07-13 05:57:26 +0000
commit192c543cd420fb63220f72759ce76c0477cee984 (patch)
tree63d039f2b66d8a9ce01eb6350b26e1d47e8025dc /gcc
parente27a1019c5cac8377587a3528d0b724b680ea646 (diff)
downloadgcc-192c543cd420fb63220f72759ce76c0477cee984.zip
gcc-192c543cd420fb63220f72759ce76c0477cee984.tar.gz
gcc-192c543cd420fb63220f72759ce76c0477cee984.tar.bz2
linux-unwind.h (sh_fallback_frame_state): Use correct index when setting register save state for xd registers.
* config/sh/linux-unwind.h (sh_fallback_frame_state): Use correct index when setting register save state for xd registers. From-SVN: r126612
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/linux-unwind.h6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 380c480..924fc03 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
+ * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
+ correct index when setting register save state for xd
+ registers.
+
+2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
+
* config/sh/sh.c (mark_use): Remove.
2007-07-12 Paul Brook <paul@codesourcery.com>
diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h
index 5374f8a..edc15d9 100644
--- a/gcc/config/sh/linux-unwind.h
+++ b/gcc/config/sh/linux-unwind.h
@@ -1,5 +1,5 @@
/* DWARF2 EH unwinding support for SH Linux.
- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GCC.
@@ -230,8 +230,8 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
r = SH_DWARF_FRAME_XD0;
for (i = 0; i < 8; i++)
{
- fs->regs.reg[i].how = REG_SAVED_OFFSET;
- fs->regs.reg[i].loc.offset
+ fs->regs.reg[r+i].how = REG_SAVED_OFFSET;
+ fs->regs.reg[r+i].loc.offset
= (long)&(sc->sc_xfpregs[2*i]) - new_cfa;
}