public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Promoting floats to doubles?
@ 2004-05-02  6:32 Kean Johnston
  2004-05-03 20:39 ` Jim Wilson
  0 siblings, 1 reply; 15+ messages in thread
From: Kean Johnston @ 2004-05-02  6:32 UTC (permalink / raw)
  To: GCC development 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-05-05 23:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-02  6:32 Promoting floats to doubles? Kean Johnston
2004-05-03 20:39 ` Jim Wilson
2004-05-04  1:25   ` Kean Johnston
2004-05-04  4:00     ` Jim Wilson
2004-05-04 17:45       ` Kean Johnston
2004-05-04 18:52         ` Joseph S. Myers
2004-05-04 20:44           ` Jim Wilson
2004-05-05  0:06             ` Kean Johnston
2004-05-05  2:18               ` Jim Wilson
2004-05-05  7:10               ` Jim Wilson
2004-05-05  9:10                 ` Kean Johnston
2004-05-05 22:47                   ` Jim Wilson
2004-05-05 23:48                     ` Kean Johnston
2004-05-04 20:52         ` Jim Wilson
2004-05-05  0:14           ` Kean Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).