From 2eb79bbbb3c1e5310d20501d3fa03de04cd392b0 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Tue, 1 Jun 2010 22:00:56 +0000 Subject: [PATCH] gimplify.c: Do not include except.h and optabs.h. * gimplify.c: Do not include except.h and optabs.h. (gimplify_body): Do not initialize RTL profiling. * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h, langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h. * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h, output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and langhooks.h. * tree-pretty-print.h: Include pretty-print.h. * gimple-pretty-print.h: Include pretty-print.h. * tree-pretty-print.c: Do not include diagnostic.h. * tree-vrp.c: Likewise. * tree-tailcall.c: Likewise * tree-scalar-evolution.c: Likewise * tree-ssa-dse.c: Likewise * tree-chrec.c: Likewise * tree-ssa-sccvn.c: Likewise * tree-ssa-copyrename.c: Likewise * tree-nomudflap.c: Likewise * tree-call-cdce.c: Likewise * tree-stdarg.c: Likewise * tree-ssa-math-opts.c: Likewise * tree-nrv.c: Likewise * tree-ssa-sink.c: Likewise * tree-browser.c: Likewise * tree-ssa-loop-ivcanon.c: Likewise * tree-ssa-loop.c: Likewise * tree-parloops.c: Likewise * tree-ssa-address.c: Likewise * tree-ssa-ifcombine.c: Likewise * tree-if-conv.c: Likewise * tree-data-ref.c: Likewise * tree-affine.c: Likewise * tree-ssa-phiopt.c: Likewise * tree-ssa-coalesce.c: Likewise * tree-ssa-pre.c: Likewise * tree-ssa-live.c: Likewise * tree-predcom.c: Likewise * tree-ssa-forwprop.c: Likewise * tree-ssa-dce.c: Likewise * tree-ssa-ter.c: Likewise * tree-ssa-loop-prefetch.c: Likewise * tree-optimize.c: Likewise * tree-ssa-phiprop.c: Likewise * tree-object-size.c: Likewise * tree-outof-ssa.c: Likewise * tree-ssa-structalias.c: Likewise * tree-switch-conversion.c: Likewise * tree-ssa-reassoc.c: Likewise * tree-ssa-operands.c: Likewise * tree-vectorizer.c: Likewise * tree-vect-data-refs.c: Likewise * tree-vect-generic.c: Likewise * tree-vect-stmts.c: Likewise * tree-vect-patterns.c: Likewise * tree-vect-slp.c: Likewise * tree-vect-loop.c: Likewise * tree-ssa-loop-ivopts.c: Likewise * tree-ssa-loop-im.c: Likewise * tree-ssa-loop-niter.c: Likewise * tree-ssa-loop-unswitch.c: Likewise * tree-ssa-loop-manip.c: Likewise * tree-ssa-loop-ch.c: Likewise * tree-dump.c: Likewise * tree-complex.c: Likewise * tree-into-ssa.c: Do not include diagnostic.h and expr.h. * tree-ssa-uninit.c: Likewise * tree-ssa-threadupdate.c: Likewise * tree-ssa-uncprop.c: Likewise * tree-ssa-ccp.c: Likewise * tree-ssa-dom.c: Likewise * tree-ssa-propagate.c: Likewise * tree-ssa-alias.c: Likewise * tree-dfa.c: Likewise * tree-cfgcleanup.c: Likewise * tree-sra.c: Likewise * tree-ssa-copy.c: Likewise * tree-ssa.c: Likewise * tree-profile.c: Likewise * tree-cfg.c: Likewise * tree-ssa-threadedge.c: Likewise * tree-vect-loop-manip.c: Likewise * tree-inline.c: Do not include diagnostic.h and expr.h. Include rtl.h. (copy_decl_for_dup_finish): Do not use NULL_RTX. * tree-loop-linear.c: Do not include diagnostic.h, expr.h, and optabs.h. * tree-loop-distribution.c: Likewise. From-SVN: r160125 --- gcc/ChangeLog | 95 ++++++++++++++++++++++++++++++++++++++++++++ gcc/gimple-fold.c | 10 ----- gcc/gimple-low.c | 8 ---- gcc/gimple-pretty-print.h | 3 ++ gcc/gimplify.c | 15 ++----- gcc/tree-affine.c | 1 - gcc/tree-browser.c | 1 - gcc/tree-call-cdce.c | 1 - gcc/tree-cfg.c | 2 - gcc/tree-cfgcleanup.c | 2 - gcc/tree-chrec.c | 1 - gcc/tree-complex.c | 1 - gcc/tree-data-ref.c | 3 -- gcc/tree-dfa.c | 2 - gcc/tree-dump.c | 1 - gcc/tree-if-conv.c | 1 - gcc/tree-inline.c | 6 +-- gcc/tree-into-ssa.c | 2 - gcc/tree-loop-distribution.c | 3 -- gcc/tree-loop-linear.c | 3 -- gcc/tree-nested.c | 2 +- gcc/tree-nomudflap.c | 1 - gcc/tree-nrv.c | 1 - gcc/tree-object-size.c | 1 - gcc/tree-optimize.c | 2 - gcc/tree-outof-ssa.c | 6 ++- gcc/tree-parloops.c | 1 - gcc/tree-predcom.c | 1 - gcc/tree-pretty-print.c | 1 - gcc/tree-pretty-print.h | 2 + gcc/tree-profile.c | 1 - gcc/tree-scalar-evolution.c | 1 - gcc/tree-sra.c | 2 - gcc/tree-ssa-address.c | 1 - gcc/tree-ssa-alias.c | 2 - gcc/tree-ssa-ccp.c | 2 - gcc/tree-ssa-coalesce.c | 1 - gcc/tree-ssa-copy.c | 2 - gcc/tree-ssa-copyrename.c | 1 - gcc/tree-ssa-dce.c | 1 - gcc/tree-ssa-dom.c | 2 - gcc/tree-ssa-dse.c | 1 - gcc/tree-ssa-forwprop.c | 1 - gcc/tree-ssa-ifcombine.c | 1 - gcc/tree-ssa-live.c | 1 - gcc/tree-ssa-loop-ch.c | 1 - gcc/tree-ssa-loop-im.c | 3 +- gcc/tree-ssa-loop-ivcanon.c | 1 - gcc/tree-ssa-loop-ivopts.c | 7 +++- gcc/tree-ssa-loop-manip.c | 1 - gcc/tree-ssa-loop-niter.c | 1 - gcc/tree-ssa-loop-prefetch.c | 7 +++- gcc/tree-ssa-loop-unswitch.c | 1 - gcc/tree-ssa-loop.c | 1 - gcc/tree-ssa-math-opts.c | 1 - gcc/tree-ssa-operands.c | 1 - gcc/tree-ssa-phiopt.c | 1 - gcc/tree-ssa-phiprop.c | 1 - gcc/tree-ssa-pre.c | 1 - gcc/tree-ssa-propagate.c | 2 - gcc/tree-ssa-reassoc.c | 1 - gcc/tree-ssa-sccvn.c | 1 - gcc/tree-ssa-sink.c | 1 - gcc/tree-ssa-structalias.c | 1 - gcc/tree-ssa-ter.c | 1 - gcc/tree-ssa-threadedge.c | 2 - gcc/tree-ssa-threadupdate.c | 2 - gcc/tree-ssa-uncprop.c | 2 - gcc/tree-ssa-uninit.c | 2 - gcc/tree-ssa.c | 2 - gcc/tree-stdarg.c | 1 - gcc/tree-switch-conversion.c | 1 - gcc/tree-tailcall.c | 1 - gcc/tree-vect-data-refs.c | 6 +-- gcc/tree-vect-generic.c | 8 ++-- gcc/tree-vect-loop-manip.c | 2 - gcc/tree-vect-loop.c | 1 - gcc/tree-vect-patterns.c | 1 - gcc/tree-vect-slp.c | 1 - gcc/tree-vect-stmts.c | 1 - gcc/tree-vectorizer.c | 1 - gcc/tree-vrp.c | 1 - 82 files changed, 129 insertions(+), 140 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a87a41d..ffe0503 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,98 @@ +2010-06-01 Steven Bosscher + + * gimplify.c: Do not include except.h and optabs.h. + (gimplify_body): Do not initialize RTL profiling. + * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h, + langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h. + * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h, + output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and + langhooks.h. + + * tree-pretty-print.h: Include pretty-print.h. + * gimple-pretty-print.h: Include pretty-print.h. + + * tree-pretty-print.c: Do not include diagnostic.h. + * tree-vrp.c: Likewise. + * tree-tailcall.c: Likewise + * tree-scalar-evolution.c: Likewise + * tree-ssa-dse.c: Likewise + * tree-chrec.c: Likewise + * tree-ssa-sccvn.c: Likewise + * tree-ssa-copyrename.c: Likewise + * tree-nomudflap.c: Likewise + * tree-call-cdce.c: Likewise + * tree-stdarg.c: Likewise + * tree-ssa-math-opts.c: Likewise + * tree-nrv.c: Likewise + * tree-ssa-sink.c: Likewise + * tree-browser.c: Likewise + * tree-ssa-loop-ivcanon.c: Likewise + * tree-ssa-loop.c: Likewise + * tree-parloops.c: Likewise + * tree-ssa-address.c: Likewise + * tree-ssa-ifcombine.c: Likewise + * tree-if-conv.c: Likewise + * tree-data-ref.c: Likewise + * tree-affine.c: Likewise + * tree-ssa-phiopt.c: Likewise + * tree-ssa-coalesce.c: Likewise + * tree-ssa-pre.c: Likewise + * tree-ssa-live.c: Likewise + * tree-predcom.c: Likewise + * tree-ssa-forwprop.c: Likewise + * tree-ssa-dce.c: Likewise + * tree-ssa-ter.c: Likewise + * tree-ssa-loop-prefetch.c: Likewise + * tree-optimize.c: Likewise + * tree-ssa-phiprop.c: Likewise + * tree-object-size.c: Likewise + * tree-outof-ssa.c: Likewise + * tree-ssa-structalias.c: Likewise + * tree-switch-conversion.c: Likewise + * tree-ssa-reassoc.c: Likewise + * tree-ssa-operands.c: Likewise + * tree-vectorizer.c: Likewise + * tree-vect-data-refs.c: Likewise + * tree-vect-generic.c: Likewise + * tree-vect-stmts.c: Likewise + * tree-vect-patterns.c: Likewise + * tree-vect-slp.c: Likewise + * tree-vect-loop.c: Likewise + * tree-ssa-loop-ivopts.c: Likewise + * tree-ssa-loop-im.c: Likewise + * tree-ssa-loop-niter.c: Likewise + * tree-ssa-loop-unswitch.c: Likewise + * tree-ssa-loop-manip.c: Likewise + * tree-ssa-loop-ch.c: Likewise + * tree-dump.c: Likewise + * tree-complex.c: Likewise + + * tree-into-ssa.c: Do not include diagnostic.h and expr.h. + * tree-ssa-uninit.c: Likewise + * tree-ssa-threadupdate.c: Likewise + * tree-ssa-uncprop.c: Likewise + * tree-ssa-ccp.c: Likewise + * tree-ssa-dom.c: Likewise + * tree-ssa-propagate.c: Likewise + * tree-ssa-alias.c: Likewise + * tree-dfa.c: Likewise + * tree-cfgcleanup.c: Likewise + * tree-sra.c: Likewise + * tree-ssa-copy.c: Likewise + * tree-ssa.c: Likewise + * tree-profile.c: Likewise + * tree-cfg.c: Likewise + * tree-ssa-threadedge.c: Likewise + * tree-vect-loop-manip.c: Likewise + + * tree-inline.c: Do not include diagnostic.h and expr.h. + Include rtl.h. + (copy_decl_for_dup_finish): Do not use NULL_RTX. + + * tree-loop-linear.c: Do not include diagnostic.h, expr.h, + and optabs.h. + * tree-loop-distribution.c: Likewise. + 2010-06-01 Jan Hubicka * ipa-pure-const.c (local_pure_const): Do NORETURN discovery. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index e74f524..2f64beb 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -24,21 +24,11 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "flags.h" -#include "rtl.h" -#include "tm_p.h" -#include "ggc.h" -#include "basic-block.h" -#include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" -#include "timevar.h" #include "tree-dump.h" #include "tree-flow.h" #include "tree-pass.h" #include "tree-ssa-propagate.h" -#include "value-prof.h" -#include "langhooks.h" #include "target.h" diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c index ae5a9fd..0823b89 100644 --- a/gcc/gimple-low.c +++ b/gcc/gimple-low.c @@ -24,20 +24,12 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "tree.h" -#include "rtl.h" #include "gimple.h" #include "tree-iterator.h" #include "tree-inline.h" -#include "diagnostic.h" -#include "langhooks.h" -#include "langhooks-def.h" #include "tree-flow.h" -#include "timevar.h" -#include "except.h" -#include "hashtab.h" #include "flags.h" #include "function.h" -#include "expr.h" #include "toplev.h" #include "tree-pass.h" diff --git a/gcc/gimple-pretty-print.h b/gcc/gimple-pretty-print.h index 4d2fd4bb..b7c525d 100644 --- a/gcc/gimple-pretty-print.h +++ b/gcc/gimple-pretty-print.h @@ -22,6 +22,9 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_GIMPLE_PRETTY_PRINT_H #define GCC_GIMPLE_PRETTY_PRINT_H +#include "pretty-print.h" +#include "tree-pretty-print.h" + /* In gimple-pretty-print.c */ extern void debug_gimple_stmt (gimple); extern void debug_gimple_seq (gimple_seq); diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 855098f..fd1f05f 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -26,33 +26,30 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "tree.h" -#include "rtl.h" #include "gimple.h" #include "tree-iterator.h" #include "tree-inline.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "langhooks.h" -#include "langhooks-def.h" #include "tree-flow.h" #include "cgraph.h" #include "timevar.h" -#include "except.h" #include "hashtab.h" #include "flags.h" #include "function.h" #include "output.h" -#include "expr.h" #include "ggc.h" #include "toplev.h" #include "target.h" -#include "optabs.h" #include "pointer-set.h" #include "splay-tree.h" #include "vec.h" #include "gimple.h" #include "tree-pass.h" +#include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name. */ +#include "expr.h" /* FIXME: for can_move_by_pieces + and STACK_CHECK_MAX_VAR_SIZE. */ enum gimplify_omp_var_data { @@ -1906,7 +1903,7 @@ gimplify_var_or_parm_decl (tree *expr_p) tree copy = copy_node (decl), block; lang_hooks.dup_lang_specific_decl (copy); - SET_DECL_RTL (copy, NULL_RTX); + SET_DECL_RTL (copy, 0); TREE_USED (copy) = 1; block = DECL_INITIAL (current_function_decl); TREE_CHAIN (copy) = BLOCK_VARS (block); @@ -7601,10 +7598,6 @@ gimplify_body (tree *body_p, tree fndecl, bool do_parms) timevar_push (TV_TREE_GIMPLIFY); - /* Initialize for optimize_insn_for_s{ize,peed}_p possibly called during - gimplification. */ - default_rtl_profile (); - gcc_assert (gimplify_ctxp == NULL); push_gimplify_context (&gctx); diff --git a/gcc/tree-affine.c b/gcc/tree-affine.c index 898e5c1..4d63de3 100644 --- a/gcc/tree-affine.c +++ b/gcc/tree-affine.c @@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tree.h" #include "output.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-dump.h" #include "pointer-set.h" diff --git a/gcc/tree-browser.c b/gcc/tree-browser.c index 0180d3a..a7c80c9 100644 --- a/gcc/tree-browser.c +++ b/gcc/tree-browser.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "tree-inline.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "hashtab.h" diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c index 6517742..7f0a3e2 100644 --- a/gcc/tree-call-cdce.c +++ b/gcc/tree-call-cdce.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "basic-block.h" #include "tree.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "tree-flow.h" #include "gimple.h" diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index a76a254..7db5192 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -29,10 +29,8 @@ along with GCC; see the file COPYING3. If not see #include "output.h" #include "flags.h" #include "function.h" -#include "expr.h" #include "ggc.h" #include "langhooks.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c index 10fc7ac..fc2141f 100644 --- a/gcc/tree-cfgcleanup.c +++ b/gcc/tree-cfgcleanup.c @@ -29,10 +29,8 @@ along with GCC; see the file COPYING3. If not see #include "toplev.h" #include "flags.h" #include "function.h" -#include "expr.h" #include "ggc.h" #include "langhooks.h" -#include "diagnostic.h" #include "tree-flow.h" #include "timevar.h" #include "tree-dump.h" diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index b0cc8b2..24e1944 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -30,7 +30,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "ggc.h" #include "tree.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "cfgloop.h" #include "tree-flow.h" diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index f1ef177..c491ac8 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -29,7 +29,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-iterator.h" #include "tree-pass.h" #include "tree-ssa-propagate.h" -#include "diagnostic.h" /* For each complex ssa name, a lattice value. We're interested in finding diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 41dae8d..c41cf51 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -81,10 +81,7 @@ along with GCC; see the file COPYING3. If not see #include "ggc.h" #include "flags.h" #include "tree.h" - -/* These RTL headers are needed for basic-block.h. */ #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 66b9090..ad03cd2 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -30,12 +30,10 @@ along with GCC; see the file COPYING3. If not see #include "basic-block.h" #include "output.h" #include "timevar.h" -#include "expr.h" #include "ggc.h" #include "langhooks.h" #include "flags.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-dump.h" #include "gimple.h" diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index 99e9c79..539a11d 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "splay-tree.h" -#include "diagnostic.h" #include "toplev.h" #include "tree-dump.h" #include "tree-pass.h" diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 268c171..f64623d 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -89,7 +89,6 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "timevar.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index fce6ae5..696cb00 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "toplev.h" #include "tree.h" #include "tree-inline.h" -#include "expr.h" #include "flags.h" #include "params.h" #include "input.h" @@ -41,7 +40,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-flow.h" #include "function.h" #include "tree-flow.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "except.h" #include "debug.h" @@ -52,6 +50,8 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "integrate.h" +#include "rtl.h" /* FIXME: For asm_str_count. */ + /* I'm not real happy about this, but we need to handle gimple and non-gimple trees. */ #include "gimple.h" @@ -4697,7 +4697,7 @@ copy_decl_for_dup_finish (copy_body_data *id, tree decl, tree copy) /* The new variable/label has no RTL, yet. */ if (CODE_CONTAINS_STRUCT (TREE_CODE (copy), TS_DECL_WRTL) && !TREE_STATIC (copy) && !DECL_EXTERNAL (copy)) - SET_DECL_RTL (copy, NULL_RTX); + SET_DECL_RTL (copy, 0); /* These args would always appear unused, if not for this. */ TREE_USED (copy) = 1; diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 5885add..a095ffd 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -29,9 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "langhooks.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "bitmap.h" diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 51c6677..5379709 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -48,13 +48,10 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" #include "cfgloop.h" -#include "expr.h" -#include "optabs.h" #include "tree-chrec.h" #include "tree-data-ref.h" #include "tree-scalar-evolution.h" diff --git a/gcc/tree-loop-linear.c b/gcc/tree-loop-linear.c index b771852..03759de 100644 --- a/gcc/tree-loop-linear.c +++ b/gcc/tree-loop-linear.c @@ -26,14 +26,11 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "obstack.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" #include "cfgloop.h" -#include "expr.h" -#include "optabs.h" #include "tree-chrec.h" #include "tree-data-ref.h" #include "tree-scalar-evolution.h" diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index cd1d770..cd15307 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -31,7 +31,7 @@ #include "tree-iterator.h" #include "tree-flow.h" #include "cgraph.h" -#include "expr.h" +#include "expr.h" /* FIXME: For STACK_SAVEAREA_MODE and SAVE_NONLOCAL. */ #include "langhooks.h" #include "pointer-set.h" diff --git a/gcc/tree-nomudflap.c b/gcc/tree-nomudflap.c index c035f76..4d54efd 100644 --- a/gcc/tree-nomudflap.c +++ b/gcc/tree-nomudflap.c @@ -27,7 +27,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "tree-inline.h" #include "gimple.h" -#include "diagnostic.h" #include "hashtab.h" #include "output.h" #include "langhooks.h" diff --git a/gcc/tree-nrv.c b/gcc/tree-nrv.c index 06b1351..31de9ba 100644 --- a/gcc/tree-nrv.c +++ b/gcc/tree-nrv.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "function.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-flow.h" #include "timevar.h" diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c index 35b3c44..5c7d6f5 100644 --- a/gcc/tree-object-size.c +++ b/gcc/tree-object-size.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "toplev.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 2631e14..ef60cde 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -27,8 +27,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" -#include "basic-block.h" #include "flags.h" #include "tree-flow.h" #include "tree-dump.h" diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 2639571..188cf0c 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "ggc.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "bitmap.h" @@ -35,9 +34,12 @@ along with GCC; see the file COPYING3. If not see #include "tree-dump.h" #include "tree-pass.h" #include "toplev.h" -#include "expr.h" #include "ssaexpand.h" +/* FIXME: A lot of code here deals with expanding to RTL. All that code + should be in cfgexpand.c. */ +#include "expr.h" + DEF_VEC_I(source_location); DEF_VEC_ALLOC_I(source_location,heap); diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index f38ae17..a17655e 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-flow.h" #include "cfgloop.h" #include "tree-data-ref.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-pass.h" diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c index dd7b6e2..de147e7 100644 --- a/gcc/tree-predcom.c +++ b/gcc/tree-predcom.c @@ -198,7 +198,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-scalar-evolution.h" #include "tree-chrec.h" #include "params.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-pass.h" diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ec10c14..bbdb38d 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "output.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "hashtab.h" #include "tree-flow.h" diff --git a/gcc/tree-pretty-print.h b/gcc/tree-pretty-print.h index ef4cd27f..8346dc4 100644 --- a/gcc/tree-pretty-print.h +++ b/gcc/tree-pretty-print.h @@ -23,6 +23,8 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_TREE_PRETTY_PRINT_H #define GCC_TREE_PRETTY_PRINT_H +#include "pretty-print.h" + #define pp_tree_identifier(PP, T) \ pp_base_tree_identifier (pp_base (PP), T) diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 2d3ec12..ca15001 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -32,7 +32,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "flags.h" #include "regs.h" -#include "expr.h" #include "function.h" #include "basic-block.h" #include "toplev.h" diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index d50eac9..bf564d8 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -261,7 +261,6 @@ along with GCC; see the file COPYING3. If not see #include "ggc.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index ae038f9..702187c 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -77,12 +77,10 @@ along with GCC; see the file COPYING3. If not see #include "alloc-pool.h" #include "tm.h" #include "tree.h" -#include "expr.h" #include "gimple.h" #include "cgraph.h" #include "tree-flow.h" #include "ipa-prop.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "statistics.h" #include "tree-dump.h" diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index f22b07d..3abfffe 100644 --- a/gcc/tree-ssa-address.c +++ b/gcc/tree-ssa-address.c @@ -29,7 +29,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index e510358..d3890c5 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -27,12 +27,10 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "timevar.h" -#include "expr.h" #include "ggc.h" #include "langhooks.h" #include "flags.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-dump.h" #include "gimple.h" diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 3a2b51c..44e284f 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -194,9 +194,7 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "timevar.h" diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c index 6c84360..2cdbceb 100644 --- a/gcc/tree-ssa-coalesce.c +++ b/gcc/tree-ssa-coalesce.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "flags.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "bitmap.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index afa9ace..7a4c099 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -27,9 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "timevar.h" diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c index c236de3..41d43a6 100644 --- a/gcc/tree-ssa-copyrename.c +++ b/gcc/tree-ssa-copyrename.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "basic-block.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "bitmap.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c index 59ccc40..ae44ef1 100644 --- a/gcc/tree-ssa-dce.c +++ b/gcc/tree-ssa-dce.c @@ -49,7 +49,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "basic-block.h" diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 761593b..25eb306 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -29,9 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "basic-block.h" #include "cfgloop.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "timevar.h" diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 858cd5e..be440c9 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -27,7 +27,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "timevar.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "tree-flow.h" #include "tree-pass.h" diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index f729506..eb6c831 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "timevar.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-flow.h" #include "tree-pass.h" diff --git a/gcc/tree-ssa-ifcombine.c b/gcc/tree-ssa-ifcombine.c index 8b8e0dd..a20f704 100644 --- a/gcc/tree-ssa-ifcombine.c +++ b/gcc/tree-ssa-ifcombine.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "basic-block.h" #include "timevar.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-flow.h" #include "tree-pass.h" diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index a311295..ca1b985 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -24,7 +24,6 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "tree.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "bitmap.h" diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index 48799d7..b81c196 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "tree-pass.h" diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index eb15382..ce8bc34 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -26,9 +26,8 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" -#include "gimple-pretty-print.h" #include "tree-pretty-print.h" +#include "gimple-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index 12383d7..0599a36 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -40,7 +40,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "tm_p.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index bda640f..094e9cc 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -70,14 +70,12 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" #include "cfgloop.h" -#include "expr.h" #include "tree-pass.h" #include "ggc.h" #include "insn-config.h" @@ -92,6 +90,11 @@ along with GCC; see the file COPYING3. If not see #include "tree-affine.h" #include "target.h" +/* FIXME: Expressions are expanded to RTL in this pass to determine the + cost of different addressing modes. This should be moved to a TBD + interface between the GIMPLE and RTL worlds. */ +#include "expr.h" + /* The infinite cost. */ #define INFTY 10000000 diff --git a/gcc/tree-ssa-loop-manip.c b/gcc/tree-ssa-loop-manip.c index 060ee26..219c71b 100644 --- a/gcc/tree-ssa-loop-manip.c +++ b/gcc/tree-ssa-loop-manip.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index d1c2e4c..279718e 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "intl.h" diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c index d63ede1..9ccf72e 100644 --- a/gcc/tree-ssa-loop-prefetch.c +++ b/gcc/tree-ssa-loop-prefetch.c @@ -25,13 +25,11 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" #include "cfgloop.h" -#include "expr.h" #include "tree-pass.h" #include "insn-config.h" #include "recog.h" @@ -43,6 +41,11 @@ along with GCC; see the file COPYING3. If not see #include "langhooks.h" #include "tree-inline.h" #include "tree-data-ref.h" + + +/* FIXME: Needed for optabs, but this should all be moved to a TBD interface + between the GIMPLE and RTL worlds. */ +#include "expr.h" #include "optabs.h" /* This pass inserts prefetch instructions to optimize cache usage during diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c index d0751e8..6bc40af 100644 --- a/gcc/tree-ssa-loop-unswitch.c +++ b/gcc/tree-ssa-loop-unswitch.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 1ecad36..344cfa8 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "tree-pass.h" diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index f89910b..9e67ea9 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -97,7 +97,6 @@ along with GCC; see the file COPYING3. If not see #include "alloc-pool.h" #include "basic-block.h" #include "target.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" /* FIXME: RTL headers have to be included here for optabs. */ diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index f822496..68be8fa 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "flags.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index d40aeb2..53ab31a 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "timevar.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-pass.h" #include "tree-dump.h" diff --git a/gcc/tree-ssa-phiprop.c b/gcc/tree-ssa-phiprop.c index a7bb011..dc1cb28 100644 --- a/gcc/tree-ssa-phiprop.c +++ b/gcc/tree-ssa-phiprop.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "timevar.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index ea4be54..3d186fd 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-inline.h" diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index d7243e9..879e0db 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -28,9 +28,7 @@ #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "timevar.h" #include "tree-dump.h" diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index add41f8..0911c56 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -24,7 +24,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-inline.h" diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 8dba41b..2408855 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-inline.h" diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index 40d3a29..ac31781 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "tree-inline.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index d70b36c..0c5b0d3 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -32,7 +32,6 @@ #include "tree.h" #include "tree-flow.h" #include "tree-inline.h" -#include "diagnostic.h" #include "toplev.h" #include "gimple.h" #include "hashtab.h" diff --git a/gcc/tree-ssa-ter.c b/gcc/tree-ssa-ter.c index a998db8..2f5b830 100644 --- a/gcc/tree-ssa-ter.c +++ b/gcc/tree-ssa-ter.c @@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "tree.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "bitmap.h" diff --git a/gcc/tree-ssa-threadedge.c b/gcc/tree-ssa-threadedge.c index 631d97b..0113d3a 100644 --- a/gcc/tree-ssa-threadedge.c +++ b/gcc/tree-ssa-threadedge.c @@ -28,9 +28,7 @@ along with GCC; see the file COPYING3. If not see #include "basic-block.h" #include "cfgloop.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "timevar.h" #include "tree-dump.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 2eae88c..4621eec 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -27,9 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "tree-pass.h" diff --git a/gcc/tree-ssa-uncprop.c b/gcc/tree-ssa-uncprop.c index c98f63f..30aa4c7 100644 --- a/gcc/tree-ssa-uncprop.c +++ b/gcc/tree-ssa-uncprop.c @@ -27,9 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "timevar.h" #include "tree-dump.h" #include "tree-flow.h" diff --git a/gcc/tree-ssa-uninit.c b/gcc/tree-ssa-uninit.c index 5487cc0..6d58f5b 100644 --- a/gcc/tree-ssa-uninit.c +++ b/gcc/tree-ssa-uninit.c @@ -29,9 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "langhooks.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "bitmap.h" #include "pointer-set.h" diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index d07c61d..ec9c50c 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -30,9 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "langhooks.h" #include "basic-block.h" #include "output.h" -#include "expr.h" #include "function.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "bitmap.h" diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index 8401747..3bfbfc2 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "function.h" #include "langhooks.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "target.h" #include "tree-flow.h" diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index cf3202c..ed8b5ce 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -93,7 +93,6 @@ eight) times the number of the actual switch branches. */ #include "output.h" #include "input.h" #include "tree-pass.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "tree-dump.h" #include "timevar.h" diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index e67f580..5a6bd23 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "function.h" #include "tree-flow.h" #include "tree-dump.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "except.h" #include "tree-pass.h" diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 76a5c21..f2a1fc4 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -28,19 +28,19 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "target.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" #include "cfgloop.h" -#include "expr.h" -#include "optabs.h" #include "tree-chrec.h" #include "tree-scalar-evolution.h" #include "tree-vectorizer.h" #include "toplev.h" +/* Need to include rtl.h, expr.h, etc. for optabs. */ +#include "expr.h" +#include "optabs.h" /* Return the smallest scalar part of STMT. This is used to determine the vectype of the stmt. We generally set the diff --git a/gcc/tree-vect-generic.c b/gcc/tree-vect-generic.c index 25bda42..8b8a481 100644 --- a/gcc/tree-vect-generic.c +++ b/gcc/tree-vect-generic.c @@ -23,11 +23,6 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tree.h" #include "tm.h" -#include "expr.h" -#include "insn-codes.h" -#include "diagnostic.h" -#include "optabs.h" -#include "machmode.h" #include "langhooks.h" #include "tree-flow.h" #include "gimple.h" @@ -36,6 +31,9 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "ggc.h" +/* Need to include rtl.h, expr.h, etc. for optabs. */ +#include "expr.h" +#include "optabs.h" /* Build a constant of type TYPE, made of VALUE's bits replicated every TYPE_SIZE (INNER_TYPE) bits to fit TYPE's precision. */ diff --git a/gcc/tree-vect-loop-manip.c b/gcc/tree-vect-loop-manip.c index 8289b36..f8922a2 100644 --- a/gcc/tree-vect-loop-manip.c +++ b/gcc/tree-vect-loop-manip.c @@ -27,14 +27,12 @@ along with GCC; see the file COPYING3. If not see #include "ggc.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" #include "cfgloop.h" #include "cfglayout.h" -#include "expr.h" #include "toplev.h" #include "tree-scalar-evolution.h" #include "tree-vectorizer.h" diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 465a95c..a6b331a 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -27,7 +27,6 @@ along with GCC; see the file COPYING3. If not see #include "ggc.h" #include "tree.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index 987c267..eb97395 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "target.h" #include "basic-block.h" -#include "diagnostic.h" #include "gimple-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index f1b6355..6870fca 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "target.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 71f6e85..7ad0988 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "target.h" #include "basic-block.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "tree-flow.h" diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index b449268..d4857e0 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -61,7 +61,6 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "ggc.h" #include "tree.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "tree-flow.h" #include "tree-dump.h" diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 2bb90b2..f0e9ce6 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -31,7 +31,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-pass.h" #include "tree-dump.h" #include "timevar.h" -#include "diagnostic.h" #include "tree-pretty-print.h" #include "gimple-pretty-print.h" #include "toplev.h" -- 2.7.4