[patch, fortran/libgfortran] Fix PR22390 (FLUSH statement)
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sun Jul 17 12:28:00 GMT 2005
Janne Blomqvist wrote:
> attached patch implements the F2003 FLUSH statement. In addition to
> the patch, there is also a new file libgfortran/io/file_pos.c that
> combines the functionality of the file positioning statements
> previously implemented as well as the new flush. Also, a simple
> testcase that checks that compiling succeeds is attached.
Thanks! This patch is ok modulo three formatting remarks I'll make below. I
see that you still don't have write access, and Steve remarked that the patch
doesn't apply to his tree, so can you please send an updated diff, which I
will then happily apply if it gets here before Monday morning, where I'll
leave town for a week.
> gcc/fortran ChangeLog
>
> 2005-07-11 Janne Blomqvist <jblomqvi@cc.hut.fi>
^ ^
Two blanks please. I don't know why.
> PR fortran/22390
>
> * dump-parse-tree.c (gfc_show_code_node): Add case for FLUSH.
>
> * gfortran.h: Add enums for FLUSH.
>
> * io.c (gfc_free_filepos): Modify comment
> appropriately. (match_file_element): Likewise. (match_filepos):
> Likewise. (gfc_match_flush): New function.
etc.
Should be:
PR fortran/22390
* dump-parse-tree.c (gfc_show_code_node): Add case for FLUSH.
* gfortran.h: Add enums for FLUSH.
* io.c (gfc_free_filepos): Modify comment appropriately.
(match_file_element, match_filepos): Likewise.
(gfc_match_flush): New function.
etc.
> +tree
> +gfc_trans_flush (gfc_code * code)
> +{
> +
> + return build_filepos (iocall_flush, code);
> +}
Please no empty line in the beginning of the function.
Thanks,
- Tobi
More information about the Fortran
mailing list