c-format: double vs float
Joseph S. Myers
joseph@codesourcery.com
Fri Jan 8 20:36:00 GMT 2010
On Fri, 8 Jan 2010, DJ Delorie wrote:
> This one is a worry... when we pass float to printf() on a target
> where doubles and floats are the same size (h8300-elf for example),
> the normal float->double type promotion doesn't happen (nor does it
> need to) but c-format now complains that a float is passed where a
The promotion is required by ISO C, so the bug is that it doesn't happen
and the fix should be to make it happen. (This appears to be PR 35649.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list