aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2015-10-29 15:27:20 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2015-10-29 15:27:20 +0000
commit2adfab879c7aa3a78bb78efa09f9ca41603b0f99 (patch)
treec5d5f7802e57c91a4c30496f661ed9a0510c09b2 /gcc/cp
parentb05eab9dc56ac179dd59c3c5cba7931c9ec4ff23 (diff)
downloadgcc-2adfab879c7aa3a78bb78efa09f9ca41603b0f99.zip
gcc-2adfab879c7aa3a78bb78efa09f9ca41603b0f99.tar.gz
gcc-2adfab879c7aa3a78bb78efa09f9ca41603b0f99.tar.bz2
decl.c: Reorder #include's and remove duplicates.
ada 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * gcc-interface/decl.c: Reorder #include's and remove duplicates. * gcc-interface/misc.c: Likewise. * gcc-interface/targtyps.c: Likewise. * gcc-interface/trans.c: Likewise. * gcc-interface/utils.c: Likewise. c 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * c-array-notation.c: Reorder #include's and remove duplicates. * c-aux-info.c: Likewise. * c-convert.c: Likewise. * c-decl.c: Likewise. * c-errors.c: Likewise. * c-lang.c: Likewise. * c-objc-common.c: Likewise. * c-parser.c: Likewise. * c-typeck.c: Likewise. c-family 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * array-notation-common.c: Reorder #include's and remove duplicates. * c-ada-spec.c: Likewise. * c-cilkplus.c: Likewise. * c-common.c: Likewise. * c-cppbuiltin.c: Likewise. * c-dump.c: Likewise. * c-format.c: Likewise. * c-gimplify.c: Likewise. * c-indentation.c: Likewise. * c-lex.c: Likewise. * c-omp.c: Likewise. * c-opts.c: Likewise. * c-pch.c: Likewise. * c-ppoutput.c: Likewise. * c-pragma.c: Likewise. * c-pretty-print.c: Likewise. * c-semantics.c: Likewise. * c-ubsan.c: Likewise. * cilk.c: Likewise. * stub-objc.c: Likewise. cp 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * call.c: Reorder #include's and remove duplicates. * class.c: Likewise. * constexpr.c: Likewise. * cp-array-notation.c: Likewise. * cp-cilkplus.c: Likewise. * cp-gimplify.c: Likewise. * cp-lang.c: Likewise. * cp-objcp-common.c: Likewise. * cp-ubsan.c: Likewise. * cvt.c: Likewise. * cxx-pretty-print.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * dump.c: Likewise. * error.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * friend.c: Likewise. * init.c: Likewise. * lambda.c: Likewise. * lex.c: Likewise. * mangle.c: Likewise. * method.c: Likewise. * name-lookup.c: Likewise. * optimize.c: Likewise. * parser.c: Likewise. * pt.c: Likewise. * ptree.c: Likewise. * repo.c: Likewise. * rtti.c: Likewise. * search.c: Likewise. * semantics.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. * vtable-class-hierarchy.c: Likewise. fortran 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * array.c: Reorder #include's and remove duplicates. * convert.c: Likewise. * cpp.c: Likewise. * decl.c: Likewise. * f95-lang.c: Likewise. * frontend-passes.c: Likewise. * iresolve.c: Likewise. * match.c: Likewise. * module.c: Likewise. * options.c: Likewise. * parse.c: Likewise. * resolve.c: Likewise. * simplify.c: Likewise. * target-memory.c: Likewise. * trans-array.c: Likewise. * trans-common.c: Likewise. * trans-const.c: Likewise. * trans-decl.c: Likewise. * trans-expr.c: Likewise. * trans-intrinsic.c: Likewise. * trans-io.c: Likewise. * trans-openmp.c: Likewise. * trans-stmt.c: Likewise. * trans-types.c: Likewise. * trans.c: Likewise. go 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * go-backend.c: Reorder #include's and remove duplicates. * go-lang.c: Likewise. java 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * boehm.c: Reorder #include's and remove duplicates. * builtins.c: Likewise. * class.c: Likewise. * constants.c: Likewise. * decl.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * java-gimplify.c: Likewise. * jcf-dump.c: Likewise. * jcf-io.c: Likewise. * jcf-parse.c: Likewise. * jvgenmain.c: Likewise. * lang.c: Likewise. * mangle.c: Likewise. * mangle_name.c: Likewise. * resource.c: Likewise. * typeck.c: Likewise. * verify-glue.c: Likewise. * verify-impl.c: Likewise. jit 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * dummy-frontend.c: Reorder #include's and remove duplicates. * jit-builtins.c: Likewise. * jit-playback.c: Likewise. * jit-recording.c: Likewise. * libgccjit.c: Likewise. lto 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * lto-lang.c: Reorder #include's and remove duplicates. * lto-object.c: Likewise. * lto-partition.c: Likewise. * lto-symtab.c: Likewise. * lto.c: Likewise. objc 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * objc-lang.c: Reorder #include's and remove duplicates. * objc-map.c: Likewise. objcp 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * objcp-decl.c: Reorder #include's and remove duplicates. * objcp-lang.c: Likewise. From-SVN: r229533
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog39
-rw-r--r--gcc/cp/call.c16
-rw-r--r--gcc/cp/class.c13
-rw-r--r--gcc/cp/constexpr.c5
-rw-r--r--gcc/cp/cp-array-notation.c3
-rw-r--r--gcc/cp/cp-cilkplus.c1
-rw-r--r--gcc/cp/cp-gimplify.c11
-rw-r--r--gcc/cp/cp-lang.c6
-rw-r--r--gcc/cp/cp-objcp-common.c2
-rw-r--r--gcc/cp/cp-ubsan.c11
-rw-r--r--gcc/cp/cvt.c7
-rw-r--r--gcc/cp/cxx-pretty-print.c2
-rw-r--r--gcc/cp/decl.c23
-rw-r--r--gcc/cp/decl2.c16
-rw-r--r--gcc/cp/dump.c2
-rw-r--r--gcc/cp/error.c5
-rw-r--r--gcc/cp/except.c7
-rw-r--r--gcc/cp/expr.c4
-rw-r--r--gcc/cp/friend.c2
-rw-r--r--gcc/cp/init.c7
-rw-r--r--gcc/cp/lambda.c11
-rw-r--r--gcc/cp/lex.c9
-rw-r--r--gcc/cp/mangle.c18
-rw-r--r--gcc/cp/method.c14
-rw-r--r--gcc/cp/name-lookup.c10
-rw-r--r--gcc/cp/optimize.c12
-rw-r--r--gcc/cp/parser.c18
-rw-r--r--gcc/cp/pt.c7
-rw-r--r--gcc/cp/ptree.c4
-rw-r--r--gcc/cp/repo.c6
-rw-r--r--gcc/cp/rtti.c9
-rw-r--r--gcc/cp/search.c5
-rw-r--r--gcc/cp/semantics.c19
-rw-r--r--gcc/cp/tree.c11
-rw-r--r--gcc/cp/typeck.c10
-rw-r--r--gcc/cp/typeck2.c5
-rw-r--r--gcc/cp/vtable-class-hierarchy.c10
37 files changed, 157 insertions, 203 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a85166b..01c8d06 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,42 @@
+2015-10-29 Andrew MacLeod <amacleod@redhat.com>
+
+ * call.c: Reorder #include's and remove duplicates.
+ * class.c: Likewise.
+ * constexpr.c: Likewise.
+ * cp-array-notation.c: Likewise.
+ * cp-cilkplus.c: Likewise.
+ * cp-gimplify.c: Likewise.
+ * cp-lang.c: Likewise.
+ * cp-objcp-common.c: Likewise.
+ * cp-ubsan.c: Likewise.
+ * cvt.c: Likewise.
+ * cxx-pretty-print.c: Likewise.
+ * decl.c: Likewise.
+ * decl2.c: Likewise.
+ * dump.c: Likewise.
+ * error.c: Likewise.
+ * except.c: Likewise.
+ * expr.c: Likewise.
+ * friend.c: Likewise.
+ * init.c: Likewise.
+ * lambda.c: Likewise.
+ * lex.c: Likewise.
+ * mangle.c: Likewise.
+ * method.c: Likewise.
+ * name-lookup.c: Likewise.
+ * optimize.c: Likewise.
+ * parser.c: Likewise.
+ * pt.c: Likewise.
+ * ptree.c: Likewise.
+ * repo.c: Likewise.
+ * rtti.c: Likewise.
+ * search.c: Likewise.
+ * semantics.c: Likewise.
+ * tree.c: Likewise.
+ * typeck.c: Likewise.
+ * typeck2.c: Likewise.
+ * vtable-class-hierarchy.c: Likewise.
+
2015-10-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67845
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 1223dcd..9178188 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -25,25 +25,21 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "timevar.h"
+#include "stringpool.h"
+#include "cgraph.h"
+#include "alias.h"
#include "stor-layout.h"
#include "trans-mem.h"
-#include "stringpool.h"
-#include "cp-tree.h"
#include "flags.h"
#include "toplev.h"
-#include "diagnostic-core.h"
#include "intl.h"
-#include "target.h"
#include "convert.h"
#include "langhooks.h"
#include "c-family/c-objc.h"
-#include "timevar.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "internal-fn.h"
/* The various kinds of conversion. */
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 4465963..b123932 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -24,23 +24,18 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
-#include "options.h"
-#include "tm.h"
+#include "cp-tree.h"
#include "stringpool.h"
+#include "cgraph.h"
+#include "alias.h"
#include "stor-layout.h"
#include "attribs.h"
-#include "cp-tree.h"
#include "flags.h"
#include "toplev.h"
-#include "target.h"
#include "convert.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "dumpfile.h"
-#include "splay-tree.h"
#include "gimplify.h"
/* The number of nested classes being processed. If we are not in the
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index ebca411..038c6f5 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -23,11 +23,10 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "alias.h"
#include "tree.h"
-#include "options.h"
-#include "varasm.h"
#include "cp-tree.h"
+#include "alias.h"
+#include "varasm.h"
#include "c-family/c-objc.h"
#include "tree-iterator.h"
#include "gimplify.h"
diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c
index 2b7d416..9fd348c 100644
--- a/gcc/cp/cp-array-notation.c
+++ b/gcc/cp/cp-array-notation.c
@@ -53,12 +53,9 @@
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "alias.h"
#include "tree.h"
-#include "options.h"
#include "cp-tree.h"
#include "c-family/c-common.h"
-#include "diagnostic.h"
#include "tree-iterator.h"
/* Creates a FOR_STMT with INIT, COND, INCR and BODY as the initializer,
diff --git a/gcc/cp/cp-cilkplus.c b/gcc/cp/cp-cilkplus.c
index 74662b1..42af45f 100644
--- a/gcc/cp/cp-cilkplus.c
+++ b/gcc/cp/cp-cilkplus.c
@@ -24,7 +24,6 @@
#include "system.h"
#include "coretypes.h"
#include "cp-tree.h"
-#include "diagnostic-core.h"
#include "tree-iterator.h"
#include "tree-inline.h" /* for copy_tree_body_r. */
#include "cilk.h"
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c
index e37cbc7..e4b50e5 100644
--- a/gcc/cp/cp-gimplify.c
+++ b/gcc/cp/cp-gimplify.c
@@ -22,26 +22,21 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
+#include "target.h"
#include "function.h"
-#include "predict.h"
#include "basic-block.h"
#include "tree.h"
#include "cp-tree.h"
+#include "c-family/c-common.h"
#include "gimple.h"
-#include "hard-reg-set.h"
-#include "alias.h"
+#include "predict.h"
#include "stor-layout.h"
-#include "c-family/c-common.h"
#include "tree-iterator.h"
#include "internal-fn.h"
#include "gimplify.h"
#include "flags.h"
-#include "splay-tree.h"
-#include "target.h"
#include "c-family/c-ubsan.h"
#include "cilk.h"
-#include "gimplify.h"
/* Forward declarations. */
diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c
index 45f41c0..451e03b 100644
--- a/gcc/cp/cp-lang.c
+++ b/gcc/cp/cp-lang.c
@@ -21,17 +21,15 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
-#include "stor-layout.h"
#include "cp-tree.h"
#include "c-family/c-common.h"
+#include "stor-layout.h"
#include "langhooks.h"
#include "langhooks-def.h"
#include "debug.h"
#include "cp-objcp-common.h"
-#include "target.h"
#include "parser.h"
enum c_language_kind c_language = clk_cxx;
diff --git a/gcc/cp/cp-objcp-common.c b/gcc/cp/cp-objcp-common.c
index 22f063b..e5fe837 100644
--- a/gcc/cp/cp-objcp-common.c
+++ b/gcc/cp/cp-objcp-common.c
@@ -22,13 +22,11 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
#include "cp-tree.h"
#include "c-family/c-common.h"
#include "langhooks.h"
#include "langhooks-def.h"
-#include "diagnostic.h"
#include "debug.h"
#include "cxx-pretty-print.h"
#include "cp-objcp-common.h"
diff --git a/gcc/cp/cp-ubsan.c b/gcc/cp/cp-ubsan.c
index 6486218..86af6c7 100644
--- a/gcc/cp/cp-ubsan.c
+++ b/gcc/cp/cp-ubsan.c
@@ -21,25 +21,22 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "alias.h"
-#include "predict.h"
#include "basic-block.h"
#include "tree.h"
#include "cp-tree.h"
+#include "c-family/c-common.h"
#include "gimple.h"
-#include "options.h"
+#include "predict.h"
+#include "stringpool.h"
+#include "cgraph.h"
#include "output.h"
#include "toplev.h"
#include "ubsan.h"
-#include "c-family/c-common.h"
#include "c-family/c-ubsan.h"
#include "asan.h"
#include "internal-fn.h"
#include "stor-layout.h"
#include "builtins.h"
-#include "fold-const.h"
-#include "stringpool.h"
-#include "cgraph.h"
/* Test if we should instrument vptr access. */
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c
index b615880..e764ee1 100644
--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -27,16 +27,15 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "alias.h"
#include "stor-layout.h"
#include "flags.h"
-#include "cp-tree.h"
#include "intl.h"
#include "convert.h"
#include "decl.h"
-#include "target.h"
static tree cp_convert_to_pointer (tree, tree, tsubst_flags_t);
static tree convert_to_pointer_force (tree, tree, tsubst_flags_t);
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index 879eb71..ea6b4c5 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -22,8 +22,8 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "intl.h"
#include "cp-tree.h"
+#include "intl.h"
#include "cxx-pretty-print.h"
#include "tree-pretty-print.h"
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index c5ceb5a..bd3f2bc6 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -29,38 +29,31 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
+#include "c-family/c-target.h"
#include "tree.h"
-#include "tree-hasher.h"
+#include "cp-tree.h"
+#include "c-family/c-common.h"
+#include "timevar.h"
+#include "tm_p.h"
#include "stringpool.h"
+#include "cgraph.h"
+#include "tree-hasher.h"
#include "stor-layout.h"
#include "varasm.h"
#include "attribs.h"
#include "calls.h"
#include "flags.h"
-#include "cp-tree.h"
#include "tree-iterator.h"
#include "tree-inline.h"
#include "decl.h"
#include "intl.h"
#include "toplev.h"
-#include "tm_p.h"
-#include "target.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "c-family/c-pragma.h"
-#include "c-family/c-target.h"
#include "c-family/c-ubsan.h"
-#include "diagnostic.h"
-#include "intl.h"
#include "debug.h"
-#include "timevar.h"
-#include "splay-tree.h"
#include "plugin.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "cilk.h"
#include "builtins.h"
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 3b3817e..01d4607 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -29,31 +29,25 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "c-family/c-common.h"
+#include "timevar.h"
#include "stringpool.h"
+#include "cgraph.h"
#include "varasm.h"
#include "attribs.h"
#include "stor-layout.h"
#include "calls.h"
#include "flags.h"
-#include "cp-tree.h"
#include "decl.h"
#include "toplev.h"
-#include "timevar.h"
-#include "cpplib.h"
-#include "target.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "tree-inline.h"
#include "c-family/c-pragma.h"
#include "dumpfile.h"
#include "intl.h"
-#include "splay-tree.h"
#include "langhooks.h"
#include "c-family/c-ada-spec.h"
#include "asan.h"
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index 25a15d7..471e124 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -22,9 +22,9 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
#include "cp-tree.h"
+#include "alias.h"
#include "tree-dump.h"
static void dump_access (dump_info_p, tree);
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 17870b5..b0280d2 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -21,12 +21,11 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
-#include "stringpool.h"
#include "cp-tree.h"
+#include "stringpool.h"
+#include "alias.h"
#include "flags.h"
-#include "diagnostic.h"
#include "tree-diagnostic.h"
#include "langhooks-def.h"
#include "intl.h"
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index d2d1531..abcfde8 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -24,17 +24,16 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
#include "stringpool.h"
+#include "alias.h"
#include "trans-mem.h"
#include "attribs.h"
-#include "cp-tree.h"
#include "flags.h"
#include "tree-inline.h"
#include "tree-iterator.h"
-#include "target.h"
static void push_eh_cleanup (tree);
static tree prepare_eh_type (tree);
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 71dec3d..946ad89 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -23,11 +23,11 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
-#include "flags.h"
#include "cp-tree.h"
#include "tm_p.h"
+#include "alias.h"
+#include "flags.h"
/* Expand C++-specific constants. Currently, this means PTRMEM_CST. */
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index f53ce27..9d58efc 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -21,9 +21,9 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
#include "cp-tree.h"
+#include "alias.h"
#include "flags.h"
/* Friend data structures are described in cp-tree.h. */
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index d89e1ac..035ec29 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -23,14 +23,13 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
#include "stringpool.h"
+#include "alias.h"
#include "varasm.h"
-#include "cp-tree.h"
#include "flags.h"
-#include "target.h"
#include "gimplify.h"
#include "c-family/c-ubsan.h"
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index c1e7471..d10fff2 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -24,16 +24,15 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "alias.h"
-#include "tree.h"
-#include "options.h"
-#include "stringpool.h"
#include "tm.h"
-#include "hard-reg-set.h"
#include "function.h"
+#include "hard-reg-set.h"
+#include "tree.h"
+#include "cp-tree.h"
+#include "stringpool.h"
#include "cgraph.h"
+#include "alias.h"
#include "tree-iterator.h"
-#include "cp-tree.h"
#include "toplev.h"
/* Constructor for a lambda expression. */
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 6acf47e..3dc1155 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -25,16 +25,15 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
-#include "stringpool.h"
#include "cp-tree.h"
-#include "cpplib.h"
+#include "timevar.h"
+#include "tm_p.h"
+#include "stringpool.h"
+#include "alias.h"
#include "flags.h"
#include "c-family/c-pragma.h"
#include "c-family/c-objc.h"
-#include "tm_p.h"
-#include "timevar.h"
static int interface_strcmp (const char *);
static void init_cp_pragma (void);
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index faeea14..b6b9f38 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -47,22 +47,18 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
+#include "vtable-verify.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "tm_p.h"
+#include "stringpool.h"
+#include "cgraph.h"
+#include "alias.h"
#include "tree-hasher.h"
#include "stor-layout.h"
-#include "stringpool.h"
-#include "tm_p.h"
-#include "cp-tree.h"
-#include "obstack.h"
#include "flags.h"
-#include "target.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "attribs.h"
-#include "vtable-verify.h"
/* Debugging support. */
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 21eb32a..4de6cc2 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -24,21 +24,17 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "tm_p.h"
#include "stringpool.h"
+#include "cgraph.h"
+#include "alias.h"
#include "varasm.h"
-#include "cp-tree.h"
#include "flags.h"
#include "toplev.h"
-#include "tm_p.h"
-#include "target.h"
#include "common/common-target.h"
-#include "diagnostic.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
/* Various flags to control the mangling process. */
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index b503012..8744fff 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -22,16 +22,14 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "flags.h"
-#include "alias.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "timevar.h"
#include "stringpool.h"
+#include "flags.h"
+#include "alias.h"
#include "print-tree.h"
#include "attribs.h"
-#include "cp-tree.h"
-#include "name-lookup.h"
-#include "timevar.h"
-#include "diagnostic-core.h"
#include "intl.h"
#include "debug.h"
#include "c-family/c-pragma.h"
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 33c67c0..f947d09 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -21,23 +21,19 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
-#include "stringpool.h"
#include "cp-tree.h"
+#include "stringpool.h"
+#include "cgraph.h"
+#include "alias.h"
#include "params.h"
-#include "target.h"
#include "debug.h"
#include "tree-inline.h"
#include "flags.h"
#include "langhooks.h"
-#include "diagnostic-core.h"
#include "dumpfile.h"
#include "tree-iterator.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
/* Prototypes. */
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 169c17d..c8f8b3d 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -21,26 +21,20 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "timevar.h"
-#include "cpplib.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
-#include "print-tree.h"
+#include "cp-tree.h"
+#include "c-family/c-common.h"
+#include "timevar.h"
#include "stringpool.h"
+#include "cgraph.h"
+#include "print-tree.h"
#include "attribs.h"
#include "trans-mem.h"
-#include "cp-tree.h"
#include "intl.h"
#include "c-family/c-pragma.h"
#include "decl.h"
#include "flags.h"
-#include "diagnostic-core.h"
-#include "target.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "plugin.h"
#include "tree-pretty-print.h"
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 2745b40..438ec2d 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -28,22 +28,21 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "c-family/c-common.h"
+#include "timevar.h"
#include "stringpool.h"
#include "varasm.h"
#include "attribs.h"
#include "stor-layout.h"
#include "intl.h"
#include "flags.h"
-#include "cp-tree.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "cp-objcp-common.h"
#include "tree-inline.h"
#include "decl.h"
#include "toplev.h"
-#include "timevar.h"
#include "tree-iterator.h"
#include "type-utils.h"
#include "gimplify.h"
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index b0281df..d01e8ca 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -23,10 +23,10 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
-#include "print-tree.h"
#include "cp-tree.h"
+#include "alias.h"
+#include "print-tree.h"
void
cxx_print_decl (FILE *file, tree node, int indent)
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c
index 5155a2f..2978198 100644
--- a/gcc/cp/repo.c
+++ b/gcc/cp/repo.c
@@ -28,13 +28,11 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
-#include "stringpool.h"
#include "cp-tree.h"
-#include "obstack.h"
+#include "stringpool.h"
+#include "alias.h"
#include "toplev.h"
-#include "diagnostic-core.h"
#include "flags.h"
static const char *extract_string (const char **);
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 85be2b2..be25be4 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -20,18 +20,17 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
-#include "intl.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
+#include "cp-tree.h"
#include "tm_p.h"
#include "stringpool.h"
+#include "intl.h"
+#include "alias.h"
#include "stor-layout.h"
-#include "cp-tree.h"
#include "flags.h"
#include "convert.h"
-#include "target.h"
#include "c-family/c-pragma.h"
/* C++ returns type information to the user in struct type_info
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 56bb266..93054bd 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -24,14 +24,13 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
#include "cp-tree.h"
+#include "alias.h"
#include "intl.h"
#include "flags.h"
#include "toplev.h"
-#include "target.h"
static int is_subobject_of_p (tree, tree);
static tree dfs_lookup_base (tree, void *);
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index a6d7e36..c73dcd0 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -26,29 +26,24 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
+#include "bitmap.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "c-family/c-common.h"
+#include "timevar.h"
+#include "stringpool.h"
+#include "cgraph.h"
#include "stmt.h"
#include "varasm.h"
#include "stor-layout.h"
-#include "stringpool.h"
-#include "cp-tree.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "tree-inline.h"
#include "intl.h"
#include "toplev.h"
#include "flags.h"
-#include "timevar.h"
-#include "diagnostic.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "tree-iterator.h"
-#include "target.h"
#include "gimplify.h"
-#include "bitmap.h"
#include "omp-low.h"
#include "builtins.h"
#include "convert.h"
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index b9b801f..11bd129 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -22,23 +22,20 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "gimple-expr.h"
+#include "cgraph.h"
+#include "alias.h"
#include "fold-const.h"
#include "tree-hasher.h"
#include "stor-layout.h"
#include "print-tree.h"
#include "tree-iterator.h"
-#include "cp-tree.h"
#include "flags.h"
#include "tree-inline.h"
#include "debug.h"
#include "convert.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
-#include "splay-tree.h"
-#include "gimple-expr.h"
#include "gimplify.h"
#include "attribs.h"
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 3147609..9d043e0 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -27,19 +27,15 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "alias.h"
+#include "target.h"
#include "tree.h"
-#include "fold-const.h"
+#include "cp-tree.h"
+#include "c-family/c-common.h"
#include "stor-layout.h"
#include "varasm.h"
-#include "cp-tree.h"
#include "flags.h"
-#include "diagnostic.h"
#include "intl.h"
-#include "target.h"
#include "convert.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "c-family/c-ubsan.h"
#include "params.h"
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index e61a57f..b717ea9 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -29,14 +29,13 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "alias.h"
#include "tree.h"
+#include "cp-tree.h"
+#include "alias.h"
#include "stor-layout.h"
#include "varasm.h"
#include "intl.h"
-#include "cp-tree.h"
#include "flags.h"
-#include "diagnostic-core.h"
static tree
process_init_constructor (tree type, tree init, tsubst_flags_t complain);
diff --git a/gcc/cp/vtable-class-hierarchy.c b/gcc/cp/vtable-class-hierarchy.c
index 2c59f14..d5c31e8 100644
--- a/gcc/cp/vtable-class-hierarchy.c
+++ b/gcc/cp/vtable-class-hierarchy.c
@@ -113,16 +113,14 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "cp-tree.h"
-#include "output.h"
#include "tm.h"
-#include "hard-reg-set.h"
-#include "function.h"
+#include "vtable-verify.h"
+#include "cp-tree.h"
+#include "stringpool.h"
#include "cgraph.h"
+#include "output.h"
#include "tree-iterator.h"
-#include "vtable-verify.h"
#include "gimplify.h"
-#include "stringpool.h"
#include "stor-layout.h"
static int num_calls_to_regset = 0;