How can I force float->double promotion for argument passing on PPC?

Geoff Keating geoffk@cygnus.com
Mon Mar 13 14:36:00 GMT 2000


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>


More information about the Gcc-patches mailing list