Promoting floats to doubles?
Kean Johnston
jkj@sco.com
Sun May 2 06:32:00 GMT 2004
Hi,
In going through a G77 testcase failure when I had TARGET_C99_FUNCTIONS
defined, I came across something that confuses me. The failure shows
itself whenever a float argument is passed to something like, for
example, floorf(). The function in libm.so is expecting the float to
have been promoted to a double and is wanting to pull 8 bytes off the
stack. But only 4 are being pushed on (fstps (%esp)) instead of the 8
(%fstpl %(esp)).
Is there a way I can instruct GCC to always promote floats?
Kean
More information about the Gcc
mailing list