diff options
author | Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> | 2016-11-07 17:32:17 +0000 |
---|---|---|
committer | Prathamesh Kulkarni <prathamesh3492@gcc.gnu.org> | 2016-11-07 17:32:17 +0000 |
commit | 7aa13860fb669e459c932e722743b0edfa373071 (patch) | |
tree | 635b4e800f58b4bbd2d72bf49db8fd6309f5bc2d /gcc/fortran/iresolve.c | |
parent | 1581a12c3577a2d9048d47b0b7205df772c308db (diff) | |
download | gcc-7aa13860fb669e459c932e722743b0edfa373071.zip gcc-7aa13860fb669e459c932e722743b0edfa373071.tar.gz gcc-7aa13860fb669e459c932e722743b0edfa373071.tar.bz2 |
re PR middle-end/35691 (Missed (a == 0) && (b == 0) into (a|(typeof(a)(b)) == 0 when the types don't match)
2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
PR middle-end/35691
* match.pd: Add following two patterns:
(x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
(x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
testsuite/
* gcc.dg/pr35691-1.c: New test-case.
* gcc.dg/pr35691-4.c: Likewise.
From-SVN: r241915
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions