[PATCH] Make -Wint-in-bool-context warn on suspicious shift ops

Bernd Edlinger bernd.edlinger@hotmail.de
Tue Oct 18 18:14:00 GMT 2016


On 10/18/16 19:05, Joseph Myers wrote:
> 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).
>

Yes of course.

New patch, this time with a test case, compiled from the linux sample.

Bootstrapped and reg-tested as usual.
Is it OK for trunk?


Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-bool-context4.diff
Type: text/x-patch
Size: 1666 bytes
Desc: patch-bool-context4.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161018/6735197e/attachment.bin>


More information about the Gcc-patches mailing list