[gfortran, committed] Remove unused header from trans-const.c
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sat Jan 8 20:19:00 GMT 2005
trans-const.c uses no symbol that is declared in math.h, but includes this
header. Found through visual inspection. I went over the file several times
to be sure (abs is in stdlib.h), as I know no other means of making this sure.
Bubblestrapped and tested. Committed under the obviously correct rule.
- Tobi
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/ChangeLog,v
retrieving revision 1.284
diff -u -p -r1.284 ChangeLog
--- ChangeLog 8 Jan 2005 13:35:16 -0000 1.284
+++ ChangeLog 8 Jan 2005 20:16:59 -0000
@@ -1,5 +1,9 @@
2005-01-08 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
+ * trans-const.c: Don't include unused math.h.
+
+2005-01-08 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
+
* gfortran.h: Remove outdated comment. Don't include stdio.h
explicitly.
Index: trans-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/trans-const.c,v
retrieving revision 1.19
diff -u -p -r1.19 trans-const.c
--- trans-const.c 3 Jan 2005 21:43:55 -0000 1.19
+++ trans-const.c 8 Jan 2005 20:16:59 -0000
@@ -1,5 +1,5 @@
/* Translation of constants
- Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Paul Brook
This file is part of GCC.
@@ -28,7 +28,6 @@ Software Foundation, 59 Temple Place - S
#include "ggc.h"
#include "toplev.h"
#include "real.h"
-#include <math.h>
#include "gfortran.h"
#include "trans.h"
#include "trans-const.h"
More information about the Fortran
mailing list