summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 21:43:55 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 21:43:55 +0000
commit7436502b71e83bf9b6f91c937ad724a12721ea0e (patch)
tree3a53104e3cc8d16f51bdf0dabaafa5ed63c36e5a
parent007b777a3b5e45fd8dbdd001c25ba630592bf605 (diff)
downloadgcc-7436502b71e83bf9b6f91c937ad724a12721ea0e.tar.gz
* arith.c: Add system.h; remove string.h
* decl.c: Ditto * matchexp.c: Ditto * parse.c: Ditto * resolve.c: Ditto * st.c: Ditto * check.c: Remove stdlib.h and stdarg.h * error.c: Remove stdlib.h, stdarg.h, stdio.h, string.h * expr.c: Add system.h; remove stdarg.h, stdio.h, and string.h * f95-lang.c: Add system.h; remove stdio.h * interface.c: Add system.h; remove stdlib.h and string.h * intrinsic.c: Remove stdarg.h, stdio.h, and string.h * io.c: Remove string.h * simplify.c: Ditto * match.c: Remove stdarg.h and string.h * misc.c: Update copyright; add system.h; remove stdlib.h, string.h, and sys/stat.h * module.c: Add system.h; remove string.h, stdio.h, errno.h, unistd.h, and time.h * option.c: Remove string.h and stdlib.h * primary.c: Ditto * scanner.c: Update copyright; add system.h; remove stdlib.h, stdio.h, string.h, and strings.h * symbol.c: Add system.h; remove stdlib.h, stdio.h, and string.h * trans-array.c: Remove stdio.h and gmp.h * trans-const.c: Ditto * trans-expr.c: Ditto * trans-io.c: Ditto * trans-stmt.c: Ditto * trans.c: Ditto * trans-intrinsic.c: Remove stdio.h and string.h git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92866 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/fortran/ChangeLog34
-rw-r--r--gcc/fortran/array.c3
-rw-r--r--gcc/fortran/check.c4
-rw-r--r--gcc/fortran/decl.c2
-rw-r--r--gcc/fortran/error.c6
-rw-r--r--gcc/fortran/expr.c5
-rw-r--r--gcc/fortran/f95-lang.c3
-rw-r--r--gcc/fortran/interface.c4
-rw-r--r--gcc/fortran/intrinsic.c5
-rw-r--r--gcc/fortran/io.c3
-rw-r--r--gcc/fortran/match.c4
-rw-r--r--gcc/fortran/matchexp.c2
-rw-r--r--gcc/fortran/misc.c7
-rw-r--r--gcc/fortran/module.c7
-rw-r--r--gcc/fortran/options.c2
-rw-r--r--gcc/fortran/parse.c3
-rw-r--r--gcc/fortran/primary.c3
-rw-r--r--gcc/fortran/resolve.c4
-rw-r--r--gcc/fortran/scanner.c8
-rw-r--r--gcc/fortran/simplify.c3
-rw-r--r--gcc/fortran/st.c2
-rw-r--r--gcc/fortran/symbol.c5
-rw-r--r--gcc/fortran/trans-array.c2
-rw-r--r--gcc/fortran/trans-const.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-stmt.c2
-rw-r--r--gcc/fortran/trans.c2
29 files changed, 51 insertions, 82 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index ae3b9cd7853..7c585a6e3d7 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,37 @@
+2005-01-03 Steven G. Kargl <kargls@comcast.net>
+
+ * arith.c: Add system.h; remove string.h
+ * decl.c: Ditto
+ * matchexp.c: Ditto
+ * parse.c: Ditto
+ * resolve.c: Ditto
+ * st.c: Ditto
+ * check.c: Remove stdlib.h and stdarg.h
+ * error.c: Remove stdlib.h, stdarg.h, stdio.h, string.h
+ * expr.c: Add system.h; remove stdarg.h, stdio.h, and string.h
+ * f95-lang.c: Add system.h; remove stdio.h
+ * interface.c: Add system.h; remove stdlib.h and string.h
+ * intrinsic.c: Remove stdarg.h, stdio.h, and string.h
+ * io.c: Remove string.h
+ * simplify.c: Ditto
+ * match.c: Remove stdarg.h and string.h
+ * misc.c: Update copyright; add system.h; remove stdlib.h,
+ string.h, and sys/stat.h
+ * module.c: Add system.h; remove string.h, stdio.h, errno.h,
+ unistd.h, and time.h
+ * option.c: Remove string.h and stdlib.h
+ * primary.c: Ditto
+ * scanner.c: Update copyright; add system.h; remove stdlib.h,
+ stdio.h, string.h, and strings.h
+ * symbol.c: Add system.h; remove stdlib.h, stdio.h, and string.h
+ * trans-array.c: Remove stdio.h and gmp.h
+ * trans-const.c: Ditto
+ * trans-expr.c: Ditto
+ * trans-io.c: Ditto
+ * trans-stmt.c: Ditto
+ * trans.c: Ditto
+ * trans-intrinsic.c: Remove stdio.h and string.h
+
2004-12-29 Steven G. Kargl <kargls@comcast.net>
* gfortran.h (gfc_case): fix typo in comment.
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c
index 93668130403..d99b525618a 100644
--- a/gcc/fortran/array.c
+++ b/gcc/fortran/array.c
@@ -20,11 +20,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#include "config.h"
+#include "system.h"
#include "gfortran.h"
#include "match.h"
-#include <string.h>
-
/* This parameter is the size of the largest array constructor that we
will expand to an array constructor without iterators.
Constructors larger than this will remain in the iterator form. */
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
index 3d67b1c4d1a..815ee2f6743 100644
--- a/gcc/fortran/check.c
+++ b/gcc/fortran/check.c
@@ -26,10 +26,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
has been sorted into the right order and has NULL arguments in the
correct places for missing optional arguments. */
-
-#include <stdlib.h>
-#include <stdarg.h>
-
#include "config.h"
#include "system.h"
#include "flags.h"
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 97b5e1f15e8..d29668d2b2c 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -21,10 +21,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
+#include "system.h"
#include "gfortran.h"
#include "match.h"
#include "parse.h"
-#include <string.h>
/* This flag is set if a an old-style length selector is matched
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c
index 084f0ef474e..7f0b57ca02f 100644
--- a/gcc/fortran/error.c
+++ b/gcc/fortran/error.c
@@ -28,12 +28,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#include "system.h"
-
-#include <string.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-
#include "flags.h"
#include "gfortran.h"
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 5037c8c6834..e1ab0999939 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -21,10 +21,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#include "config.h"
-#include <stdarg.h>
-#include <stdio.h>
-#include <string.h>
-
+#include "system.h"
#include "gfortran.h"
#include "arith.h"
#include "match.h"
diff --git a/gcc/fortran/f95-lang.c b/gcc/fortran/f95-lang.c
index f32b786b161..23eca0779fe 100644
--- a/gcc/fortran/f95-lang.c
+++ b/gcc/fortran/f95-lang.c
@@ -25,6 +25,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* declare required prototypes: */
#include "config.h"
+#include "system.h"
#include "ansidecl.h"
#include "system.h"
#include "coretypes.h"
@@ -49,8 +50,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "trans-types.h"
#include "trans-const.h"
-#include <stdio.h>
-
/* Language-dependent contents of an identifier. */
struct lang_identifier
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index 87b243775cf..7c7f7510b95 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -65,9 +65,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
the program unit name. */
#include "config.h"
-#include <string.h>
-#include <stdlib.h>
-
+#include "system.h"
#include "gfortran.h"
#include "match.h"
diff --git a/gcc/fortran/intrinsic.c b/gcc/fortran/intrinsic.c
index 2aa3f294ac8..f8548719be9 100644
--- a/gcc/fortran/intrinsic.c
+++ b/gcc/fortran/intrinsic.c
@@ -25,11 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#include "system.h"
#include "flags.h"
-
-#include <stdio.h>
-#include <stdarg.h>
-#include <string.h>
-
#include "gfortran.h"
#include "intrinsic.h"
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index 1ee7031a79f..022621cac6e 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -23,9 +23,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#include "system.h"
#include "flags.h"
-
-#include <string.h>
-
#include "gfortran.h"
#include "match.h"
#include "parse.h"
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index 825120f5ca9..3b3617820e1 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -24,10 +24,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#include "system.h"
#include "flags.h"
-
-#include <stdarg.h>
-#include <string.h>
-
#include "gfortran.h"
#include "match.h"
#include "parse.h"
diff --git a/gcc/fortran/matchexp.c b/gcc/fortran/matchexp.c
index 1035e8888c3..1a26420be4e 100644
--- a/gcc/fortran/matchexp.c
+++ b/gcc/fortran/matchexp.c
@@ -21,7 +21,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
-#include <string.h>
+#include "system.h"
#include "gfortran.h"
#include "arith.h"
#include "match.h"
diff --git a/gcc/fortran/misc.c b/gcc/fortran/misc.c
index 3f7058391eb..45117f5b5c8 100644
--- a/gcc/fortran/misc.c
+++ b/gcc/fortran/misc.c
@@ -1,5 +1,5 @@
/* Miscellaneous stuff that doesn't fit anywhere else.
- Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Contributed by Andy Vaught
This file is part of GCC.
@@ -21,10 +21,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-
+#include "system.h"
#include "gfortran.h"
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index d4bee5bf78f..4e449b12e6e 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -64,12 +64,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
particular order. */
#include "config.h"
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-#include <time.h>
-
+#include "system.h"
#include "gfortran.h"
#include "arith.h"
#include "match.h"
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index bdffbf3c2eb..700cebbdf6b 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -20,8 +20,6 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-#include <string.h>
-#include <stdlib.h>
#include "config.h"
#include "system.h"
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 11bd8efbff4..d9c74f9ed4a 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -22,9 +22,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
-#include <string.h>
+#include "system.h"
#include <setjmp.h>
-
#include "gfortran.h"
#include "match.h"
#include "parse.h"
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index 6484ec60cc2..32c6c36340c 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -23,9 +23,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#include "system.h"
#include "flags.h"
-
-#include <string.h>
-#include <stdlib.h>
#include "gfortran.h"
#include "arith.h"
#include "match.h"
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index 3d72f7dfa79..8bc638fcee5 100644
--- a/gcc/fortran/resolve.c
+++ b/gcc/fortran/resolve.c
@@ -19,10 +19,12 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330,Boston, MA
02111-1307, USA. */
+
#include "config.h"
+#include "system.h"
#include "gfortran.h"
#include "arith.h" /* For gfc_compare_expr(). */
-#include <string.h>
+
/* Stack to push the current if we descend into a block during
resolution. See resolve_branch() and resolve_code(). */
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 281ae88ba17..400cb4cb367 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -1,5 +1,5 @@
/* Character scanner.
- Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Contributed by Andy Vaught
This file is part of GCC.
@@ -42,11 +42,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
new characters and do a lot of jumping backwards. */
#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-
+#include "system.h"
#include "gfortran.h"
/* Structure for holding module and include file search path. */
diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c
index 5004b83acc9..bd46e959cd4 100644
--- a/gcc/fortran/simplify.c
+++ b/gcc/fortran/simplify.c
@@ -23,9 +23,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#include "system.h"
#include "flags.h"
-
-#include <string.h>
-
#include "gfortran.h"
#include "arith.h"
#include "intrinsic.h"
diff --git a/gcc/fortran/st.c b/gcc/fortran/st.c
index f3e3671cac8..b6515376e38 100644
--- a/gcc/fortran/st.c
+++ b/gcc/fortran/st.c
@@ -25,8 +25,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
target. */
#include "config.h"
+#include "system.h"
#include "gfortran.h"
-#include <string.h>
gfc_code new_st;
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index d1443bde077..ec7a9b8c7aa 100644
--- a/gcc/fortran/symbol.c
+++ b/gcc/fortran/symbol.c
@@ -22,10 +22,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-
+#include "system.h"
#include "gfortran.h"
#include "parse.h"
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c
index 330c34b2048..4e249f21e24 100644
--- a/gcc/fortran/trans-array.c
+++ b/gcc/fortran/trans-array.c
@@ -81,12 +81,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "coretypes.h"
#include "tree.h"
#include "tree-gimple.h"
-#include <stdio.h>
#include "ggc.h"
#include "toplev.h"
#include "real.h"
#include "flags.h"
-#include <gmp.h>
#include "gfortran.h"
#include "trans.h"
#include "trans-stmt.h"
diff --git a/gcc/fortran/trans-const.c b/gcc/fortran/trans-const.c
index c0572da043a..f949b7a071b 100644
--- a/gcc/fortran/trans-const.c
+++ b/gcc/fortran/trans-const.c
@@ -25,11 +25,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include <stdio.h>
#include "ggc.h"
#include "toplev.h"
#include "real.h"
-#include <gmp.h>
#include <math.h>
#include "gfortran.h"
#include "trans.h"
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index d132ccb2b42..d1e9fb31768 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -27,13 +27,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "coretypes.h"
#include "tree.h"
#include "convert.h"
-#include <stdio.h>
#include "ggc.h"
#include "toplev.h"
#include "real.h"
#include "tree-gimple.h"
#include "flags.h"
-#include <gmp.h>
#include "gfortran.h"
#include "trans.h"
#include "trans-const.h"
diff --git a/gcc/fortran/trans-intrinsic.c b/gcc/fortran/trans-intrinsic.c
index 455dfb8c360..7dda82a53ee 100644
--- a/gcc/fortran/trans-intrinsic.c
+++ b/gcc/fortran/trans-intrinsic.c
@@ -26,8 +26,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "system.h"
#include "coretypes.h"
#include "tree.h"
-#include <stdio.h>
-#include <string.h>
#include "ggc.h"
#include "toplev.h"
#include "real.h"
diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c
index 194856f1a30..7c7a737353c 100644
--- a/gcc/fortran/trans-io.c
+++ b/gcc/fortran/trans-io.c
@@ -25,11 +25,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "coretypes.h"
#include "tree.h"
#include "tree-gimple.h"
-#include <stdio.h>
#include "ggc.h"
#include "toplev.h"
#include "real.h"
-#include <gmp.h>
#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 e0c9f75e8c5..66b913ef25f 100644
--- a/gcc/fortran/trans-stmt.c
+++ b/gcc/fortran/trans-stmt.c
@@ -26,11 +26,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "coretypes.h"
#include "tree.h"
#include "tree-gimple.h"
-#include <stdio.h>
#include "ggc.h"
#include "toplev.h"
#include "real.h"
-#include <gmp.h>
#include "gfortran.h"
#include "trans.h"
#include "trans-stmt.h"
diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c
index 35105437f71..d0fb93d63e5 100644
--- a/gcc/fortran/trans.c
+++ b/gcc/fortran/trans.c
@@ -24,12 +24,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "coretypes.h"
#include "tree.h"
#include "tree-gimple.h"
-#include <stdio.h>
#include "ggc.h"
#include "toplev.h"
#include "defaults.h"
#include "real.h"
-#include <gmp.h>
#include "gfortran.h"
#include "trans.h"
#include "trans-stmt.h"