This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,gfortran] Clean up unnecessary header files
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 08 Jan 2005 14:36:08 +0100
- Subject: Re: [PATCH,gfortran] Clean up unnecessary header files
- References: <20041231185523.GA12259@troutmask.apl.washington.edu>
One place was missing in this patch: gfortran.h included stdio.h. Fixed by
the appended patch. With this change the comment preceding system.h is
outdated because we need system.h for FILE, therefore I removed it along the way.
Bubblestrapped & tested. Committed under the obviously correct rule.
- Tobi
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/ChangeLog,v
retrieving revision 1.283
diff -u -p -r1.283 ChangeLog
--- ChangeLog 6 Jan 2005 16:41:35 -0000 1.283
+++ ChangeLog 8 Jan 2005 13:30:40 -0000
@@ -1,3 +1,8 @@
+2005-01-08 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
+
+ * gfortran.h: Remove outdated comment. Don't include stdio.h
+ explicitly.
+
2005-01-06 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* gfortranspec.c (lang_specific_driver): Change year to 2005 in
Index: gfortran.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/gfortran.h,v
retrieving revision 1.48
diff -u -p -r1.48 gfortran.h
--- gfortran.h 29 Dec 2004 02:48:27 -0000 1.48
+++ gfortran.h 8 Jan 2005 13:30:40 -0000
@@ -29,8 +29,6 @@ Software Foundation, 59 Temple Place - S
multiple header files. Besides, Microsoft's winnt.h was 250k last
time I looked, so by comparison this is perfectly reasonable. */
-/* We need system.h for HOST_WIDE_INT. Including hwint.h by itself doesn't
- seem to be sufficient on some systems. */
#include "system.h"
#include "coretypes.h"
#include "input.h"
@@ -54,9 +52,6 @@ char *alloca ();
#endif /* do not HAVE_ALLOCA_H */
#endif /* not __GNUC__ */
-
-#include <stdio.h> /* need FILE * here */
-
/* Major control parameters. */
#define GFC_MAX_SYMBOL_LEN 63