This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2871: passing float, gets converted to double
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2871: passing float, gets converted to double
- From: mdesm2 at logicvision dot com
- Date: 19 May 2001 06:52:34 -0000
- Reply-To: mdesm2 at logicvision dot com
>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: