The FPU stack should be empty on cdecl function call. Failing to do so breaks GCC 6.4.0 -O2 optimized code.
New code is still calling cdecl functions with non empty FPU stack. Is it better to reimplement _CI* functions in assembler?
For bug #43940.
Signed-off-by: Piotr Caban piotr@codeweavers.com --- dlls/msvcrt/math.c | 123 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 69 insertions(+), 54 deletions(-)
Piotr Caban piotr@codeweavers.com writes:
New code is still calling cdecl functions with non empty FPU stack. Is it better to reimplement _CI* functions in assembler?
That's probably better, yes.