diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-04 11:39:46 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-04 11:39:46 +0000 |
commit | a8a6baf6f27b00a35582d666fd2bcf375e4b590f (patch) | |
tree | 95fe84a7cd588da64cb8cea0d251407d2b14864c /gcc/fortran/iresolve.c | |
parent | f508ba97e0627d0439bab5da7c5c0505de738303 (diff) | |
download | gcc-a8a6baf6f27b00a35582d666fd2bcf375e4b590f.tar.gz |
* intrinsic.c (add_subroutines): Add ITIME and IDATE.
* intrinsic.h (gfc_check_itime_idate,gfc_resolve_idate,
fc_resolve_itime): New protos.
* iresolve.c (gfc_resolve_itime, gfc_resolve_idate): New functions.
* check.c (gfc_check_itime_idate): New function.
* intrinsic.texi: Document the new intrinsics.
* intrinsics/date_and_time.c (itime0,idate0,itime_i4,itime_i8,
idate_i4,idate_i8): New functions.
* gfortran.dg/itime_idate_1.f: New test.
* gfortran.dg/itime_idate_2.f: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115173 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/iresolve.c')
-rw-r--r-- | gcc/fortran/iresolve.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/fortran/iresolve.c b/gcc/fortran/iresolve.c index b4324b97471..3eeebc71c7a 100644 --- a/gcc/fortran/iresolve.c +++ b/gcc/fortran/iresolve.c @@ -2334,6 +2334,26 @@ gfc_resolve_etime_sub (gfc_code * c) } +/* G77 compatibility subroutines itime() and idate(). */ + +void +gfc_resolve_itime (gfc_code * c) +{ + c->resolved_sym = gfc_get_intrinsic_sub_symbol + (gfc_get_string (PREFIX("itime_i%d"), + gfc_default_integer_kind)); +} + + +void +gfc_resolve_idate (gfc_code * c) +{ + c->resolved_sym = gfc_get_intrinsic_sub_symbol + (gfc_get_string (PREFIX("idate_i%d"), + gfc_default_integer_kind)); +} + + /* G77 compatibility subroutine second(). */ void |