This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Promoting floats to doubles?
- From: Kean Johnston <jkj at sco dot com>
- To: GCC development group <gcc at gcc dot gnu dot org>
- Date: Sat, 01 May 2004 23:22:47 -0700
- Subject: Promoting floats to doubles?
- Organization: The SCO Group
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