Bug 30950 - intrinsic: CPU_TIME
Summary: intrinsic: CPU_TIME
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords: documentation
Depends on:
Blocks: 30932
  Show dependency treegraph
 
Reported: 2007-02-24 19:07 UTC by Daniel Franke
Modified: 2007-03-06 21:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2007-03-03 10:24:23


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Franke 2007-02-24 19:07:13 UTC
subroutine = {
	name = 'cpu_time';
	arg  = 'x';

	call = 'CALL cpu_time(x = real_4)';
	call = 'CALL cpu_time(x = real_8)';
};

1. The name of the dummy argument is "TIME" instead of "X" as documented.
Comment 1 Francois-Xavier Coudert 2007-03-03 10:24:23 UTC
Confirmed. I think CPU_TIME is a standard intrinsic, what is the standard name for its argument?
Comment 2 Daniel Franke 2007-03-03 10:28:42 UTC
> what is the standard name for its argument?
F95 draft, 
13.14.25 CPU_TIME (TIME)

So, only the documentation needs to be changed.
Comment 3 Daniel Franke 2007-03-06 21:57:13 UTC
Subject: Bug 30950

Author: dfranke
Date: Tue Mar  6 21:57:02 2007
New Revision: 122640

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122640
Log:
2007-03-06  Daniel Franke  <franke.daniel@gmail.com>

        PR documentation/30950
        * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
        (FREE): Fix call syntax.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/intrinsic.texi

Comment 4 Daniel Franke 2007-03-06 21:57:20 UTC
Subject: Bug 30950

Author: dfranke
Date: Tue Mar  6 21:57:09 2007
New Revision: 122641

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122641
Log:
2007-03-06  Daniel Franke  <franke.daniel@gmail.com>

        PR documentation/30950
        * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
        (FREE): Fix call syntax.


Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/intrinsic.texi

Comment 5 Daniel Franke 2007-03-06 21:58:31 UTC
Fixed in 4.2 and trunk.