From 65a4de4e06709264e7e06152cd88aaec1f03fd11 Mon Sep 17 00:00:00 2001 From: Chung-Lin Tang Date: Mon, 28 May 2012 00:06:57 +0200 Subject: SH: Add CFI directives. --- sysdeps/sh/_mcount.S | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sysdeps/sh/_mcount.S') diff --git a/sysdeps/sh/_mcount.S b/sysdeps/sh/_mcount.S index 7956c01256..7e3d50e94e 100644 --- a/sysdeps/sh/_mcount.S +++ b/sysdeps/sh/_mcount.S @@ -1,5 +1,5 @@ /* Machine-specific calling sequence for `mcount' profiling function. SuperH - Copyright (C) 2001, 2005 Free Software Foundation, Inc. + Copyright (C) 2001-2012 Free Software Foundation, Inc. Contributed by NIIBE Yutaka This file is part of the GNU C Library. @@ -58,11 +58,20 @@ C_LABEL(_mcount) /* Pop the saved registers. */ lds.l @r15+,pr + cfi_adjust_cfa_offset (-4) + cfi_restore (pr) mov.l @r15+,r7 + cfi_adjust_cfa_offset (-4) + cfi_restore (r7) mov.l @r15+,r6 + cfi_adjust_cfa_offset (-4) + cfi_restore (r6) mov.l @r15+,r5 + cfi_adjust_cfa_offset (-4) + cfi_restore (r5) rts mov.l @r15+,r4 + /* Omit CFI for restore in delay slot. */ .align 2 #ifdef SHARED -- cgit 1.4.1