]> gcc.gnu.org Git - gcc.git/commitdiff
sysv.S (ffi_closure_SYSV): Use x29 as the main CFA reg; update cfi_rel_offset.
authorYufeng Zhang <yufeng.zhang@arm.com>
Wed, 12 Mar 2014 16:18:29 +0000 (16:18 +0000)
committerYufeng Zhang <yufeng@gcc.gnu.org>
Wed, 12 Mar 2014 16:18:29 +0000 (16:18 +0000)
libffi/

* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
main CFA reg; update cfi_rel_offset.

From-SVN: r208515

libffi/ChangeLog
libffi/src/aarch64/sysv.S

index 80e94ed77ca1467a81f113ecea0c66da7101271b..aebe8553b90df157718346b82bfb4b63d63b2a49 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
+
+       * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
+       main CFA reg; update cfi_rel_offset.
+
 2014-02-17  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR libffi/60073
index b8cd421a8a5c913a00faaf10362ad1d35b9f8f2d..ffb16f84cb1e3f9a5b22484fdbf767521bbdb91c 100644 (file)
@@ -231,13 +231,13 @@ ffi_closure_SYSV:
         cfi_rel_offset (x30, 8)
 
         mov     x29, sp
+        cfi_def_cfa_register (x29)
 
         sub     sp, sp, #ffi_closure_SYSV_FS
-       cfi_adjust_cfa_offset (ffi_closure_SYSV_FS)
 
         stp     x21, x22, [x29, #-16]
-        cfi_rel_offset (x21, 0)
-        cfi_rel_offset (x22, 8)
+        cfi_rel_offset (x21, -16)
+        cfi_rel_offset (x22, -8)
 
         /* Load x21 with &call_context.  */
         mov     x21, sp
@@ -295,7 +295,7 @@ ffi_closure_SYSV:
         cfi_restore (x22)
 
         mov     sp, x29
-       cfi_adjust_cfa_offset (-ffi_closure_SYSV_FS)
+        cfi_def_cfa_register (sp)
 
         ldp     x29, x30, [sp], #16
        cfi_adjust_cfa_offset (-16)
This page took 0.065711 seconds and 5 git commands to generate.