On 04/21/14 10:57, David Malcolm wrote:
gcc/
        * cgraph.h (cgraph_edge::call_stmt): Strengthen field from plain
        gimple to a gimple_call.
        (cgraph_create_edge): Require a gimple_call rather than a plain
        gimple.
        (cgraph_create_indirect_edge): Likewise.
        (cgraph_set_call_stmt): Likewise.
        (cgraph_clone_edge): Likewise.
        (cgraph_set_call_stmt_including_clones): Likewise.
        (cgraph_create_edge_including_clones): Likewise.

        * cgraph.c (cgraph_set_call_stmt): Require a gimple_call rather
        than a plain gimple.
        (cgraph_create_edge_1): Likewise.
        (cgraph_create_edge): Likewise.
        (cgraph_create_indirect_edge): Likewise.
        (cgraph_redirect_edge_call_stmt_to_callee): Strengthen decl
        of "new_stmt" from gimple to gimple_call.
        (cgraph_update_edges_for_call_stmt_node): Add checked casts to
        gimple_call.

        * cgraphbuild.c (build_cgraph_edges): Replace is_gimple_call
        with dyn_cast_gimple_call and new local "call_stmt".
        (rebuild_cgraph_edges): Likewise.

        * cgraphclones.c (cgraph_clone_edge): Require a gimple_call
        rather than a plain gimple.
        (cgraph_set_call_stmt_including_clones): Likewise.
        (cgraph_create_edge_including_clones): Likewise.

        * lto-streamer-in.c (fixup_call_stmt_edges_1): Add checked casts
        to gimple_call.

        * omp-low.c (simd_clone_adjust): Strengthen local "call" from
        gimple to gimple_call.

        * trans-mem.c (ipa_tm_insert_irr_call): Likewise for "g".
        (ipa_tm_insert_gettmclone_call): Likewise; also strengthen "g2"
        to gimple_assign.

        * tree-emutls.c (gen_emutls_addr): Strengthen local "x" from
        gimple to gimple_call.

        * tree-inline.c (copy_bb): Replace is_gimple_call with
        dyn_cast_gimple_call and new local "call_stmt".

        * value-prof.c (gimple_ic): Require and return a gimple_call,
        rather than a plain gimple.
        * value-prof.h (gimple_ic): Likewise.

OK once prereqs go in.
jeff

Reply via email to