OSDN Git Service

* c.opt (Wdouble-promotion): New.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 2010 21:50:46 +0000 (21:50 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 2010 21:50:46 +0000 (21:50 +0000)
commitc920faa3f7a47eb62457a0ce4dc90d454cffbd53
treecf50ecb46ce69121764e0c94a17d14428dabc011
parent6d895a1b1bda15a0d4daf14336c0855c279a8937
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163884 138bc75d-0d04-0410-961f-82ee72b054a4
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]