https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85446
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 21:18:32 2018 New Revision: 261958 URL: https://gcc.gnu.org/viewcvs?rev=261958&root=gcc&view=rev Log: Backported from mainline 2018-04-19 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/85446 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Require the integral and pointer types to have the same precision. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/match.pd