]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc:
authoredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 22:10:11 +0000 (22:10 +0000)
committeredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 22:10:11 +0000 (22:10 +0000)
commitbed03df11f9b17ec17519a8aa3e4762d64abcfec
treee93888863720e72051a26271bdd350b2c7f07917
parentb0e5fdf725468c9fa09d0a11bb857de06a230eb5
gcc:
2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/77434
        * doc/invoke.texi: Document -Wint-in-bool-context.

c-family:
2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/77434
        * c.opt (Wcond-in-bool-context): New warning.
        * c-common.c (c_common_truthvalue_conversion): Warn on integer
        constants in boolean context.

cp:
2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/77434
        * cvt.c (cp_convert_and_check): Suppress Wint-in-bool-context here.

testsuite:
2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240251 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wint-in-bool-context.c [new file with mode: 0644]