From 4d64880731674947fa017c3acb42c20cb8942be1 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 21 Oct 2013 15:36:37 -0400 Subject: [PATCH] Re-factor inclusion of tree.h. This moves tree.h out of every header. This exposes dependencies of tree.h in files that should probably not need it after tree and gimple are separated. After this change, no header should include tree.h directly. It should only be included by a .c file. Unfortunately, I did not find an automatic way of forcing this. Tested on x86_64 with all languages enabled and using contrib/config-list.mk. 2013-10-21 Diego Novillo * asan.c: Include tree.h * bb-reorder.c: Likewise. * cfgcleanup.c: Likewise. * cfgloopmanip.c: Likewise. * data-streamer-in.c: Likewise. * data-streamer-out.c: Likewise. * data-streamer.c: Likewise. * dwarf2cfi.c: Likewise. * graphite-blocking.c: Likewise. * graphite-clast-to-gimple.c: Likewise. * graphite-dependences.c: Likewise. * graphite-interchange.c: Likewise. * graphite-optimize-isl.c: Likewise. * graphite-poly.c: Likewise. * graphite-scop-detection.c: Likewise. * graphite-sese-to-poly.c: Likewise. * graphite.c: Likewise. * ipa-devirt.c: Likewise. * ipa-profile.c: Likewise. * ipa.c: Likewise. * ira.c: Likewise. * loop-init.c: Likewise. * loop-unroll.c: Likewise. * lower-subreg.c: Likewise. * lto/lto-object.c: Likewise. * recog.c: Likewise. * reginfo.c: Likewise. * tree-loop-distribution.c: Likewise. * tree-parloops.c: Likewise. * tree-ssa-strlen.c: Likewise. * tree-streamer.c: Likewise. * value-prof.c: Likewise. * target-globals.c: Likewise. * expr.h: Include tree-core.h instead of tree.h. * gimple.h: Likewise. * ipa-prop.h: Likewise. * ipa-utils.h: Likewise. * lto-streamer.h: Likewise. * streamer-hooks.h: Likewise. * ipa-reference.h: Include cgraph.h instead of tree.h. * cgraph.h: Include basic-block.h instead of tree.h. * tree-streamer.h: Do not include tree.h. * genattrtab.c (write_header): Generate inclusion of tree.h. * genautomata.c (main): Likewise. * genemit.c: Likewise. * genopinit.c: Likewise. * genoutput.c (output_prologue): Likewise. * genpeep.c: Likewise. testsuite/ChangeLog * g++.dg/plugin/selfassign.c: Include tree.h. * gcc.dg/plugin/finish_unit_plugin.c: Likewise. * gcc.dg/plugin/ggcplug.c: Likewise. * gcc.dg/plugin/one_time_plugin.c: Likewise. * gcc.dg/plugin/selfassign.c: Likewise. * gcc.dg/plugin/start_unit_plugin.c: Likewise. From-SVN: r203908 --- gcc/ChangeLog | 52 +++++++++++++++++++ gcc/asan.c | 1 + gcc/bb-reorder.c | 1 + gcc/cfgcleanup.c | 1 + gcc/cfgloopmanip.c | 1 + gcc/cgraph.h | 2 +- gcc/data-streamer-in.c | 1 + gcc/data-streamer-out.c | 1 + gcc/data-streamer.c | 1 + gcc/dwarf2cfi.c | 1 + gcc/expr.h | 2 +- gcc/genattrtab.c | 1 + gcc/genautomata.c | 1 + gcc/genemit.c | 1 + gcc/genopinit.c | 1 + gcc/genoutput.c | 1 + gcc/genpeep.c | 1 + gcc/gimple.h | 2 +- gcc/graphite-blocking.c | 1 + gcc/graphite-clast-to-gimple.c | 1 + gcc/graphite-dependences.c | 1 + gcc/graphite-interchange.c | 1 + gcc/graphite-optimize-isl.c | 1 + gcc/graphite-poly.c | 1 + gcc/graphite-scop-detection.c | 1 + gcc/graphite-sese-to-poly.c | 1 + gcc/graphite.c | 1 + gcc/ipa-devirt.c | 1 + gcc/ipa-profile.c | 1 + gcc/ipa-prop.h | 2 +- gcc/ipa-reference.h | 2 +- gcc/ipa-utils.h | 2 +- gcc/ipa.c | 1 + gcc/ira.c | 1 + gcc/loop-init.c | 1 + gcc/loop-unroll.c | 1 + gcc/lower-subreg.c | 1 + gcc/lto-streamer.h | 2 +- gcc/lto/lto-object.c | 1 + gcc/recog.c | 1 + gcc/reginfo.c | 1 + gcc/streamer-hooks.h | 2 +- gcc/target-globals.c | 1 + gcc/testsuite/ChangeLog | 9 ++++ gcc/testsuite/g++.dg/plugin/selfassign.c | 1 + .../gcc.dg/plugin/finish_unit_plugin.c | 1 + gcc/testsuite/gcc.dg/plugin/ggcplug.c | 1 + gcc/testsuite/gcc.dg/plugin/one_time_plugin.c | 1 + gcc/testsuite/gcc.dg/plugin/selfassign.c | 1 + .../gcc.dg/plugin/start_unit_plugin.c | 1 + gcc/tree-loop-distribution.c | 1 + gcc/tree-parloops.c | 1 + gcc/tree-ssa-strlen.c | 1 + gcc/tree-streamer.c | 1 + gcc/tree-streamer.h | 1 - gcc/value-prof.c | 1 + 56 files changed, 114 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d00105df9fb..643db376af9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -101,6 +101,58 @@ (ix86_expand_movmem): Call ix86_expand_set_or_movmem. (ix86_expand_setmem): Call ix86_expand_set_or_movmem. +2013-10-21 Diego Novillo + + * asan.c: Include tree.h + * bb-reorder.c: Likewise. + * cfgcleanup.c: Likewise. + * cfgloopmanip.c: Likewise. + * data-streamer-in.c: Likewise. + * data-streamer-out.c: Likewise. + * data-streamer.c: Likewise. + * dwarf2cfi.c: Likewise. + * graphite-blocking.c: Likewise. + * graphite-clast-to-gimple.c: Likewise. + * graphite-dependences.c: Likewise. + * graphite-interchange.c: Likewise. + * graphite-optimize-isl.c: Likewise. + * graphite-poly.c: Likewise. + * graphite-scop-detection.c: Likewise. + * graphite-sese-to-poly.c: Likewise. + * graphite.c: Likewise. + * ipa-devirt.c: Likewise. + * ipa-profile.c: Likewise. + * ipa.c: Likewise. + * ira.c: Likewise. + * loop-init.c: Likewise. + * loop-unroll.c: Likewise. + * lower-subreg.c: Likewise. + * lto/lto-object.c: Likewise. + * recog.c: Likewise. + * reginfo.c: Likewise. + * tree-loop-distribution.c: Likewise. + * tree-parloops.c: Likewise. + * tree-ssa-strlen.c: Likewise. + * tree-streamer.c: Likewise. + * value-prof.c: Likewise. + * target-globals.c: Likewise. + * expr.h: Include tree-core.h instead of tree.h. + * gimple.h: Likewise. + * ipa-prop.h: Likewise. + * ipa-utils.h: Likewise. + * lto-streamer.h: Likewise. + * streamer-hooks.h: Likewise. + * ipa-reference.h: Include cgraph.h instead of tree.h. + * cgraph.h: Include basic-block.h instead of tree.h. + * tree-streamer.h: Do not include tree.h. + * genattrtab.c (write_header): Generate inclusion of + tree.h. + * genautomata.c (main): Likewise. + * genemit.c: Likewise. + * genopinit.c: Likewise. + * genoutput.c (output_prologue): Likewise. + * genpeep.c: Likewise. + 2013-10-20 Bill Schmidt * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for diff --git a/gcc/asan.c b/gcc/asan.c index c037ebfd62f..a5978df4214 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "gimple.h" #include "tree-iterator.h" #include "tree-ssa.h" diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index c5a42d359dc..8e2348f476c 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -82,6 +82,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "rtl.h" #include "regs.h" #include "flags.h" diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 53a99755010..51611907368 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "rtl.h" +#include "tree.h" #include "hard-reg-set.h" #include "regs.h" #include "insn-config.h" diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index b4840dcf014..cf9a7fc6ee9 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "rtl.h" #include "basic-block.h" #include "cfgloop.h" +#include "tree.h" #include "tree-ssa.h" #include "dumpfile.h" diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 69adf4d1916..77064194cf5 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "is-a.h" #include "plugin-api.h" #include "vec.h" -#include "tree.h" +#include "basic-block.h" #include "function.h" #include "ipa-ref.h" diff --git a/gcc/data-streamer-in.c b/gcc/data-streamer-in.c index 93fe2ff4c3b..84db7cfc7c3 100644 --- a/gcc/data-streamer-in.c +++ b/gcc/data-streamer-in.c @@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "diagnostic.h" +#include "tree.h" #include "data-streamer.h" /* Read a string from the string table in DATA_IN using input block diff --git a/gcc/data-streamer-out.c b/gcc/data-streamer-out.c index 247ff636e49..2e55e3df759 100644 --- a/gcc/data-streamer-out.c +++ b/gcc/data-streamer-out.c @@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "data-streamer.h" /* Return index used to reference STRING of LEN characters in the string table diff --git a/gcc/data-streamer.c b/gcc/data-streamer.c index cbd1cb9f9dd..5915a416a04 100644 --- a/gcc/data-streamer.c +++ b/gcc/data-streamer.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "data-streamer.h" /* Pack WORK into BP in a variant of uleb format. */ diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c index 5a096adcd0f..e0f85edc61b 100644 --- a/gcc/dwarf2cfi.c +++ b/gcc/dwarf2cfi.c @@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "version.h" #include "flags.h" #include "rtl.h" +#include "tree.h" #include "function.h" #include "basic-block.h" #include "dwarf2.h" diff --git a/gcc/expr.h b/gcc/expr.h index 218984402c5..56f504ac155 100644 --- a/gcc/expr.h +++ b/gcc/expr.h @@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" /* For host_integerp, tree_low_cst, fold_convert, size_binop, ssize_int, TREE_CODE, TYPE_SIZE, int_size_in_bytes, */ -#include "tree.h" +#include "tree-core.h" /* For GET_MODE_BITSIZE, word_mode */ #include "machmode.h" diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 973cade3fc2..f79380d6e46 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -5100,6 +5100,7 @@ write_header (FILE *outf) fprintf (outf, "#include \"system.h\"\n"); fprintf (outf, "#include \"coretypes.h\"\n"); fprintf (outf, "#include \"tm.h\"\n"); + fprintf (outf, "#include \"tree.h\"\n"); fprintf (outf, "#include \"rtl.h\"\n"); fprintf (outf, "#include \"insn-attr.h\"\n"); fprintf (outf, "#include \"tm_p.h\"\n"); diff --git a/gcc/genautomata.c b/gcc/genautomata.c index a0bf0767aa9..f6c4b91c42e 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -9665,6 +9665,7 @@ main (int argc, char **argv) "#include \"system.h\"\n" "#include \"coretypes.h\"\n" "#include \"tm.h\"\n" + "#include \"tree.h\"\n" "#include \"rtl.h\"\n" "#include \"tm_p.h\"\n" "#include \"insn-config.h\"\n" diff --git a/gcc/genemit.c b/gcc/genemit.c index d4bb301320d..724a114da44 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -790,6 +790,7 @@ from the machine description file `md'. */\n\n"); printf ("#include \"system.h\"\n"); printf ("#include \"coretypes.h\"\n"); printf ("#include \"tm.h\"\n"); + printf ("#include \"tree.h\"\n"); printf ("#include \"rtl.h\"\n"); printf ("#include \"tm_p.h\"\n"); printf ("#include \"function.h\"\n"); diff --git a/gcc/genopinit.c b/gcc/genopinit.c index 9c7cf2c06a4..3efb71e249e 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -404,6 +404,7 @@ main (int argc, char **argv) "#include \"system.h\"\n" "#include \"coretypes.h\"\n" "#include \"tm.h\"\n" + "#include \"tree.h\"\n" "#include \"rtl.h\"\n" "#include \"tm_p.h\"\n" "#include \"flags.h\"\n" diff --git a/gcc/genoutput.c b/gcc/genoutput.c index c3a0936fc97..2a7ee2391db 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -238,6 +238,7 @@ output_prologue (void) printf ("#include \"tm.h\"\n"); printf ("#include \"flags.h\"\n"); printf ("#include \"ggc.h\"\n"); + printf ("#include \"tree.h\"\n"); printf ("#include \"rtl.h\"\n"); printf ("#include \"expr.h\"\n"); printf ("#include \"insn-codes.h\"\n"); diff --git a/gcc/genpeep.c b/gcc/genpeep.c index a14d061a50b..877fde3ec90 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -359,6 +359,7 @@ from the machine description file `md'. */\n\n"); printf ("#include \"coretypes.h\"\n"); printf ("#include \"tm.h\"\n"); printf ("#include \"insn-config.h\"\n"); + printf ("#include \"tree.h\"\n"); printf ("#include \"rtl.h\"\n"); printf ("#include \"tm_p.h\"\n"); printf ("#include \"regs.h\"\n"); diff --git a/gcc/gimple.h b/gcc/gimple.h index d8528acade5..fef64cdb870 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "vec.h" #include "ggc.h" #include "basic-block.h" -#include "tree.h" +#include "tree-core.h" #include "tree-ssa-alias.h" #include "internal-fn.h" #include "gimple-fold.h" diff --git a/gcc/graphite-blocking.c b/gcc/graphite-blocking.c index 9226da00eae..491c815c9e5 100644 --- a/gcc/graphite-blocking.c +++ b/gcc/graphite-blocking.c @@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "dumpfile.h" #include "cfgloop.h" diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c index d0e23021f5d..7db4da6eac2 100644 --- a/gcc/graphite-clast-to-gimple.c +++ b/gcc/graphite-clast-to-gimple.c @@ -35,6 +35,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "diagnostic-core.h" +#include "tree.h" #include "tree-ssa.h" #include "tree-pass.h" #include "cfgloop.h" diff --git a/gcc/graphite-dependences.c b/gcc/graphite-dependences.c index 5139e69b942..a561d2517a6 100644 --- a/gcc/graphite-dependences.c +++ b/gcc/graphite-dependences.c @@ -33,6 +33,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "tree-pass.h" #include "cfgloop.h" diff --git a/gcc/graphite-interchange.c b/gcc/graphite-interchange.c index 289c1d9568f..060ec8fda2f 100644 --- a/gcc/graphite-interchange.c +++ b/gcc/graphite-interchange.c @@ -35,6 +35,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "dumpfile.h" #include "cfgloop.h" diff --git a/gcc/graphite-optimize-isl.c b/gcc/graphite-optimize-isl.c index b9b21566fb5..856402f6235 100644 --- a/gcc/graphite-optimize-isl.c +++ b/gcc/graphite-optimize-isl.c @@ -32,6 +32,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "dumpfile.h" #include "cfgloop.h" diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index 35fe3ba2342..e1a4207daa8 100644 --- a/gcc/graphite-poly.c +++ b/gcc/graphite-poly.c @@ -35,6 +35,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "diagnostic-core.h" +#include "tree.h" #include "tree-ssa.h" #include "dumpfile.h" #include "gimple-pretty-print.h" diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 91d3d85ae0c..d7266f8c3f5 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "cfgloop.h" #include "tree-chrec.h" diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 3e5541ab834..70e01260efd 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -33,6 +33,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "tree-pass.h" #include "cfgloop.h" diff --git a/gcc/graphite.c b/gcc/graphite.c index b26c520abcb..cb8cc7ecd47 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -47,6 +47,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "diagnostic-core.h" +#include "tree.h" #include "tree-ssa.h" #include "tree-dump.h" #include "cfgloop.h" diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 10499e1cfc0..0d7c39b1cfd 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -109,6 +109,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "cgraph.h" #include "tree-pass.h" #include "ggc.h" diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index bae9aecd3b1..d19d6dfaeca 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -48,6 +48,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "cgraph.h" #include "tree-pass.h" #include "gimple.h" diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h index 48634d2e172..363d035b2cb 100644 --- a/gcc/ipa-prop.h +++ b/gcc/ipa-prop.h @@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see #ifndef IPA_PROP_H #define IPA_PROP_H -#include "tree.h" +#include "tree-core.h" #include "vec.h" #include "cgraph.h" #include "gimple.h" diff --git a/gcc/ipa-reference.h b/gcc/ipa-reference.h index c1e910e481a..317ebb02de2 100644 --- a/gcc/ipa-reference.h +++ b/gcc/ipa-reference.h @@ -21,7 +21,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_IPA_REFERENCE_H #define GCC_IPA_REFERENCE_H #include "bitmap.h" -#include "tree.h" +#include "cgraph.h" /* In ipa-reference.c */ bitmap ipa_reference_get_not_read_global (struct cgraph_node *fn); diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h index 374ac2a3eff..d2424f75e57 100644 --- a/gcc/ipa-utils.h +++ b/gcc/ipa-utils.h @@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_IPA_UTILS_H #define GCC_IPA_UTILS_H -#include "tree.h" +#include "tree-core.h" #include "cgraph.h" struct ipa_dfs_info { diff --git a/gcc/ipa.c b/gcc/ipa.c index 92343fb22c9..80a97ba7df6 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "cgraph.h" #include "tree-pass.h" #include "gimple.h" diff --git a/gcc/ira.c b/gcc/ira.c index 203fbff6a26..d95910900b3 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -361,6 +361,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "regs.h" +#include "tree.h" #include "rtl.h" #include "tm_p.h" #include "target.h" diff --git a/gcc/loop-init.c b/gcc/loop-init.c index c7aee1da6b9..b381745aba3 100644 --- a/gcc/loop-init.c +++ b/gcc/loop-init.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "rtl.h" +#include "tree.h" #include "regs.h" #include "obstack.h" #include "basic-block.h" diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index 568fd7bdab4..40f06dbbca3 100644 --- a/gcc/loop-unroll.c +++ b/gcc/loop-unroll.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "rtl.h" +#include "tree.h" #include "hard-reg-set.h" #include "obstack.h" #include "basic-block.h" diff --git a/gcc/lower-subreg.c b/gcc/lower-subreg.c index 57b4b3c2467..8ff5fc3da41 100644 --- a/gcc/lower-subreg.c +++ b/gcc/lower-subreg.c @@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "machmode.h" #include "tm.h" +#include "tree.h" #include "rtl.h" #include "tm_p.h" #include "flags.h" diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 13a9593a866..de428928d1e 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see #include "plugin-api.h" #include "hash-table.h" -#include "tree.h" +#include "tree-core.h" #include "gimple.h" #include "target.h" #include "cgraph.h" diff --git a/gcc/lto/lto-object.c b/gcc/lto/lto-object.c index 77be1fbe230..2f51952ef76 100644 --- a/gcc/lto/lto-object.c +++ b/gcc/lto/lto-object.c @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "diagnostic-core.h" #include "lto.h" #include "tm.h" diff --git a/gcc/recog.c b/gcc/recog.c index a3ca98c62fd..9ab90b5dd0f 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "rtl-error.h" #include "tm_p.h" #include "insn-config.h" diff --git a/gcc/reginfo.c b/gcc/reginfo.c index 26318dc503a..db66a095765 100644 --- a/gcc/reginfo.c +++ b/gcc/reginfo.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "coretypes.h" #include "tm.h" #include "hard-reg-set.h" +#include "tree.h" #include "rtl.h" #include "expr.h" #include "tm_p.h" diff --git a/gcc/streamer-hooks.h b/gcc/streamer-hooks.h index d989cc90452..aeb86b911f2 100644 --- a/gcc/streamer-hooks.h +++ b/gcc/streamer-hooks.h @@ -23,7 +23,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_STREAMER_HOOKS_H #define GCC_STREAMER_HOOKS_H -#include "tree.h" +#include "tree-core.h" /* Forward declarations to avoid including unnecessary headers. */ struct output_block; diff --git a/gcc/target-globals.c b/gcc/target-globals.c index 65ccb8af5e6..9d223fcbed0 100644 --- a/gcc/target-globals.c +++ b/gcc/target-globals.c @@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "insn-config.h" #include "machmode.h" +#include "tree.h" #include "ggc.h" #include "toplev.h" #include "target-globals.h" diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fca2bb4b1ac..c91928561b0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -25,6 +25,15 @@ * gcc.target/i386/memset-vector_loop-1.c: New test. * gcc.target/i386/memset-vector_loop-2.c: New test. +2013-10-21 Diego Novillo + + * g++.dg/plugin/selfassign.c: Include tree.h. + * gcc.dg/plugin/finish_unit_plugin.c: Likewise. + * gcc.dg/plugin/ggcplug.c: Likewise. + * gcc.dg/plugin/one_time_plugin.c: Likewise. + * gcc.dg/plugin/selfassign.c: Likewise. + * gcc.dg/plugin/start_unit_plugin.c: Likewise. + 2013-10-20 Richard Sandiford * gcc.target/mips/mips-ps-5.c: Add alignment attributes. diff --git a/gcc/testsuite/g++.dg/plugin/selfassign.c b/gcc/testsuite/g++.dg/plugin/selfassign.c index 7235089c7d3..5331f792cb2 100644 --- a/gcc/testsuite/g++.dg/plugin/selfassign.c +++ b/gcc/testsuite/g++.dg/plugin/selfassign.c @@ -7,6 +7,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "toplev.h" #include "basic-block.h" #include "gimple.h" diff --git a/gcc/testsuite/gcc.dg/plugin/finish_unit_plugin.c b/gcc/testsuite/gcc.dg/plugin/finish_unit_plugin.c index 26496a2e695..72d724063e4 100644 --- a/gcc/testsuite/gcc.dg/plugin/finish_unit_plugin.c +++ b/gcc/testsuite/gcc.dg/plugin/finish_unit_plugin.c @@ -6,6 +6,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "toplev.h" #include "basic-block.h" #include "gimple.h" diff --git a/gcc/testsuite/gcc.dg/plugin/ggcplug.c b/gcc/testsuite/gcc.dg/plugin/ggcplug.c index 3094b2ebb63..eb61ece4522 100644 --- a/gcc/testsuite/gcc.dg/plugin/ggcplug.c +++ b/gcc/testsuite/gcc.dg/plugin/ggcplug.c @@ -5,6 +5,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "toplev.h" #include "basic-block.h" #include "gimple.h" diff --git a/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c b/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c index c4dace5ab27..1e601a63c90 100644 --- a/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c +++ b/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c @@ -3,6 +3,7 @@ #include "gcc-plugin.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tm.h" #include "toplev.h" #include "gimple.h" diff --git a/gcc/testsuite/gcc.dg/plugin/selfassign.c b/gcc/testsuite/gcc.dg/plugin/selfassign.c index 7235089c7d3..5331f792cb2 100644 --- a/gcc/testsuite/gcc.dg/plugin/selfassign.c +++ b/gcc/testsuite/gcc.dg/plugin/selfassign.c @@ -7,6 +7,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "toplev.h" #include "basic-block.h" #include "gimple.h" diff --git a/gcc/testsuite/gcc.dg/plugin/start_unit_plugin.c b/gcc/testsuite/gcc.dg/plugin/start_unit_plugin.c index 852ab88bfc7..257aad85a8a 100644 --- a/gcc/testsuite/gcc.dg/plugin/start_unit_plugin.c +++ b/gcc/testsuite/gcc.dg/plugin/start_unit_plugin.c @@ -10,6 +10,7 @@ #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "toplev.h" #include "basic-block.h" #include "gimple.h" diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 015b50d46c9..9b6936d3214 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -44,6 +44,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "cfgloop.h" #include "tree-chrec.h" diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index cdef5c62fbe..1119310c522 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "tree-ssa.h" #include "cfgloop.h" #include "tree-data-ref.h" diff --git a/gcc/tree-ssa-strlen.c b/gcc/tree-ssa-strlen.c index 5df1ddf59bd..1c0db1449ca 100644 --- a/gcc/tree-ssa-strlen.c +++ b/gcc/tree-ssa-strlen.c @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "hash-table.h" #include "tree-ssa.h" #include "tree-pass.h" diff --git a/gcc/tree-streamer.c b/gcc/tree-streamer.c index 8d532d9c250..55c9ad571f6 100644 --- a/gcc/tree-streamer.c +++ b/gcc/tree-streamer.c @@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tree.h" #include "streamer-hooks.h" #include "tree-streamer.h" diff --git a/gcc/tree-streamer.h b/gcc/tree-streamer.h index 02f8f51a195..1ed215c9792 100644 --- a/gcc/tree-streamer.h +++ b/gcc/tree-streamer.h @@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_TREE_STREAMER_H #define GCC_TREE_STREAMER_H -#include "tree.h" #include "streamer-hooks.h" #include "lto-streamer.h" diff --git a/gcc/value-prof.c b/gcc/value-prof.c index b19aefbfdd8..0364c48c557 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" +#include "tree.h" #include "rtl.h" #include "expr.h" #include "hard-reg-set.h"