re PR middle-end/87188 (Function pointer canonicalization optimized away)
authorJohn David Anglin <danglin@gcc.gnu.org>
Fri, 14 Sep 2018 23:26:12 +0000 (23:26 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 14 Sep 2018 23:26:12 +0000 (23:26 +0000)
commitf3743e2e32432a1d961c81097db3f755fd2dae76
tree408d2c467782ee84c4590e65b055f6b0cb4fbc1a
parent07f879058339c496273c9960562c3fdad317001a
re PR middle-end/87188 (Function pointer canonicalization optimized away)

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.

From-SVN: r264336
gcc/ChangeLog
gcc/dojump.c
gcc/expr.c
gcc/fold-const.c
gcc/match.pd