This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Promoting floats to doubles?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]