https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188
--- Comment #26 from John David Anglin <danglin at gcc dot gnu.org> --- Author: danglin Date: Fri Sep 14 23:30:32 2018 New Revision: 264337 URL: https://gcc.gnu.org/viewcvs?rev=264337&root=gcc&view=rev Log: PR middle-end/87188 * dojump.c (do_compare_and_jump): Canonicalize function pointers when one operand is a function pointer. Use POINTER_TYPE_P and FUNC_OR_METHOD_TYPE_P. * expr.c (do_store_flag): Use POINTER_TYPE_P and FUNC_OR_METHOD_TYPE_P. * fold-const.c (build_range_check): Likewise. * match.pd (simple_comparison): Likewise. Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/dojump.c branches/gcc-8-branch/gcc/expr.c branches/gcc-8-branch/gcc/fold-const.c branches/gcc-8-branch/gcc/match.pd