This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch committed] Fix sh-linux MD_FALLBACK_FRAME_STATE_FOR


I've applied the attached patch which fixes obvious typos in
the SH's MD_FALLBACK_FRAME_STATE_FOR routine.  Tested with
bootstrap and regtested on sh4-unknown-linux-gnu.

Regards,
	kaz
--
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.

--- ORIG/trunk/gcc/config/sh/linux-unwind.h	2006-10-27 10:20:22.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/linux-unwind.h	2007-07-11 08:21:27.000000000 +0900
@@ -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_
   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;
     }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]