This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed] libffi: Fix typos in FDE of src/sh/sysv.S
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Feb 2006 20:28:28 +0900 (JST)
- Subject: [patch committed] libffi: Fix typos in FDE of src/sh/sysv.S
Hi,
libffi testsuite gcc flags?
http://gcc.gnu.org/ml/gcc/2006-02/msg00496.html
made me try to "make check RUNTESTFLAGS=--target_board=unix/-O2"
on SH and I got a failure of libffi.special/unwindtest.cc on
sh4-unknown-linux-gnu with it. It turned out that there are typos
in the hand-written FDE in sh/sysv.S. I've committed the attached
patch on the trunk.
Regards,
kaz
--
libffi/ChangeLog
2006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
* src/sh/sysv.S: Fix register numbers in the FDE for
ffi_closure_SYSV.
diff -uprN ORIG/trunk/libffi/src/sh/sysv.S LOCAL/trunk/libffi/src/sh/sysv.S
--- ORIG/trunk/libffi/src/sh/sysv.S 2005-10-29 06:53:11.000000000 +0900
+++ LOCAL/trunk/libffi/src/sh/sysv.S 2006-02-22 10:40:17.000000000 +0900
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------
- sysv.S - Copyright (c) 2002, 2003, 2004 Kaz Kojima
+ sysv.S - Copyright (c) 2002, 2003, 2004, 2006 Kaz Kojima
SuperH Foreign Function Interface
@@ -829,13 +829,13 @@ __FRAME_BEGIN__:
.byte 0x6 /* uleb128 0x6 */
.byte 0x8e /* DW_CFA_offset, column 0xe */
.byte 0x5 /* uleb128 0x5 */
- .byte 0x8b /* DW_CFA_offset, column 0xb */
+ .byte 0x84 /* DW_CFA_offset, column 0x4 */
.byte 0x4 /* uleb128 0x4 */
- .byte 0x8a /* DW_CFA_offset, column 0xa */
+ .byte 0x85 /* DW_CFA_offset, column 0x5 */
.byte 0x3 /* uleb128 0x3 */
- .byte 0x89 /* DW_CFA_offset, column 0x9 */
+ .byte 0x86 /* DW_CFA_offset, column 0x6 */
.byte 0x2 /* uleb128 0x2 */
- .byte 0x88 /* DW_CFA_offset, column 0x8 */
+ .byte 0x87 /* DW_CFA_offset, column 0x7 */
.byte 0x1 /* uleb128 0x1 */
.byte 0x4 /* DW_CFA_advance_loc4 */
.4byte .LCFIE-.LCFID