-Wdouble-promotion & noise
Ian Lance Taylor
iant@google.com
Tue Sep 14 19:50:00 GMT 2010
tbp <tbptbp@gmail.com> writes:
> On Tue, Sep 14, 2010 at 7:14 PM, Ian Lance Taylor <iant@google.com> wrote:
>> What is it that you want?
> I'd like to have a warning for when a value of type float is
> implicitly promoted to double, for performance reasons (on x86).
Let me put it a different way: what is it that you want, expressed in
terms of C/C++ code? What should the compiler be warning about?
> -Wunsuffixed-float-constants, unavailable in C++.
It seems that this could be added to C++ easily enough.
Ian
More information about the Gcc
mailing list