summaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-23 17:18:24 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-23 17:18:24 +0000
commitdca58d219480ce3c10fbc7442128ece6cc724d8f (patch)
tree21db07450552c82bb5fa94b2769e882a2b6db8d0 /gcc/fortran
parentc6e9953dbdc5be594f3222bce7fb73f961d48f6e (diff)
downloadgcc-dca58d219480ce3c10fbc7442128ece6cc724d8f.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159763 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-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 8f4656bba6c..5597c0361d8 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 7066bb07949..9d79634aea0 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 fa60e4fee22..1e7d8c07f84 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 1f7d78388f8..558de7f180a 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 1e7d090cbf1..f69ea2386ef 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 6561cdc338c..dd5e62cb2de 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 adeea6ab25d..cf6bfd3f062 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 967a0a543ff..e90b0941885 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 ec334c5a13f..0ffcfae9a55 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 67e77418a79..049f3d3285c 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 4e965217cc7..6a56515298e 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 a5c0b92109f..f8d600b4692 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 649e54dac82..faa813d88d0 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 09f4eb1c6d4..53da762e2ef 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 711042ddcb2..7b4ab244136 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 603362638dd..7cddc669983 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 1f6021a2989..ddfe40f7a54 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 58811136a0e..f577710949a 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 7ced6f44cb9..6d4f222ede6 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 5bafdcc32cc..2eabfccd095 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 b76a3245d89..6c5c3286eb8 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 1113b5cd3cc..94dcc296dbf 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 ef6a59db61b..1608a5e6598 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 53ce4ffec5a..50e7847d0e1 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 e0fa3718586..5c7d1512eee 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 6b625f8e2e7..d794c2fb668 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 4c8a6d23eef..43b69d5a2b0 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"