This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, gfortran] g77's FNUM, STAT, FSTAT, and FLUSH intrinsics


Steve Kargl wrote:
ChangeLog for libgfortran:

2004-11-24 Steven G. Kargl <kargls@comcast.net>

        * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
        * Makefile.in: Regenerated
        * intrinsics/flush.c: ditto
        * intrinsics/fnum.c: ditto
        * intrinsics/stat.c: ditto
        * io/unix.h: ditto
        * config.h.in (HAVE_STRUCT_STAT_ST_BLKSIZE,HAVE_STRUCT_STAT_ST_BLOCKS,
          HAVE_STRUCT_STAT_ST_RDEV): Add
        * configure.ac: Add test
        * configure.in: Regenerated
        * io/io.h (unit_to_fd): New prototype
        * io/unix.c: Move comment to top, move struct unix_stream to ...
        * io/unix.h: ... here
        * io/unix.c (fd_flush): unstaticize
        * io/unix.c (unit_to_fd): New function


ChangeLog for fortran:


2004-11-24 Steven G. Kargl <kargls@comcast.net>

* check.c (gfc_check_flush,gfc_check_fnum,gfc_check_fstat, gfc_check_fstat_sub,gfc_check_stat,gfc_check_stat_sub): New functions
* check.c (gfc_check_getcwd_sub): Fix seg fault.
* gfortran.h (GFC_ISYM_FNUM,GFC_ISYM_FSTAT,GFC_ISYM_STAT): New symbols
* intrinsic.h (OPTIONAL,REQUIRED): New symbols
* intrinsic.c (add_functions,add_subroutines): Use symbols
* intrinsic.c (gmp.h): Remove unused include
* intrinsic.c: Fix and add comments, fix function declarations
* intrinsic.c (add_functions,add_subroutines): Add flush, fnum,
fstat, and stat to intrinsics symbol tables.
* intrinsic.h (gfc_check_flush,gfc_resolve_stat_sub,
gfc_resolve_fstat_sub,gfc_resolve_stat): Add and sort prototypes.
* iresolve.c (gfc_resolve_fnum,gfc_resolve_fstat,gfc_resolve_stat,
gfc_resolve_flush,gfc_resolve_stat_sub,gfc_resolve_fstat_sub): New
functions
* trans-intrinsic.c (gfc_conv_intrinsic_function): Use symbols

etc.


This is in principle OK, provided you take into account Janne Blomqvist's remarks, and tell us on which system you bootstrapped.

Sorry this took so long.

--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]