From: Steven G. Kargl Date: Mon, 3 Jan 2005 21:43:55 +0000 (+0000) Subject: arith.c: Add system.h; remove string.h X-Git-Tag: releases/gcc-4.0.0~1793 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d22e48951caab38e753e3a03bf2b907bcfaddaff;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ae3b9cd7853b..7c585a6e3d7f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,37 @@ +2005-01-03 Steven G. Kargl + + * 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 * gfortran.h (gfc_case): fix typo in comment. diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c index 936681304038..d99b525618ae 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 - /* 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 3d67b1c4d1a5..815ee2f6743a 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 -#include - #include "config.h" #include "system.h" #include "flags.h" diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 97b5e1f15e83..d29668d2b2c9 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 /* 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 084f0ef474e9..7f0b57ca02f4 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 -#include -#include -#include - #include "flags.h" #include "gfortran.h" diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 5037c8c68348..e1ab0999939a 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 -#include -#include - +#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 f32b786b1610..23eca0779fe1 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 - /* Language-dependent contents of an identifier. */ struct lang_identifier diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c index 87b243775cfa..7c7f7510b95f 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 -#include - +#include "system.h" #include "gfortran.h" #include "match.h" diff --git a/gcc/fortran/intrinsic.c b/gcc/fortran/intrinsic.c index 2aa3f294ac85..f8548719be9e 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 -#include -#include - #include "gfortran.h" #include "intrinsic.h" diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c index 1ee7031a79f0..022621cac6ef 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 - #include "gfortran.h" #include "match.h" #include "parse.h" diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c index 825120f5ca98..3b3617820e13 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 -#include - #include "gfortran.h" #include "match.h" #include "parse.h" diff --git a/gcc/fortran/matchexp.c b/gcc/fortran/matchexp.c index 1035e8888c33..1a26420be4e0 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 +#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 3f7058391ebd..45117f5b5c8b 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 -#include -#include - +#include "system.h" #include "gfortran.h" diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index d4bee5bf78fb..4e449b12e6e4 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 -#include -#include -#include -#include - +#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 bdffbf3c2ebb..700cebbdf6b2 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 -#include #include "config.h" #include "system.h" diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 11bd8efbff4e..d9c74f9ed4a8 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 +#include "system.h" #include - #include "gfortran.h" #include "match.h" #include "parse.h" diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index 6484ec60cc28..32c6c36340cd 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 -#include #include "gfortran.h" #include "arith.h" #include "match.h" diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 3d72f7dfa79e..8bc638fcee5b 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 + /* 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 281ae88ba171..400cb4cb367e 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 -#include -#include -#include - +#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 5004b83acc94..bd46e959cd46 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 - #include "gfortran.h" #include "arith.h" #include "intrinsic.h" diff --git a/gcc/fortran/st.c b/gcc/fortran/st.c index f3e3671cac84..b6515376e384 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 gfc_code new_st; diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index d1443bde077d..ec7a9b8c7aa9 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 -#include -#include - +#include "system.h" #include "gfortran.h" #include "parse.h" diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 330c34b20489..4e249f21e24a 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 #include "ggc.h" #include "toplev.h" #include "real.h" #include "flags.h" -#include #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 c0572da043a7..f949b7a071b5 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 #include "ggc.h" #include "toplev.h" #include "real.h" -#include #include #include "gfortran.h" #include "trans.h" diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index d132ccb2b42e..d1e9fb317681 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 #include "ggc.h" #include "toplev.h" #include "real.h" #include "tree-gimple.h" #include "flags.h" -#include #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 455dfb8c360d..7dda82a53ee0 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 -#include #include "ggc.h" #include "toplev.h" #include "real.h" diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c index 194856f1a30d..7c7a737353c3 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 #include "ggc.h" #include "toplev.h" #include "real.h" -#include #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 e0c9f75e8c5e..66b913ef25f9 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 #include "ggc.h" #include "toplev.h" #include "real.h" -#include #include "gfortran.h" #include "trans.h" #include "trans-stmt.h" diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c index 35105437f712..d0fb93d63e58 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 #include "ggc.h" #include "toplev.h" #include "defaults.h" #include "real.h" -#include #include "gfortran.h" #include "trans.h" #include "trans-stmt.h"