This is the mail archive of the gcc@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]
Other format: [Raw text]

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



On September 10, 2014 3:40:05 PM CDT, "Joseph S. Myers" <joseph@codesourcery.com> 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 results in float.
>
>That was PR c/35649, which should be fixed in 4.9.

Thanks for the quick reply. The targets in question were using 4.8. I will check this on the head once my build completes.
--joel


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