From 91c03c5389ed957da852de60e0e508cc682d9b12 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 16 Jun 2014 22:54:46 +0000 Subject: Add CFI to x86 ceil / floor / trunc (bug 16681). This patch adds CFI to the sysdeps/i386/fpu/ implementations of ceil, floor and trunc functions, for consistency with other x86 .S files in glibc which have CFI for stack adjustments. Tested x86. [BZ #16681] * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI. * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise. * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise. * sysdeps/i386/fpu/s_floor.S (__floor): Likewise. * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise. * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise. * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise. * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise. * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise. --- sysdeps/i386/fpu/s_truncl.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/i386/fpu/s_truncl.S') diff --git a/sysdeps/i386/fpu/s_truncl.S b/sysdeps/i386/fpu/s_truncl.S index 4bef0f478a..d573855dc3 100644 --- a/sysdeps/i386/fpu/s_truncl.S +++ b/sysdeps/i386/fpu/s_truncl.S @@ -22,6 +22,7 @@ ENTRY(__truncl) fldt 4(%esp) subl $8, %esp + cfi_adjust_cfa_offset (8) fstcw 4(%esp) movl $0xc00, %edx orl 4(%esp), %edx @@ -30,6 +31,7 @@ ENTRY(__truncl) frndint fldcw 4(%esp) addl $8, %esp + cfi_adjust_cfa_offset (-8) ret END(__truncl) weak_alias (__truncl, truncl) -- cgit 1.4.1