c/2871: passing float, gets converted to double

mdesm2@logicvision.com mdesm2@logicvision.com
Fri May 18 23:56:00 GMT 2001


>Number:         2871
>Category:       c
>Synopsis:       passing float, gets converted to double
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 18 23:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Marc Desmarais
>Release:        2.95
>Organization:
>Environment:
Suse 7.0
>Description:
If you pass a float to a function, it's converted to a double before being pushed on the stack. The compiler (with -O) does this even if the formal parameter is a float. 

>How-To-Repeat:
compile with -O
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list