re PR middle-end/79818 (wrong code with -fwrapv and -Os/-O1/-O2/-O3)
authorRichard Biener <rguenther@suse.de>
Fri, 3 Mar 2017 08:08:08 +0000 (08:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 3 Mar 2017 08:08:08 +0000 (08:08 +0000)
commit75473a91bc054c229cdc58fb06dc5a6311899f5c
treef3b4e1263a0a493582a686d705880e3215759610
parentfb5ce60890c11a637aa1809389a9e8f6f7b87360
re PR middle-end/79818 (wrong code with -fwrapv and -Os/-O1/-O2/-O3)

2017-03-03  Richard Biener  <rguenther@suse.de>

PR middle-end/79818
* match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
TYPE_OVERFLOW_UNDEFINED check.

* gcc.dg/torture/pr79818.c: New testcase.

From-SVN: r245860
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79818.c [new file with mode: 0644]