about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sh/sh3
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2012-05-28 00:06:57 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-05-28 00:11:06 +0200
commit65a4de4e06709264e7e06152cd88aaec1f03fd11 (patch)
tree85fadd93664635e1884e1b1ceaa7de63f17e0ab3 /sysdeps/unix/sysv/linux/sh/sh3
parent47e452cf7c13529f168ff2a415107d1c8e9af9c2 (diff)
downloadglibc-65a4de4e06709264e7e06152cd88aaec1f03fd11.tar.gz
glibc-65a4de4e06709264e7e06152cd88aaec1f03fd11.tar.xz
glibc-65a4de4e06709264e7e06152cd88aaec1f03fd11.zip
SH: Add CFI directives.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/sh3')
-rw-r--r--sysdeps/unix/sysv/linux/sh/sh3/setcontext.S3
-rw-r--r--sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S3
2 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/sh3/setcontext.S b/sysdeps/unix/sysv/linux/sh/sh3/setcontext.S
index abe384ef6b..9d672f9203 100644
--- a/sysdeps/unix/sysv/linux/sh/sh3/setcontext.S
+++ b/sysdeps/unix/sysv/linux/sh/sh3/setcontext.S
@@ -1,5 +1,5 @@
 /* Install given context.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -90,6 +90,7 @@ ENTRY(__setcontext)
 	mov.l	@(oR7,r0), r7
 	mov.l	@(oR8,r0), r8
 	mov.l	@r15+, r0
+	cfi_adjust_cfa_offset(-4)
 	jmp	@r0
 	 mov.l	@r15+, r0
 
diff --git a/sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S b/sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S
index 92c476efe7..8227a139e8 100644
--- a/sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S
+++ b/sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S
@@ -1,5 +1,5 @@
 /* Save current context and install the given one.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -123,6 +123,7 @@ ENTRY(__swapcontext)
 	mov.l	@(oR7,r0), r7
 	mov.l	@(oR8,r0), r8
 	mov.l	@r15+, r0
+	cfi_adjust_cfa_offset(-4)
 	jmp	@r0
 	 mov.l	@r15+, r0