Re: printf format warning when sizeof(float) == sizeof(double)

2014-09-10 Thread Joel Sherrill
On September 10, 2014 3:40:05 PM CDT, "Joseph S. Myers" wrote: >On Wed, 10 Sep 2014, Joel Sherrill wrote: > >> Hi >> >> We have a few RTEMS BSPs which use CPUs where float, double, >> and long double are the same. This triggers the printf format >> warning because promoting float to double re

Re: printf format warning when sizeof(float) == sizeof(double)

2014-09-10 Thread Joseph S. Myers
On Wed, 10 Sep 2014, Joel Sherrill wrote: > Hi > > We have a few RTEMS BSPs which use CPUs where float, double, > and long double are the same. This triggers the printf format > warning because promoting float to double results in float. That was PR c/35649, which should be fixed in 4.9. -- J

printf format warning when sizeof(float) == sizeof(double)

2014-09-10 Thread Joel Sherrill
Hi We have a few RTEMS BSPs which use CPUs where float, double, and long double are the same. This triggers the printf format warning because promoting float to double results in float. At least that's what I think is happening. This happens on at least the h8sx and sh2e. $ h8300-rtems4.11-gcc -