]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Re-factor inclusion of tree.h.
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Oct 2013 19:36:37 +0000 (19:36 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Oct 2013 19:36:37 +0000 (19:36 +0000)
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  <dnovillo@google.com>

* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203908 138bc75d-0d04-0410-961f-82ee72b054a4

56 files changed:
gcc/ChangeLog
gcc/asan.c
gcc/bb-reorder.c
gcc/cfgcleanup.c
gcc/cfgloopmanip.c
gcc/cgraph.h
gcc/data-streamer-in.c
gcc/data-streamer-out.c
gcc/data-streamer.c
gcc/dwarf2cfi.c
gcc/expr.h
gcc/genattrtab.c
gcc/genautomata.c
gcc/genemit.c
gcc/genopinit.c
gcc/genoutput.c
gcc/genpeep.c
gcc/gimple.h
gcc/graphite-blocking.c
gcc/graphite-clast-to-gimple.c
gcc/graphite-dependences.c
gcc/graphite-interchange.c
gcc/graphite-optimize-isl.c
gcc/graphite-poly.c
gcc/graphite-scop-detection.c
gcc/graphite-sese-to-poly.c
gcc/graphite.c
gcc/ipa-devirt.c
gcc/ipa-profile.c
gcc/ipa-prop.h
gcc/ipa-reference.h
gcc/ipa-utils.h
gcc/ipa.c
gcc/ira.c
gcc/loop-init.c
gcc/loop-unroll.c
gcc/lower-subreg.c
gcc/lto-streamer.h
gcc/lto/lto-object.c
gcc/recog.c
gcc/reginfo.c
gcc/streamer-hooks.h
gcc/target-globals.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/plugin/selfassign.c
gcc/testsuite/gcc.dg/plugin/finish_unit_plugin.c
gcc/testsuite/gcc.dg/plugin/ggcplug.c
gcc/testsuite/gcc.dg/plugin/one_time_plugin.c
gcc/testsuite/gcc.dg/plugin/selfassign.c
gcc/testsuite/gcc.dg/plugin/start_unit_plugin.c
gcc/tree-loop-distribution.c
gcc/tree-parloops.c
gcc/tree-ssa-strlen.c
gcc/tree-streamer.c
gcc/tree-streamer.h
gcc/value-prof.c

index d00105df9fbaecbb8d76bc45841a0e52bcf3a77d..643db376af9ba536594f3b42fa4238c455f84d2f 100644 (file)
        (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
        (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
 
+2013-10-21  Diego Novillo  <dnovillo@google.com>
+
+       * 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  <wschmidt@linux.vnet.ibm.com>
 
        * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
index c037ebfd62fa0dc1729666ad408dd52320d9aa55..a5978df42143039011ca44f0ab3ddbffcc630cc1 100644 (file)
@@ -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"
index c5a42d359dcf40e35a76729a8e5e680057b256e5..8e2348f476c56110f40cc6a9f5c9ec968af34cf6 100644 (file)
@@ -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"
index 53a997550101d6c6a2283188cbe81f19b2ef03bf..5161190736867f88f62a124e629f26551dbecae7 100644 (file)
@@ -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"
index b4840dcf014bd83d6568487df275647f3645bec6..cf9a7fc6ee9d1ef0edb4ab1481d7c4ed69a82709 100644 (file)
@@ -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"
 
index 69adf4d19161abe737e8e18e10ab0d87cf6e5970..77064194cf50b7c467acc4dc46f9e3aa7c346c49 100644 (file)
@@ -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"
 
index 93fe2ff4c3b6219049b0581209d569f2ca5ff641..84db7cfc7c3ad5135c1a521a29f440c88537d2c2 100644 (file)
@@ -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
index 247ff636e49214edb8da69dea305aa4f7bdd4a15..2e55e3df759ab6d997716ede04f326d5e9aecd57 100644 (file)
@@ -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
index cbd1cb9f9ddfede3a212218720a75cd0ecde4306..5915a416a043ea5b76e13354c8f8f55344e89b00 100644 (file)
@@ -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.  */
index 5a096adcd0ff09b5577fbb8c69caa8a264e63270..e0f85edc61bb6d2114f3df75ea7eab80a644f5ef 100644 (file)
@@ -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"
index 218984402c5485db71d2190d27a98ece39c9f5dc..56f504ac1552b1308a78137bfa94af96f2fe22ee 100644 (file)
@@ -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"
 
index 973cade3fc2a6e29e788ef6c3b1a7bddc59f1041..f79380d6e4600c09503ebf2a01c3d3a59020ad4f 100644 (file)
@@ -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");
index a0bf0767aa95691493bf2f65d733add3c3cbc658..f6c4b91c42e202ebfd8529da626cf583e819fa59 100644 (file)
@@ -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"
index d4bb301320dc7839e49be745132b067dc00bc469..724a114da4461dff347796a102498cfd24679613 100644 (file)
@@ -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");
index 9c7cf2c06a4744e1a7dcd091a8f72cebe78f08ce..3efb71e249e44259e5154bf94d6f2b325dcea327 100644 (file)
@@ -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"
index c3a0936fc97ff0ec267660022ef6fda9e880e514..2a7ee2391db4d5ab96e63a2a11c2e4afed31c479 100644 (file)
@@ -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");
index a14d061a50bcf3b9a4a79c89a52f703347bf63be..877fde3ec906b2fa9163a6dcffa4a80783e356a3 100644 (file)
@@ -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");
index d8528acade5cf5230435627fa82c74cc88f5cbb6..fef64cdb8708b47da7b6d47c53bd96be557f7161 100644 (file)
@@ -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"
index 9226da00eae67310bcdcf38f8d48c346d0a6b910..491c815c9e598fee2546b9b2ad2124bc46691337 100644 (file)
@@ -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"
index d0e23021f5dd4fe1122ed677c7f51ac352026c5a..7db4da6eac29db9ff0b34067fbce4118247dfc14 100644 (file)
@@ -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"
index 5139e69b942ab0674ae6db20199fe159466fe2d2..a561d2517a6340ec43236b632bd947b1608ea571 100644 (file)
@@ -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"
index 289c1d9568fe1f92b21134bd3ebf8bfbf521bc8e..060ec8fda2faab262ab6d324c347e575a614ff61 100644 (file)
@@ -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"
index b9b21566fb52b6378076b09bd15d6a5e93ba70e6..856402f6235ba7cef971e8e936058168f7802155 100644 (file)
@@ -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"
index 35fe3ba234266d1dbac4a2da2c3b6b2e83a43f7d..e1a4207daa89b81aa1af302704b6ac42febe29c2 100644 (file)
@@ -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"
index 91d3d85ae0cff9b8c11160f09243787b20634b61..d7266f8c3f5caf46b94e807b4a4a982ac29bf35e 100644 (file)
@@ -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"
index 3e5541ab8349fc4fa765f66f29edabb30ad85dac..70e01260efd40a094eb098795f2b5b9763de5a68 100644 (file)
@@ -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"
index b26c520abcbfa7fff0327587d8ca148113feeba3..cb8cc7ecd478bb7ebf31647130a6d86b70fcf33c 100644 (file)
@@ -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"
index 10499e1cfc0bd1de692b64e9abadaaefeacc8342..0d7c39b1cfd7c7a4d33c1fc06d12bb01054d4679 100644 (file)
@@ -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"
index bae9aecd3b1f0b6a0879b881d2ef5afb18d6ee84..d19d6dfaeca3db70c2bdbd0540f6977838e77979 100644 (file)
@@ -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"
index 48634d2e172a33f845e770270c4bd33b5a158782..363d035b2cb4fd4814529372fa4c588365ccd2ab 100644 (file)
@@ -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"
index c1e910e481a4ac5e6db73674ed21741208dd7ff5..317ebb02de28e5882fcd665eb8b4265327cba5b2 100644 (file)
@@ -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);
index 374ac2a3effd9cf13847cee5c778d9a58e3f9636..d2424f75e57c582277bee440d111d160e3ff8bbd 100644 (file)
@@ -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 {
index 92343fb22c935a1dc5c84fee63e5883977f5dd51..80a97ba7df62bd596cc60375258b18fd34e63db9 100644 (file)
--- 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"
index 203fbff6a269f6d6b0bbb11c14fe5c1b3bc1f628..d95910900b3df79876c6c42b7b7822ec59d18076 100644 (file)
--- 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"
index c7aee1da6b92d9767bbc627caa6edd34171b6083..b381745aba31f383f93cab54878ab92589dbfd0d 100644 (file)
@@ -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"
index 568fd7bdab41fd304c9454ce8ed1e03328de2e62..40f06dbbca32071e1a0eec67b5fbbe1c117bb7df 100644 (file)
@@ -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"
index 57b4b3c2467c91133edad43e906863c717f99a54..8ff5fc3da417143f3b2dd0062cf798ac513ba521 100644 (file)
@@ -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"
index 13a9593a866597b920fb4cb6beb751f31cea0479..de428928d1ea5ea016c30bc5df84610ff848ce41 100644 (file)
@@ -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"
index 77be1fbe230500fa897a8fb2bcd585cd30b15cef..2f51952ef760e5addd1c3323825754ecfaa34a4b 100644 (file)
@@ -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"
index a3ca98c62fd7d952262c0d92ee1fde1b2aea2fd6..9ab90b5dd0fddd19ab10b4700ac4339e70905aad 100644 (file)
@@ -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"
index 26318dc503add33db065afdf215e55b1e9060a1e..db66a095765be73a61847c8788edb5889539fccb 100644 (file)
@@ -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"
index d989cc904523f2e445c94bb67e52f021b7870070..aeb86b911f22b5009b6e5ccfb563019f2b7f90b1 100644 (file)
@@ -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;
index 65ccb8af5e6a627df5cf0f3477ba3bede040270f..9d223fcbed06e78372cb2761f9d292d728122566 100644 (file)
@@ -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"
index fca2bb4b1ac024937bd80e5294df748ba0296526..c91928561b02d37125423170cecae72c6199e965 100644 (file)
        * 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  <dnovillo@google.com>
+
+       * 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  <rdsandiford@googlemail.com>
 
        * gcc.target/mips/mips-ps-5.c: Add alignment attributes.
index 7235089c7d31a7f53b3252fd0ba19d5eb21f7d8b..5331f792cb2b5b83ccd6d5fd3c154d41c309c00d 100644 (file)
@@ -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"
index 26496a2e6953e7967ef3a8b04855cd0a8dfe3eca..72d724063e48ba2df7ba07f1c4ad525c2980e256 100644 (file)
@@ -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"
index 3094b2ebb634a447b8d52338f7415c91acc1c251..eb61ece4522698b37a7e392d785d9d8718383eeb 100644 (file)
@@ -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"
index c4dace5ab27f5878cade678145bc0e2c2554812b..1e601a63c90e1fc4cd7ef20c2626e4e35c65aa23 100644 (file)
@@ -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"
index 7235089c7d31a7f53b3252fd0ba19d5eb21f7d8b..5331f792cb2b5b83ccd6d5fd3c154d41c309c00d 100644 (file)
@@ -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"
index 852ab88bfc75ab1a77c36938af12cfa78e76cb3b..257aad85a8afd6d405b3f44b8d0c5e5cbe5136e2 100644 (file)
@@ -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"
index 015b50d46c94039399cb8f98531b2146dad5ceb8..9b6936d321467b4a0b1bd50314984a7569b3e130 100644 (file)
@@ -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"
index cdef5c62fbed7ca9f38810b18cf71b90e2a0f1a5..1119310c522a777f56325c914c4ea2cb0099ad79 100644 (file)
@@ -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"
index 5df1ddf59bd5ac077a1158822fde1df935d1229c..1c0db1449cab00c6d3fdebea6e51492d1fcda7a5 100644 (file)
@@ -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"
index 8d532d9c250818781ed32f535d96d70ccb588a29..55c9ad571f677bbe71891f4bd777bfca9722b1e3 100644 (file)
@@ -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"
 
index 02f8f51a195f1241e8bf6e1535475221d87a009a..1ed215c9792b48fdda15e41db7d6ec0f2770ad20 100644 (file)
@@ -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"
 
index b19aefbfdd88a997caf3f35d66c4d70c92bfac5e..0364c48c557527d89016cc02590bd6e934804a76 100644 (file)
@@ -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"