]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c.opt
c.opt (Wdouble-promotion): New.
authorMark Mitchell <mark@codesourcery.com>
Sun, 5 Sep 2010 21:50:46 +0000 (21:50 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 5 Sep 2010 21:50:46 +0000 (21:50 +0000)
commit0a0b3574de3a5965eebb920d3da48771710ef94b
treecf50ecb46ce69121764e0c94a17d14428dabc011
parent46d2b70cd7923180ef8869537fd5a2bd9a3de2f1
c.opt (Wdouble-promotion): New.

* c.opt (Wdouble-promotion): New.

* doc/invoke.texi: Document -Wdouble-promotion.
* c-typeck.c (convert_arguments): Check for implicit conversions
from float to double.
(do_warn_double_promotion): New function.
(build_conditional_expr): Use it.
(build_binary_op): Likewise.

* gcc.dg/Wdouble-promotion.c: New.

From-SVN: r163884
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/c-typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wdouble-promotion.c [new file with mode: 0644]