re PR middle-end/85974 (Failure to optimize difference of two pointers into a compile...
authorRichard Biener <rguenther@suse.de>
Fri, 13 Jul 2018 11:25:38 +0000 (11:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 13 Jul 2018 11:25:38 +0000 (11:25 +0000)
commit67fccea48da5b2a7a62f9b08acc01b254ab4c1a5
treecfea8c49086f268aed6773db67e688b6ea2d715a
parent225398279594ff4c5a6a8a14df0375d53d8dadf9
re PR middle-end/85974 (Failure to optimize difference of two pointers into a compile time constant)

2018-07-13  Richard Biener  <rguenther@suse.de>

PR middle-end/85974
* match.pd (addr1 - addr2): Allow either of the operand to
have a conversion.

* gcc.c-torture/compile/930326-1.c: Adjust to cover widening.

From-SVN: r262632
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/930326-1.c