This is the mail archive of the gcc-bugs@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]

c/2871: passing float, gets converted to double



>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:


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