[PATCH][RFC] Prevent implicit FPU usage

Paul Brook paul@codesourcery.com
Tue Jan 3 15:32:00 GMT 2006


On Tuesday 03 January 2006 15:22, Momchil Velikov wrote:
> Paul Brook wrote:
> >>The two extra failures in ``-fno-implicit-fp'' test are also present in
> >>``-mhitachi'' runs, thus I'd rather think they come from the usage of the
> >>Renesas ABI.
> >
> > Why are you making this option change the ABI?
> > This seems unexpected at best, plain broken at worst.
>
>   Because otherwise variable argument functions itself access floating
> point registers.

In that case when when -fno-implicit-fp is used with that ABI I'd suggest 
either:

- Issue an error ("-fno-implicit-fp not compatible with foobar ABI").
- Issue a diagnostic along the lines of "warning: foobar ABI may cause 
unexpected use of floating point", and mark any functions calling variadic 
functions as using FP.

Either of these seems better than having -fno-implicit-fp change the ABI.

Paul



More information about the Gcc-patches mailing list