c-common.c (warn_logical_operator): Use tree_int_cst_equal when comparing INTEGER_CSTs.
authorMarek Polacek <polacek@redhat.com>
Tue, 23 Jun 2015 17:10:10 +0000 (17:10 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 23 Jun 2015 17:10:10 +0000 (17:10 +0000)
commita68ae2e1b15892b8e822f5a99f2b9d1e59b56e4c
tree7148f747e2eb677ef00013e410bce7fcd6952131
parent171561ca339eaea296a43c8f5b328bf3a66e3af2
c-common.c (warn_logical_operator): Use tree_int_cst_equal when comparing INTEGER_CSTs.

* c-common.c (warn_logical_operator): Use tree_int_cst_equal
when comparing INTEGER_CSTs.

* c-c++-common/Wlogical-op-3.c: New test.

From-SVN: r224853
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wlogical-op-3.c [new file with mode: 0644]