c-common.c (c_common_truthvalue_conversion): Warn for multiplications in boolean...
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 24 Oct 2016 17:14:41 +0000 (17:14 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Mon, 24 Oct 2016 17:14:41 +0000 (17:14 +0000)
commitf834806177042ee269333855dee99fda84bc7c26
tree192f2356af6a042207d630b08e779de14912326f
parent1eb4547b1058d6a4e1912ac0f15cc0a69bf4fd78
c-common.c (c_common_truthvalue_conversion): Warn for multiplications in boolean context.

2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-common.c (c_common_truthvalue_conversion): Warn for
        multiplications in boolean context.  Fix the quoting of '<<' and '<'
        in the shift warning.

gcc:
2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * doc/invoke.text (Wint-in-bool-context): Update documentation.
        * value-prof.c (stringop_block_profile): Fix a warning.

testsuite:
2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/Wint-in-bool-context-3.c: New test.

From-SVN: r241490
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wint-in-bool-context-3.c [new file with mode: 0644]
gcc/value-prof.c