aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/fortran/ChangeLog30
-rw-r--r--gcc/fortran/arith.h2
-rw-r--r--gcc/fortran/bbt.c1
-rw-r--r--gcc/fortran/constructor.h4
-rw-r--r--gcc/fortran/convert.c2
-rw-r--r--gcc/fortran/data.c1
-rw-r--r--gcc/fortran/dependency.c1
-rw-r--r--gcc/fortran/dump-parse-tree.c1
-rw-r--r--gcc/fortran/gfortran.h1
-rw-r--r--gcc/fortran/match.h2
-rw-r--r--gcc/fortran/openmp.c2
-rw-r--r--gcc/fortran/options.c2
-rw-r--r--gcc/fortran/parse.h2
-rw-r--r--gcc/fortran/primary.c1
-rw-r--r--gcc/fortran/scanner.c2
-rw-r--r--gcc/fortran/target-memory.h2
-rw-r--r--gcc/fortran/trans-array.c2
-rw-r--r--gcc/fortran/trans-common.c3
-rw-r--r--gcc/fortran/trans-const.c2
-rw-r--r--gcc/fortran/trans-decl.c2
-rw-r--r--gcc/fortran/trans-expr.c2
-rw-r--r--gcc/fortran/trans-intrinsic.c2
-rw-r--r--gcc/fortran/trans-io.c2
-rw-r--r--gcc/fortran/trans-openmp.c2
-rw-r--r--gcc/fortran/trans-stmt.c1
-rw-r--r--gcc/fortran/trans-types.c2
-rw-r--r--gcc/fortran/trans.c2
27 files changed, 47 insertions, 31 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 8f4656b..5597c03 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,33 @@
+2010-05-21 Tobias Burnus <burnus@net-b.de>
+
+ * gfortran.h: Do not include system.h.
+ * bbt.c: Include system.h.
+ * data.c: Ditto.
+ * dependency.c: Ditto.
+ * dump-parse-tree.c: Ditto.
+ * arith.h: Do not include gfortran.h.
+ * constructor.h: Do not include gfortran.h and splay-tree.h.
+ * match.h: Do not include gfortran.h.
+ * parse.h: Ditto.
+ * target-memory.h: Ditto.
+ * openmp.c: Do not include toplev.h and target.h.
+ * trans-stmt.c: Ditto not include toplev.h.
+ * primary.c: Ditto.
+ * trans-common.c: Tell why toplev.h is needed. And
+ do not include target.h.
+ * trans-expr.c: Tell why toplev.h is needed.
+ * trans-array.c: Ditto.
+ * trans-openmp.c: Ditto.
+ * trans-const.c: Ditto.
+ * trans.c: Ditto.
+ * trans-types.c: Ditto.
+ * trans-io.c: Ditto.
+ * trans-decl.c: Ditto.
+ * scanner.c: Ditto.
+ * convert.c: Ditto.
+ * trans-intrinsic.c: Ditto.
+ * options.c: Ditto.
+
2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/43851
diff --git a/gcc/fortran/arith.h b/gcc/fortran/arith.h
index 7066bb0..9d79634 100644
--- a/gcc/fortran/arith.h
+++ b/gcc/fortran/arith.h
@@ -22,8 +22,6 @@ along with GCC; see the file COPYING3. If not see
#ifndef GFC_ARITH_H
#define GFC_ARITH_H
-#include "gfortran.h"
-
/* MPFR also does not have the conversion of a mpfr_t to a mpz_t, so declare
a function for this as well. */
diff --git a/gcc/fortran/bbt.c b/gcc/fortran/bbt.c
index fa60e4f..1e7d8c0 100644
--- a/gcc/fortran/bbt.c
+++ b/gcc/fortran/bbt.c
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see
July 1997 Doctor Dobb's Journal, "Treaps in Java". */
#include "config.h"
+#include "system.h"
#include "gfortran.h"
typedef struct gfc_treap
diff --git a/gcc/fortran/constructor.h b/gcc/fortran/constructor.h
index 1f7d783..558de7f 100644
--- a/gcc/fortran/constructor.h
+++ b/gcc/fortran/constructor.h
@@ -21,10 +21,6 @@ along with GCC; see the file COPYING3. If not see
#ifndef GFC_CONSTRUCTOR_H
#define GFC_CONSTRUCTOR_H
-#include "gfortran.h"
-#include "splay-tree.h"
-
-
/* Get a new constructor structure. */
gfc_constructor *gfc_constructor_get (void);
diff --git a/gcc/fortran/convert.c b/gcc/fortran/convert.c
index 1e7d090..f69ea23 100644
--- a/gcc/fortran/convert.c
+++ b/gcc/fortran/convert.c
@@ -40,7 +40,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree.h"
#include "flags.h"
#include "convert.h"
-#include "toplev.h"
+#include "toplev.h" /* For error. */
#include "gfortran.h"
#include "trans.h"
diff --git a/gcc/fortran/data.c b/gcc/fortran/data.c
index 6561cdc..dd5e62c 100644
--- a/gcc/fortran/data.c
+++ b/gcc/fortran/data.c
@@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see
trans-array.c. */
#include "config.h"
+#include "system.h"
#include "gfortran.h"
#include "data.h"
#include "constructor.h"
diff --git a/gcc/fortran/dependency.c b/gcc/fortran/dependency.c
index adeea6a..cf6bfd3 100644
--- a/gcc/fortran/dependency.c
+++ b/gcc/fortran/dependency.c
@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see
if dependencies. Ideally these would probably be merged. */
#include "config.h"
+#include "system.h"
#include "gfortran.h"
#include "dependency.h"
#include "constructor.h"
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 967a0a5..e90b094 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -32,6 +32,7 @@ along with GCC; see the file COPYING3. If not see
TODO: Dump DATA. */
#include "config.h"
+#include "system.h"
#include "gfortran.h"
#include "constructor.h"
diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h
index ec334c5..0ffcfae 100644
--- a/gcc/fortran/gfortran.h
+++ b/gcc/fortran/gfortran.h
@@ -34,7 +34,6 @@ along with GCC; see the file COPYING3. If not see
#include "libgfortran.h"
-#include "system.h"
#include "intl.h"
#include "coretypes.h"
#include "input.h"
diff --git a/gcc/fortran/match.h b/gcc/fortran/match.h
index 67e7741..049f3d3 100644
--- a/gcc/fortran/match.h
+++ b/gcc/fortran/match.h
@@ -23,8 +23,6 @@ along with GCC; see the file COPYING3. If not see
#ifndef GFC_MATCH_H
#define GFC_MATCH_H
-#include "gfortran.h"
-
/* gfc_new_block points to the symbol of a newly matched block. */
extern gfc_symbol *gfc_new_block;
diff --git a/gcc/fortran/openmp.c b/gcc/fortran/openmp.c
index 4e96521..6a56515 100644
--- a/gcc/fortran/openmp.c
+++ b/gcc/fortran/openmp.c
@@ -26,8 +26,6 @@ along with GCC; see the file COPYING3. If not see
#include "match.h"
#include "parse.h"
#include "pointer-set.h"
-#include "target.h"
-#include "toplev.h"
/* Match an end of OpenMP directive. End of OpenMP directive is optional
whitespace, followed by '\n' or comment '!'. */
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index a5c0b92..f8d600b4 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -33,7 +33,7 @@ along with GCC; see the file COPYING3. If not see
#include "gfortran.h"
#include "target.h"
#include "cpp.h"
-#include "toplev.h"
+#include "toplev.h" /* For sorry. */
#include "tm.h"
gfc_option_t gfc_option;
diff --git a/gcc/fortran/parse.h b/gcc/fortran/parse.h
index 649e54d..faa813d 100644
--- a/gcc/fortran/parse.h
+++ b/gcc/fortran/parse.h
@@ -23,8 +23,6 @@ along with GCC; see the file COPYING3. If not see
#ifndef GFC_PARSE_H
#define GFC_PARSE_H
-#include "gfortran.h"
-
/* Enum for what the compiler is currently doing. */
typedef enum
{
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index 09f4eb1..53da762 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see
#include "arith.h"
#include "match.h"
#include "parse.h"
-#include "toplev.h"
#include "constructor.h"
/* Matches a kind-parameter expression, which is either a named
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 711042d..7b4ab24 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -44,7 +44,7 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "gfortran.h"
-#include "toplev.h"
+#include "toplev.h" /* For set_src_pwd. */
#include "debug.h"
#include "flags.h"
#include "cpp.h"
diff --git a/gcc/fortran/target-memory.h b/gcc/fortran/target-memory.h
index 6033626..7cddc66 100644
--- a/gcc/fortran/target-memory.h
+++ b/gcc/fortran/target-memory.h
@@ -22,8 +22,6 @@ along with GCC; see the file COPYING3. If not see
#ifndef GFC_TARGET_MEMORY_H
#define GFC_TARGET_MEMORY_H
-#include "gfortran.h"
-
/* Convert a BOZ to REAL or COMPLEX. */
bool gfc_convert_boz (gfc_expr *, gfc_typespec *);
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c
index 1f6021a..ddfe40f 100644
--- a/gcc/fortran/trans-array.c
+++ b/gcc/fortran/trans-array.c
@@ -80,7 +80,7 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include "toplev.h"
+#include "toplev.h" /* For internal_error/fatal_error. */
#include "flags.h"
#include "gfortran.h"
#include "constructor.h"
diff --git a/gcc/fortran/trans-common.c b/gcc/fortran/trans-common.c
index 5881113..f577710 100644
--- a/gcc/fortran/trans-common.c
+++ b/gcc/fortran/trans-common.c
@@ -96,9 +96,8 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "target.h"
#include "tree.h"
-#include "toplev.h"
+#include "toplev.h" /* For exact_log2. */
#include "tm.h" /* For rtl.h. */
#include "rtl.h" /* For decl_default_tls_model. */
#include "gfortran.h"
diff --git a/gcc/fortran/trans-const.c b/gcc/fortran/trans-const.c
index 7ced6f4..6d4f222 100644
--- a/gcc/fortran/trans-const.c
+++ b/gcc/fortran/trans-const.c
@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tree.h"
#include "realmpfr.h"
-#include "toplev.h"
+#include "toplev.h" /* For fatal_error. */
#include "double-int.h"
#include "gfortran.h"
#include "trans.h"
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 5bafdcc..2eabfcc 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-dump.h"
#include "gimple.h" /* For create_tmp_var_raw. */
#include "ggc.h"
-#include "toplev.h"
+#include "toplev.h" /* For announce_function/internal_error. */
#include "tm.h" /* For rtl.h. */
#include "rtl.h" /* For decl_default_tls_model. */
#include "target.h"
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index b76a324..6c5c328 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include "toplev.h"
+#include "toplev.h" /* For fatal_error. */
#include "langhooks.h"
#include "flags.h"
#include "gfortran.h"
diff --git a/gcc/fortran/trans-intrinsic.c b/gcc/fortran/trans-intrinsic.c
index 1113b5c..94dcc29 100644
--- a/gcc/fortran/trans-intrinsic.c
+++ b/gcc/fortran/trans-intrinsic.c
@@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see
#include "tm.h" /* For UNITS_PER_WORD. */
#include "tree.h"
#include "ggc.h"
-#include "toplev.h"
+#include "toplev.h" /* For rest_of_decl_compilation/internal_error. */
#include "flags.h"
#include "gfortran.h"
#include "arith.h"
diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c
index ef6a59d..1608a5e 100644
--- a/gcc/fortran/trans-io.c
+++ b/gcc/fortran/trans-io.c
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tree.h"
#include "ggc.h"
-#include "toplev.h"
+#include "toplev.h" /* For internal_error. */
#include "gfortran.h"
#include "trans.h"
#include "trans-stmt.h"
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c
index 53ce4ff..50e7847 100644
--- a/gcc/fortran/trans-openmp.c
+++ b/gcc/fortran/trans-openmp.c
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tree.h"
#include "gimple.h" /* For create_tmp_var_raw. */
-#include "toplev.h"
+#include "toplev.h" /* For internal_error. */
#include "gfortran.h"
#include "trans.h"
#include "trans-stmt.h"
diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c
index e0fa371..5c7d151 100644
--- a/gcc/fortran/trans-stmt.c
+++ b/gcc/fortran/trans-stmt.c
@@ -25,7 +25,6 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include "toplev.h"
#include "gfortran.h"
#include "flags.h"
#include "trans.h"
diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c
index 6b625f8..d794c2f 100644
--- a/gcc/fortran/trans-types.c
+++ b/gcc/fortran/trans-types.c
@@ -30,7 +30,7 @@ along with GCC; see the file COPYING3. If not see
#include "langhooks.h" /* For iso-c-bindings.def. */
#include "target.h"
#include "ggc.h"
-#include "toplev.h"
+#include "toplev.h" /* For rest_of_decl_compilation/fatal_error. */
#include "gfortran.h"
#include "trans.h"
#include "trans-types.h"
diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c
index 4c8a6d2..43b69d5 100644
--- a/gcc/fortran/trans.c
+++ b/gcc/fortran/trans.c
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree.h"
#include "gimple.h" /* For create_tmp_var_raw. */
#include "tree-iterator.h"
-#include "toplev.h"
+#include "toplev.h" /* For internal_error. */
#include "defaults.h"
#include "flags.h"
#include "gfortran.h"