This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34533] DTIME returns total process time and not since last invocation
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2007 21:28:06 -0000
- Subject: [Bug fortran/34533] DTIME returns total process time and not since last invocation
- References: <bug-34533-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from kargl at gcc dot gnu dot org 2007-12-20 21:28 -------
A quick scan of intrinsics.c shows that dtime() is treated as an alias
to etime(). So, one needs to make dtime() a full-fledged intrinsic
procedure.
add_sym_1 ("etime", GFC_ISYM_ETIME, NO_CLASS, ACTUAL_NO, BT_REAL, 4,
GFC_STD_GNU, gfc_check_etime, NULL, NULL,
x, BT_REAL, 4, REQUIRED);
make_alias ("dtime", GFC_STD_GNU);
make_generic ("etime", GFC_ISYM_ETIME, GFC_STD_GNU);
Daniel, are you working on this PR?
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sgk at troutmask dot apl dot
| |washington dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34533