aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven G. Kargl <kargls@comcast.net>2005-01-03 21:43:55 +0000
committerRichard Henderson <rth@gcc.gnu.org>2005-01-03 13:43:55 -0800
commitd22e48951caab38e753e3a03bf2b907bcfaddaff (patch)
tree3a53104e3cc8d16f51bdf0dabaafa5ed63c36e5a
parent8f1032c16a6e30d789be20320b1f8c443833fadd (diff)
downloadgcc-d22e48951caab38e753e3a03bf2b907bcfaddaff.zip
gcc-d22e48951caab38e753e3a03bf2b907bcfaddaff.tar.gz
gcc-d22e48951caab38e753e3a03bf2b907bcfaddaff.tar.bz2
arith.c: Add system.h; remove string.h
* 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 From-SVN: r92866
-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 ae3b9cd..7c585a6 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 9366813..d99b525 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 3d67b1c..815ee2f 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 97b5e1f1..d29668d 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 084f0ef..7f0b57c 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 5037c8c..e1ab099 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 f32b786..23eca07 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 87b2437..7c7f751 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 2aa3f29..f854871 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 1ee7031..022621ca 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 825120f..3b36178 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 1035e88..1a26420 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 3f70583..45117f5 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 d4bee5b..4e449b1 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 bdffbf3..700cebb 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 11bd8ef..d9c74f9e 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 6484ec6..32c6c36 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 3d72f7d..8bc638f 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 281ae88ba..400cb4c 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 5004b83..bd46e95 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 f3e3671..b651537 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 d1443bd..ec7a9b8 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 330c34b..4e249f2 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 c0572da..f949b7a 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 d132ccb..d1e9fb3 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 455dfb8..7dda82a 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 194856f..7c7a737 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 e0c9f75..66b913e 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 3510543..d0fb93d 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"