OSDN Git Service

* config/sh/linux-unwind.h (sh_fallback_frame_state): Use
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2007 05:57:26 +0000 (05:57 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2007 05:57:26 +0000 (05:57 +0000)
correct index when setting register save state for xd
registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126612 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/linux-unwind.h

index 380c480..924fc03 100644 (file)
@@ -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>
index 5374f8a..edc15d9 100644 (file)
@@ -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;
     }