This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: How can I force float->double promotion for argument passing on PPC?
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: How can I force float->double promotion for argument passing on PPC?
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 13 Mar 2000 14:36:50 -0800
- CC: gcc-patches at gcc dot gnu dot org
- References: <00031322174800.01127@enzo.bigblue.local>
Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
> Hi,
>
> it turns out that the implementation of the PPC SYSV ABI in gcc
> still contains a bug, float parameters passed on the stack are
> currently not promoted to double. as specified in the ABI.
This would break binary compatibility, but I guess it's not something
that many users would trip over.
> It seems using PROMOTE_MODE is not quite right here? I only want the
> promotion if the args are passed on the stack.
If the args are passed in registers, promotion from 'float' to
'double' is a no-op so that may not be a problem.
--
- Geoffrey Keating <geoffk@cygnus.com>