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

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


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>

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