This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make -Wint-in-bool-context warn on suspicious shift ops
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: Markus Trippelsdorf <markus at trippelsdorf dot de>, Jason Merrill <jason at redhat dot com>, Florian Weimer <fw at deneb dot enyo dot de>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jeff Law <law at redhat dot com>
- Date: Tue, 18 Oct 2016 17:05:13 +0000
- Subject: Re: [PATCH] Make -Wint-in-bool-context warn on suspicious shift ops
- Authentication-results: sourceware.org; auth=none
- References: <87fuol77ri.fsf@mid.deneb.enyo.de> <HE1PR0701MB21694CB05881916BDFF3A251E4CC0@HE1PR0701MB2169.eurprd07.prod.outlook.com> <CADzB+2n085rFdKy5AQuffwjnGOYMdR0zNzbbKJGJT+KrXUdFHA@mail.gmail.com> <HE1PR0701MB21692B89F7F6754AB32594EEE4CC0@HE1PR0701MB2169.eurprd07.prod.outlook.com> <CADzB+2=pWuj6AUQFKAbc=f+pq616+Gx6tCNwzPU_e4Dp84PY4g@mail.gmail.com> <AM4PR0701MB2162EC708CAF70C79B380A62E4CF0@AM4PR0701MB2162.eurprd07.prod.outlook.com> <CADzB+2kzJk5N5RctXS_SM1b2FKH8R8hAkbXK7RxzEtNaD2iqPg@mail.gmail.com> <AM4PR0701MB216289DC52D6AA7A184F9821E4CE0@AM4PR0701MB2162.eurprd07.prod.outlook.com> <20161017152304.GA303@x4> <AM4PR0701MB2162DD1776443BDB025492A7E4D00@AM4PR0701MB2162.eurprd07.prod.outlook.com> <20161017171124.GB303@x4> <AM4PR0701MB2162458A7F27D68C8AF290D8E4D00@AM4PR0701MB2162.eurprd07.prod.outlook.com> <AM4PR0701MB216271B9FB40495B4D5AF6FDE4D30@AM4PR0701MB2162.eurprd07.prod.outlook.com>
On Tue, 18 Oct 2016, Bernd Edlinger wrote:
> Hi,
>
> this restricts the -Wint-in-bool-context warning to signed shifts,
> to reduce the number of false positives Markus reported yesterday.
This patch seems to be missing testcases (that warned before the patch
and don't warn after it).
--
Joseph S. Myers
joseph@codesourcery.com