Bug 000053

When Created: 01/17/1996 13:32:35
Against DJGPP version: 2.00.beta3
By whom:
Abstract: Stack problems with ceil and floor in libm
In files s_ceil.s, sf_ceil.s, s_floor.s and sf_floor.s the local variables
are bellow the stack pointer. For example, in sf_floor.s:

	pushl	%ebp
	movl	%esp,%ebp
	subl	$8,%esp

	fstcw	-12(%ebp)	...

Note added: 01/23/1996 22:01:30
By whom:
libm.a sources were provided by Cygnus

Note added: 06/11/1996 17:54:13
By whom:
I only found out recently that in the release version, the exception code
uses the user stack, destroying around 100 bytes below the stack pointer.
The result is that ceil and floor from libm.a can no longer be used with
fp emulation

Solution added: 04/13/1999 09:00:30
By whom:
Upgrade to v2.02.

Fixed in version on 04/13/1999 09:00:20
By whom:

  webmaster     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010