gcc/ChangeLog: .
- ChangeLog.gimple-classes: New.
- coretypes.h (struct gcond): Add forward decl. (struct gdebug): Likewise. (struct ggoto): Likewise. (struct glabel): Likewise. (struct gswitch): Likewise. (struct gassign): Likewise. (struct gasm): Likewise. (struct gcall): Likewise. (struct gtransaction): Likewise. (struct greturn): Likewise. (struct gbind): Likewise. (struct gcatch): Likewise. (struct geh_filter): Likewise. (struct geh_mnt): Likewise. (struct geh_else): Likewise. (struct gresx): Likewise. (struct geh_dispatch): Likewise. (struct gphi): Likewise. (struct gtry): Likewise. (struct gomp_atomic_load): Likewise. (struct gomp_atomic_store): Likewise. (struct gomp_continue): Likewise. (struct gomp_critical): Likewise. (struct gomp_for): Likewise. (struct gomp_parallel): Likewise. (struct gomp_task): Likewise. (struct gomp_sections): Likewise. (struct gomp_single): Likewise. (struct gomp_target): Likewise. (struct gomp_teams): Likewise.
- doc/gimple.texi (Class hierarchy of GIMPLE statements): Update for renaming of gimple subclasses.
- gdbhooks.py: Update.
- gimple-iterator.c (gsi_for_phi): New. (gsi_start_phis): Strengthen return type from gimple_stmt_iterator to gphi_iterator.
- gimple-iterator.h (struct gphi_iterator): New subclass of gimple_stmt_iterator. (gsi_for_phi): New prototype. (gsi_start_phis): Strengthen return type from gimple_stmt_iterator to gphi_iterator. (gsi_next_nonvirtual_phi): Strengthen param from gimple_stmt_iterator * to gphi_iterator *, and local "phi" from gimple to gphi *.
- gsstruct.def: Update for renamings of classes.
- gimple.c (gimple_build_return): Strengthen return type from gimple to greturn *. (gimple_call_reset_alias_info): Strengthen param to gcall *. (gimple_build_call_1): Strengthen return type from gimple to gcall *. (gimple_build_call_vec): Likewise. (gimple_build_call): Likewise. (gimple_build_call_valist): Likewise. (gimple_build_call_internal_1): Likewise. (gimple_build_call_internal): Likewise. (gimple_build_call_internal_vec): Likewise. (gimple_build_call_from_tree): Likewise. (gimple_build_assign_stat): Strengthen return type from gimple to gassign *. (gimple_build_assign_with_ops): Likewise. (gimple_build_assign_with_ops): Likewise. (gimple_build_cond): Strengthen return type from gimple to gcond *. (gimple_build_cond_from_tree): Likewise. (gimple_cond_set_condition_from_tree): Require a gcond *. (gimple_build_label): Strengthen return type from gimple to glabel *. (gimple_build_goto): Strengthen return type from gimple to ggoto *. (gimple_build_bind): Strengthen return type from gimple to gbind *. (gimple_build_asm_1): Strengthen return type from gimple to gasm *. (gimple_build_asm_vec): Likewise. (gimple_build_catch): Strengthen return type from gimple to gcatch *. (gimple_build_eh_filter): Strengthen return type from gimple to geh_filter *. (gimple_build_eh_must_not_throw): Strengthen return type from gimple to geh_mnt *. (gimple_build_eh_else): Strengthen return type from gimple to geh_else *. (gimple_build_try): Update for renaming of gimple_statement_try to gtry. (gimple_build_resx): Strengthen return type from gimple to gresx *. (gimple_build_switch_nlabels): Strengthen return type from gimple to gswitch *. (gimple_build_switch): Likewise. (gimple_build_eh_dispatch): Strengthen return type from gimple to geh_dispatch *. (gimple_build_debug_bind_stat): Strengthen return type from gimple to gdebug *. (gimple_build_debug_source_bind_stat): Strengthen return type from gimple to gdebug *. (gimple_build_omp_critical): Strengthen return type from gimple to gomp_critical *. (gimple_build_omp_for): Strengthen return type from gimple to gomp_for *. (gimple_build_omp_parallel): Strengthen return type from gimple to gomp_parallel *. (gimple_build_omp_task): Strengthen return type from gimple to gomp_task *. (gimple_build_omp_continue): Strengthen return type from gimple to gomp_continue *. (gimple_build_omp_sections): Strengthen return type from gimple to gomp_sections *. (gimple_build_omp_single): Strengthen return type from gimple to gomp_single *. (gimple_build_omp_target): Strengthen return type from gimple to gomp_target *. (gimple_build_omp_teams): Strengthen return type from gimple to gomp_teams *. (gimple_build_omp_atomic_load): Strengthen return type from gimple to gomp_atomic_load *. (gimple_build_omp_atomic_store): Strengthen return type from gimple to gomp_atomic_store *. (gimple_build_transaction): Strengthen return type from gimple to gtransaction *. (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast. (gimple_call_fnspec): Require a const gcall *. (gimple_call_arg_flags): Likewise. (gimple_call_return_flags): Likewise. (gimple_set_bb): Add a checked cast. (gimple_copy): Within the cases, add locals of the appropriate subclass and use in place of "stmt" and "copy" for typesafety. (gimple_has_side_effects): Add a checked cast. (gimple_could_trap_p_1): Likewise. (gimple_call_copy_skip_args): Require a gcall *, and return one. (gimple_asm_clobbers_memory_p): Require a const gasm *. (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a dyn_cast, introducing local "return_stmt" and using ti in place of "stmt".
- gimple.h (gimple_vec): Eliminate this typedef. (struct gimple_statement_call): Rename to... (struct gcall): ...this. (struct gimple_statement_bind): Rename to... (struct gbind): ...this. (struct gimple_statement_catch): Rename to... (struct gcatch): ...this. (struct gimple_statement_eh_filter): Rename to... (struct geh_filter): ...this. (struct gimple_statement_eh_else): Rename to... (struct geh_else): ...this. (struct gimple_statement_eh_mnt): Rename to... (struct geh_mnt): ...this. (struct gimple_statement_phi): Rename to... (struct gphi): ...this. (struct gimple_statement_resx): Rename to... (struct gresx): ...this. (struct gimple_statement_eh_dispatch): Rename to... (struct geh_dispatch): ...this. (struct gimple_statement_try): Rename to... (struct gtry): ...this. (struct gimple_statement_asm): Rename to... (struct gasm): ...this. (struct gimple_statement_omp_critical): Rename to... (struct gomp_critical): ...this. (struct gimple_statement_omp_for): Rename to... (struct gomp_for): ...this. (struct gimple_statement_omp_parallel): Rename to... (struct gomp_parallel): ...this. (struct gimple_statement_omp_target): Rename to... (struct gomp_target): ...this. (struct gimple_statement_omp_task): Rename to... (struct gomp_task): ...this. (struct gimple_statement_omp_sections): Rename to... (struct gomp_sections): ...this. (struct gimple_statement_omp_continue): Rename to... (struct gomp_continue): ...this. (struct gimple_statement_omp_single): Rename to... (struct gomp_single): ...this. (struct gimple_statement_omp_teams): Rename to... (struct gomp_teams): ...this. (struct gimple_statement_omp_atomic_load): Rename to... (struct gomp_atomic_load): ...this. (struct gimple_statement_omp_atomic_store :): Rename to... (struct gomp_atomic_store :): ...this. (struct gimple_statement_transaction): Rename to... (struct gtransaction): ...this. (struct gcond): New subclass. (struct gdebug): New subclass. (struct ggoto): New subclass. (struct glabel): New subclass. (struct gswitch): New subclass. (struct gassign): New subclass. (struct greturn): New subclass. (is_a_helper
- asan.c: Use gimple subclasses.
- auto-profile.c: Likewise.
- builtins.c: Likewise.
- builtins.h: Likewise.
- cfgexpand.c: Likewise.
- cfgloop.c: Likewise.
- cfgloopmanip.c: Likewise.
- cgraph.c: Likewise.
- cgraph.h: Likewise.
- cgraphbuild.c: Likewise.
- cgraphclones.c: Likewise.
- cgraphunit.c: Likewise.
- expr.h: Likewise.
- gimple-builder.c: Likewise.
- gimple-builder.h: Likewise.
- gimple-fold.c: Likewise.
- gimple-low.c: Likewise.
- gimple-pretty-print.c: Likewise.
- gimple-ssa-isolate-paths.c: Likewise.
- gimple-ssa-strength-reduction.c: Likewise.
- gimple-streamer-in.c: Likewise.
- gimple-streamer-out.c: Likewise.
- gimple-walk.c: Likewise.
- gimplify-me.c: Likewise.
- gimplify.c: Likewise.
- gimplify.h: Likewise.
- graphite-scop-detection.c: Likewise.
- graphite-sese-to-poly.c: Likewise.
- internal-fn.c: Likewise.
- internal-fn.def:: Likewise.
- internal-fn.h: Likewise.
- ipa-icf-gimple.c: Likewise.
- ipa-icf-gimple.h: Likewise.
- ipa-icf.c: Likewise.
- ipa-inline-analysis.c: Likewise.
- ipa-prop.c: Likewise.
- ipa-prop.h: Likewise.
- ipa-pure-const.c: Likewise.
- ipa-split.c: Likewise.
- lto-streamer-in.c: Likewise.
- lto-streamer-out.c: Likewise.
- omp-low.c: Likewise.
- predict.c: Likewise.
- sanopt.c: Likewise.
- sese.c: Likewise.
- ssa-iterators.h: Likewise.
- stmt.c: Likewise.
- trans-mem.c: Likewise.
- tree-call-cdce.c: Likewise.
- tree-cfg.c: Likewise.
- tree-cfg.h: Likewise.
- tree-cfgcleanup.c: Likewise.
- tree-chkp.c: Likewise.
- tree-chkp.h: Likewise.
- tree-complex.c: Likewise.
- tree-data-ref.c: Likewise.
- tree-dfa.c: Likewise.
- tree-eh.c: Likewise.
- tree-eh.h: Likewise.
- tree-emutls.c: Likewise.
- tree-if-conv.c: Likewise.
- tree-inline.c: Likewise.
- tree-inline.h: Likewise.
- tree-into-ssa.c: Likewise.
- tree-into-ssa.h: Likewise.
- tree-loop-distribution.c: Likewise.
- tree-nrv.c: Likewise.
- tree-object-size.c: Likewise.
- tree-outof-ssa.c: Likewise.
- tree-parloops.c: Likewise.
- tree-phinodes.c: Likewise.
- tree-phinodes.h: Likewise.
- tree-predcom.c: Likewise.
- tree-profile.c: Likewise.
- tree-scalar-evolution.c: Likewise.
- tree-scalar-evolution.h
- tree-sra.cn_function):
- tree-ssa-alias.c: Likewise.
- tree-ssa-alias.h: Likewise.
- tree-ssa-ccp.c: Likewise.
- tree-ssa-coalesce.c: Likewise.
- tree-ssa-copy.c: Likewise.
- tree-ssa-copyrename.c: Likewise.
- tree-ssa-dce.c: Likewise.
- tree-ssa-dom.c: Likewise.
- tree-ssa-forwprop.c: Likewise.
- tree-ssa-ifcombine.c: Likewise.
- tree-ssa-live.c: Likewise.
- tree-ssa-loop-im.c: Likewise.
- tree-ssa-loop-ivcanon.c: Likewise.
- tree-ssa-loop-ivopts.c: Likewise.
- tree-ssa-loop-manip.c: Likewise.
- tree-ssa-loop-niter.c: Likewise.
- tree-ssa-loop-prefetch.c: Likewise.
- tree-ssa-loop-unswitch.c: Likewise.
- tree-ssa-math-opts.c: Likewise.
- tree-ssa-operands.c: Likewise.
- tree-ssa-phiopt.c: Likewise.
- tree-ssa-phiprop.c: Likewise.
- tree-ssa-pre.c: Likewise.
- tree-ssa-propagate.c: Likewise.
- tree-ssa-propagate.h: Likewise.
- tree-ssa-reassoc.c: Likewise.
- tree-ssa-sccvn.c: Likewise.
- tree-ssa-sccvn.h: Likewise.
- tree-ssa-sink.c: Likewise.
- tree-ssa-strlen.c
- tree-ssa-structalias.c
- tree-ssa-tail-merge.c: Likewise.
- tree-ssa-ter.c: Likewise.
- tree-ssa-threadedge.c: Likewise.
- tree-ssa-threadedge.h: Likewise.
- tree-ssa-threadupdate.c: Likewise.
- tree-ssa-uncprop.c: Likewise.
- tree-ssa-uninit.c: Likewise.
- tree-ssa.c: Likewise.
- tree-stdarg.c: Likewise.
- tree-switch-conversion.c: Likewise.
- tree-tailcall.c: Likewise.
- tree-vect-data-refs.c: Likewise.
- tree-vect-generic.c: Likewise.
- tree-vect-loop-manip.c: Likewise.
- tree-vect-loop.c: Likewise.
- tree-vect-patterns.c: Likewise.
- tree-vect-slp.c: Likewise.
- tree-vect-stmts.c: Likewise.
- tree-vectorizer.h: Likewise.
- tree-vrp.c: Likewise.
- tree.c: Likewise.
- ubsan.c: Likewise.
- value-prof.c: Likewise.
- value-prof.h: Likewise.
- vtable-verify.c: Likewise.
gcc/c-family/ChangeLog: .
- ChangeLog.gimple-classes: New.
- c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" from being just a vec
gcc/java/ChangeLog: .
- ChangeLog.gimple-classes: New.
- java-gimplify.c (java_gimplify_block): Strengthen local "outer" from gimple to gbind *.
1a91d91 Merger of git branch "gimple-classes-v2-option-3"
gcc/ChangeLog | 723 +++++
gcc/ChangeLog.gimple-classes | 4735 +++++++++++++++++++++++++++++++++
gcc/asan.c | 18 +-
gcc/auto-profile.c | 43 +-
gcc/builtins.c | 4 +-
gcc/builtins.h | 4 +-
gcc/c-family/ChangeLog | 7 +
gcc/c-family/ChangeLog.gimple-classes | 20 +
gcc/c-family/c-gimplify.c | 4 +-
gcc/cfgexpand.c | 58 +-
gcc/cfgloop.c | 6 +-
gcc/cfgloopmanip.c | 4 +-
gcc/cgraph.c | 25 +-
gcc/cgraph.h | 16 +-
gcc/cgraphbuild.c | 29 +-
gcc/cgraphclones.c | 7 +-
gcc/cgraphunit.c | 6 +-
gcc/coretypes.h | 35 +
gcc/doc/gimple.texi | 79 +-
gcc/expr.h | 2 +-
gcc/gdbhooks.py | 19 +-
gcc/gimple-builder.c | 16 +-
gcc/gimple-builder.h | 16 +-
gcc/gimple-fold.c | 52 +-
gcc/gimple-iterator.c | 25 +-
gcc/gimple-iterator.h | 20 +-
gcc/gimple-low.c | 39 +-
gcc/gimple-pretty-print.c | 181 +-
gcc/gimple-ssa-isolate-paths.c | 22 +-
gcc/gimple-ssa-strength-reduction.c | 35 +-
gcc/gimple-streamer-in.c | 34 +-
gcc/gimple-streamer-out.c | 46 +-
gcc/gimple-walk.c | 168 +-
gcc/gimple.c | 349 +--
gcc/gimple.h | 1380 +++++-----
gcc/gimplify-me.c | 29 +-
gcc/gimplify.c | 147 +-
gcc/gimplify.h | 6 +-
gcc/graphite-scop-detection.c | 22 +-
gcc/graphite-sese-to-poly.c | 140 +-
gcc/gsstruct.def | 34 +-
gcc/internal-fn.c | 48 +-
gcc/internal-fn.def | 2 +-
gcc/internal-fn.h | 2 +-
gcc/ipa-icf-gimple.c | 42 +-
gcc/ipa-icf-gimple.h | 23 +-
gcc/ipa-icf.c | 8 +-
gcc/ipa-inline-analysis.c | 18 +-
gcc/ipa-prop.c | 33 +-
gcc/ipa-prop.h | 2 +-
gcc/ipa-pure-const.c | 10 +-
gcc/ipa-split.c | 110 +-
gcc/java/ChangeLog | 7 +
gcc/java/ChangeLog.gimple-classes | 20 +
gcc/java/java-gimplify.c | 2 +-
gcc/lto-streamer-in.c | 4 +-
gcc/lto-streamer-out.c | 15 +-
gcc/omp-low.c | 462 ++--
gcc/predict.c | 55 +-
gcc/sanopt.c | 7 +-
gcc/sese.c | 13 +-
gcc/ssa-iterators.h | 20 +-
gcc/stmt.c | 4 +-
gcc/trans-mem.c | 132 +-
gcc/tree-call-cdce.c | 29 +-
gcc/tree-cfg.c | 407 +--
gcc/tree-cfg.h | 4 +-
gcc/tree-cfgcleanup.c | 44 +-
gcc/tree-chkp.c | 76 +-
gcc/tree-chkp.h | 2 +-
gcc/tree-complex.c | 39 +-
gcc/tree-data-ref.c | 3 +-
gcc/tree-dfa.c | 12 +-
gcc/tree-eh.c | 279 +-
gcc/tree-eh.h | 6 +-
gcc/tree-emutls.c | 13 +-
gcc/tree-if-conv.c | 15 +-
gcc/tree-inline.c | 244 +-
gcc/tree-inline.h | 4 +-
gcc/tree-into-ssa.c | 58 +-
gcc/tree-into-ssa.h | 2 +-
gcc/tree-loop-distribution.c | 55 +-
gcc/tree-nested.c | 52 +-
gcc/tree-nrv.c | 11 +-
gcc/tree-object-size.c | 20 +-
gcc/tree-outof-ssa.c | 23 +-
gcc/tree-parloops.c | 101 +-
gcc/tree-phinodes.c | 52 +-
gcc/tree-phinodes.h | 8 +-
gcc/tree-predcom.c | 30 +-
gcc/tree-profile.c | 19 +-
gcc/tree-scalar-evolution.c | 87 +-
gcc/tree-scalar-evolution.h | 2 +-
gcc/tree-sra.c | 124 +-
gcc/tree-ssa-alias.c | 16 +-
gcc/tree-ssa-alias.h | 4 +-
gcc/tree-ssa-ccp.c | 30 +-
gcc/tree-ssa-coalesce.c | 29 +-
gcc/tree-ssa-copy.c | 12 +-
gcc/tree-ssa-copyrename.c | 12 +-
gcc/tree-ssa-dce.c | 37 +-
gcc/tree-ssa-dom.c | 76 +-
gcc/tree-ssa-forwprop.c | 22 +-
gcc/tree-ssa-ifcombine.c | 27 +-
gcc/tree-ssa-live.c | 16 +-
gcc/tree-ssa-loop-im.c | 65 +-
gcc/tree-ssa-loop-ivcanon.c | 41 +-
gcc/tree-ssa-loop-ivopts.c | 44 +-
gcc/tree-ssa-loop-manip.c | 64 +-
gcc/tree-ssa-loop-niter.c | 25 +-
gcc/tree-ssa-loop-prefetch.c | 4 +-
gcc/tree-ssa-loop-unswitch.c | 19 +-
gcc/tree-ssa-math-opts.c | 36 +-
gcc/tree-ssa-operands.c | 8 +-
gcc/tree-ssa-phiopt.c | 38 +-
gcc/tree-ssa-phiprop.c | 12 +-
gcc/tree-ssa-pre.c | 61 +-
gcc/tree-ssa-propagate.c | 36 +-
gcc/tree-ssa-propagate.h | 2 +-
gcc/tree-ssa-reassoc.c | 40 +-
gcc/tree-ssa-sccvn.c | 29 +-
gcc/tree-ssa-sccvn.h | 2 +-
gcc/tree-ssa-sink.c | 8 +-
gcc/tree-ssa-strlen.c | 13 +-
gcc/tree-ssa-structalias.c | 86 +-
gcc/tree-ssa-tail-merge.c | 32 +-
gcc/tree-ssa-ter.c | 4 +-
gcc/tree-ssa-threadedge.c | 19 +-
gcc/tree-ssa-threadedge.h | 2 +-
gcc/tree-ssa-threadupdate.c | 22 +-
gcc/tree-ssa-uncprop.c | 7 +-
gcc/tree-ssa-uninit.c | 74 +-
gcc/tree-ssa.c | 56 +-
gcc/tree-stdarg.c | 19 +-
gcc/tree-switch-conversion.c | 57 +-
gcc/tree-tailcall.c | 45 +-
gcc/tree-vect-data-refs.c | 7 +-
gcc/tree-vect-generic.c | 13 +-
gcc/tree-vect-loop-manip.c | 74 +-
gcc/tree-vect-loop.c | 61 +-
gcc/tree-vect-patterns.c | 2 +-
gcc/tree-vect-slp.c | 15 +-
gcc/tree-vect-stmts.c | 22 +-
gcc/tree-vectorizer.h | 2 +-
gcc/tree-vrp.c | 100 +-
gcc/tree.c | 5 +-
gcc/ubsan.c | 4 +-
gcc/value-prof.c | 92 +-
gcc/value-prof.h | 5 +-
gcc/vtable-verify.c | 2 +-
150 files changed, 9602 insertions(+), 3518 deletions(-)
Upstream: gcc.gnu.org