[Bug middle-end/87188] Function pointer canonicalization optimized away

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 14 23:31:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188

--- Comment #25 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Fri Sep 14 23:26:12 2018
New Revision: 264336

URL: https://gcc.gnu.org/viewcvs?rev=264336&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:
    trunk/gcc/ChangeLog
    trunk/gcc/dojump.c
    trunk/gcc/expr.c
    trunk/gcc/fold-const.c
    trunk/gcc/match.pd


More information about the Gcc-bugs mailing list