This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] Use getc/putc instead of fgetc/fputc
- From: Tobias Schlüter <Tobias dot Schlueter at physik dot uni-muenchen dot de>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 Apr 2007 13:49:26 +0200
- Subject: Re: [Patch, fortran] Use getc/putc instead of fgetc/fputc
- References: <462F3AB1.1080300@gmail.com>
Janne Blomqvist wrote:
2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
* module.c (module_char): Replace fgetc() with
getc().
(write_char): Replace fputc() with putc().
* scanner.c (load_line): Replace fgetc() with getc().
(gfc_read_orig_filename): Likewise.
Ok, bordering on obvious. Loading modules over and over again is of
course a more serious problem than the function call overhead this patch
eliminates.
Cheers,
- Tobi