about summary refs log tree commit diff
path: root/sysdeps/i386/fpu/s_ceilf.S
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-06-16 22:54:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-06-16 22:54:46 +0000
commit91c03c5389ed957da852de60e0e508cc682d9b12 (patch)
tree6e147d53351a7ddbc9f8d74c8705c155686300de /sysdeps/i386/fpu/s_ceilf.S
parenta76e63c586f40a824f738219bd473cb890af9ea7 (diff)
downloadglibc-91c03c5389ed957da852de60e0e508cc682d9b12.tar.gz
glibc-91c03c5389ed957da852de60e0e508cc682d9b12.tar.xz
glibc-91c03c5389ed957da852de60e0e508cc682d9b12.zip
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.
Diffstat (limited to 'sysdeps/i386/fpu/s_ceilf.S')
-rw-r--r--sysdeps/i386/fpu/s_ceilf.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/s_ceilf.S b/sysdeps/i386/fpu/s_ceilf.S
index 352d40d7ce..4fe703b179 100644
--- a/sysdeps/i386/fpu/s_ceilf.S
+++ b/sysdeps/i386/fpu/s_ceilf.S
@@ -10,6 +10,7 @@ RCSID("$NetBSD: s_ceilf.S,v 1.3 1995/05/08 23:52:44 jtc Exp $")
 ENTRY(__ceilf)
 	flds	4(%esp)
 	subl	$8,%esp
+	cfi_adjust_cfa_offset (8)
 
 	fstcw	4(%esp)			/* store fpu control word */
 
@@ -27,6 +28,7 @@ ENTRY(__ceilf)
 	fldcw	4(%esp)			/* restore original control word */
 
 	addl	$8,%esp
+	cfi_adjust_cfa_offset (-8)
 	ret
 END (__ceilf)
 weak_alias (__ceilf, ceilf)