summaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog12
-rw-r--r--gcc/c/c-array-notation.c3
-rw-r--r--gcc/c/c-aux-info.c4
-rw-r--r--gcc/c/c-convert.c8
-rw-r--r--gcc/c/c-decl.c24
-rw-r--r--gcc/c/c-errors.c3
-rw-r--r--gcc/c/c-lang.c4
-rw-r--r--gcc/c/c-objc-common.c3
-rw-r--r--gcc/c/c-parser.c20
-rw-r--r--gcc/c/c-typeck.c18
10 files changed, 44 insertions, 55 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index d203f9d5bef..20df0865724 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,15 @@
+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.
+
2015-10-26 Jim Wilson <jim.wilson@linaro.org>
PR debug/66068
diff --git a/gcc/c/c-array-notation.c b/gcc/c/c-array-notation.c
index 3de75692973..0537cbc7fdd 100644
--- a/gcc/c/c-array-notation.c
+++ b/gcc/c/c-array-notation.c
@@ -69,12 +69,11 @@
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include "alias.h"
+#include "c-family/c-common.h"
#include "c-tree.h"
#include "gimple-expr.h"
#include "tree-iterator.h"
#include "opts.h"
-#include "c-family/c-common.h"
/* If *VALUE is not of type INTEGER_CST, PARM_DECL or VAR_DECL, then map it
to a variable and then set *VALUE to the new variable. */
diff --git a/gcc/c/c-aux-info.c b/gcc/c/c-aux-info.c
index d983e2ccf43..e8b6de64dc3 100644
--- a/gcc/c/c-aux-info.c
+++ b/gcc/c/c-aux-info.c
@@ -24,10 +24,10 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
-#include "flags.h"
#include "tree.h"
-#include "alias.h"
#include "c-tree.h"
+#include "flags.h"
+#include "alias.h"
enum formals_style {
ansi,
diff --git a/gcc/c/c-convert.c b/gcc/c/c-convert.c
index f023de92438..3d16ccb6eed 100644
--- a/gcc/c/c-convert.c
+++ b/gcc/c/c-convert.c
@@ -26,15 +26,13 @@ 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 "tree.h"
-#include "alias.h"
-#include "flags.h"
-#include "convert.h"
#include "c-family/c-common.h"
#include "c-tree.h"
+#include "flags.h"
+#include "convert.h"
#include "langhooks.h"
-#include "target.h"
#include "ubsan.h"
/* Change of width--truncation and extension of integers or reals--
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index 4a0e090dbd0..ab9ba5d808d 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -27,38 +27,32 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
-#include "intl.h"
+#include "target.h"
+#include "function.h"
#include "tree.h"
-#include "alias.h"
-#include "fold-const.h"
+#include "c-family/c-common.h"
+#include "c-tree.h"
+#include "timevar.h"
+#include "tm_p.h"
+#include "stringpool.h"
+#include "cgraph.h"
+#include "intl.h"
#include "print-tree.h"
#include "stor-layout.h"
#include "varasm.h"
#include "attribs.h"
-#include "stringpool.h"
#include "tree-inline.h"
#include "flags.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "c-tree.h"
#include "toplev.h"
-#include "tm_p.h"
-#include "cpplib.h"
-#include "target.h"
#include "debug.h"
#include "opts.h"
-#include "timevar.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
#include "c-family/c-pragma.h"
#include "c-family/c-ubsan.h"
#include "c-lang.h"
#include "langhooks.h"
#include "tree-iterator.h"
-#include "diagnostic-core.h"
#include "dumpfile.h"
-#include "cgraph.h"
#include "langhooks-def.h"
#include "plugin.h"
#include "c-family/c-ada-spec.h"
diff --git a/gcc/c/c-errors.c b/gcc/c/c-errors.c
index e5fbf05e76f..d9176ec0f11 100644
--- a/gcc/c/c-errors.c
+++ b/gcc/c/c-errors.c
@@ -23,11 +23,10 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
-#include "alias.h"
#include "c-tree.h"
#include "tm_p.h"
+#include "alias.h"
#include "flags.h"
-#include "diagnostic.h"
#include "opts.h"
/* Issue an ISO C99 pedantic warning MSGID if -pedantic outside C11 mode,
diff --git a/gcc/c/c-lang.c b/gcc/c/c-lang.c
index d3c266f3416..9728a4797e4 100644
--- a/gcc/c/c-lang.c
+++ b/gcc/c/c-lang.c
@@ -23,13 +23,11 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
-#include "alias.h"
-#include "c-tree.h"
#include "c-family/c-common.h"
+#include "c-tree.h"
#include "langhooks.h"
#include "langhooks-def.h"
#include "tree-inline.h"
-#include "diagnostic-core.h"
#include "c-objc-common.h"
#include "c-family/c-pragma.h"
diff --git a/gcc/c/c-objc-common.c b/gcc/c/c-objc-common.c
index 47fd7de05ed..ac61191c511 100644
--- a/gcc/c/c-objc-common.c
+++ b/gcc/c/c-objc-common.c
@@ -21,11 +21,10 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include "alias.h"
#include "c-tree.h"
+#include "alias.h"
#include "intl.h"
#include "c-family/c-pretty-print.h"
-#include "diagnostic.h"
#include "tree-pretty-print.h"
#include "langhooks.h"
#include "c-objc-common.h"
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index 05700769449..90038d560e0 100644
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -38,29 +38,23 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h" /* For rtl.h: needs enum reg_class. */
+#include "target.h"
+#include "function.h"
#include "tree.h"
-#include "alias.h"
-#include "flags.h"
-#include "fold-const.h"
+#include "c-family/c-common.h"
+#include "c-tree.h"
+#include "timevar.h"
#include "stringpool.h"
+#include "cgraph.h"
+#include "flags.h"
#include "attribs.h"
#include "stor-layout.h"
#include "varasm.h"
#include "trans-mem.h"
#include "langhooks.h"
-#include "cpplib.h"
-#include "timevar.h"
#include "c-family/c-pragma.h"
-#include "c-tree.h"
#include "c-lang.h"
-#include "flags.h"
-#include "c-family/c-common.h"
#include "c-family/c-objc.h"
-#include "target.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "cgraph.h"
#include "plugin.h"
#include "omp-low.h"
#include "builtins.h"
diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c
index 1b0b9e2a6d7..2363b9b4340 100644
--- a/gcc/c/c-typeck.c
+++ b/gcc/c/c-typeck.c
@@ -26,31 +26,27 @@ 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 "bitmap.h"
#include "tree.h"
-#include "alias.h"
-#include "fold-const.h"
+#include "c-family/c-common.h"
+#include "c-tree.h"
+#include "gimple-expr.h"
+#include "predict.h"
#include "stor-layout.h"
#include "trans-mem.h"
#include "varasm.h"
#include "stmt.h"
#include "langhooks.h"
-#include "c-tree.h"
#include "c-lang.h"
#include "flags.h"
#include "intl.h"
-#include "target.h"
#include "tree-iterator.h"
-#include "bitmap.h"
-#include "predict.h"
-#include "hard-reg-set.h"
-#include "function.h"
-#include "gimple-expr.h"
#include "gimplify.h"
#include "tree-inline.h"
#include "omp-low.h"
#include "c-family/c-objc.h"
-#include "c-family/c-common.h"
#include "c-family/c-ubsan.h"
#include "cilk.h"
#include "gomp-constants.h"