[PATCH] msvcrt: Call cdecl functions with empty FPU stack in _CI* functions
Piotr Caban
piotr at codeweavers.com
Mon Nov 27 07:34:46 CST 2017
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 at codeweavers.com>
---
dlls/msvcrt/math.c | 123
++++++++++++++++++++++++++++++-----------------------
1 file changed, 69 insertions(+), 54 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcrt-Call-cdecl-functions-with-empty-FPU-stack-in-_C.txt
Type: text/x-patch
Size: 5933 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20171127/9a0a3a23/attachment-0001.bin>
More information about the wine-devel
mailing list