public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Documentation of LTIME
       [not found] ` <CAC2FYYqEPKCNp88Yb7RTJtOZjuU1b-VirROSoCrRQgNwNRgm5Q@mail.gmail.com>
@ 2016-11-26 15:49   ` Dominique d'Humières
  2016-11-26 15:54     ` Janus Weil
  2016-11-26 16:17     ` Francisco Pena
  0 siblings, 2 replies; 13+ messages in thread
From: Dominique d'Humières @ 2016-11-26 15:49 UTC (permalink / raw)
  To: Francisco Pena; +Cc: fortran, gcc-patches

If there is no objection, I’ll commit the following patch

--- ../_clean/gcc/fortran/intrinsic.texi	2016-11-25 22:03:20.000000000 +0100
+++ gcc/fortran/intrinsic.texi	2016-11-26 16:47:12.000000000 +0100
@@ -9663,11 +9663,11 @@ The elements of @var{VALUES} are assigne
 seconds
 @item Minutes after the hour, range 0--59
 @item Hours past midnight, range 0--23
-@item Day of month, range 0--31
-@item Number of months since January, range 0--12
+@item Day of month, range 1--31
+@item Number of months since January, range 0--11
 @item Years since 1900
 @item Number of days since Sunday, range 0--6
-@item Days since January 1
+@item Days since January 1, range 0--365
 @item Daylight savings indicator: positive if daylight savings is in
 effect, zero if not, and negative if the information is not available.
 @end enumerate

Dominique

> Le 26 nov. 2016 à 16:02, Francisco Pena <fran.pena@usc.es> a écrit :
> 
> Thank you guys,
> 
> I have reported the documentation bug,
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78545

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 15:49   ` Documentation of LTIME Dominique d'Humières
@ 2016-11-26 15:54     ` Janus Weil
  2016-11-26 16:01       ` Janus Weil
  2016-11-26 16:19       ` Dominique d'Humières
  2016-11-26 16:17     ` Francisco Pena
  1 sibling, 2 replies; 13+ messages in thread
From: Janus Weil @ 2016-11-26 15:54 UTC (permalink / raw)
  To: Dominique d'Humières; +Cc: Francisco Pena, gfortran, gcc-patches

2016-11-26 16:49 GMT+01:00 Dominique d'Humières <dominiq@lps.ens.fr>:
> If there is no objection, I’ll commit the following patch

Looks good to me!

If you want, you could also fix the remaining items I mentioned in
comment 1 in the PR:
* apply the same fix to GMTIME
* fix it in the libgfortran sources as well
* possibly add some more cross-links to intrinsic.texi

Thanks,
Janus



> --- ../_clean/gcc/fortran/intrinsic.texi        2016-11-25 22:03:20.000000000 +0100
> +++ gcc/fortran/intrinsic.texi  2016-11-26 16:47:12.000000000 +0100
> @@ -9663,11 +9663,11 @@ The elements of @var{VALUES} are assigne
>  seconds
>  @item Minutes after the hour, range 0--59
>  @item Hours past midnight, range 0--23
> -@item Day of month, range 0--31
> -@item Number of months since January, range 0--12
> +@item Day of month, range 1--31
> +@item Number of months since January, range 0--11
>  @item Years since 1900
>  @item Number of days since Sunday, range 0--6
> -@item Days since January 1
> +@item Days since January 1, range 0--365
>  @item Daylight savings indicator: positive if daylight savings is in
>  effect, zero if not, and negative if the information is not available.
>  @end enumerate
>
> Dominique
>
>> Le 26 nov. 2016 à 16:02, Francisco Pena <fran.pena@usc.es> a écrit :
>>
>> Thank you guys,
>>
>> I have reported the documentation bug,
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78545
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 15:54     ` Janus Weil
@ 2016-11-26 16:01       ` Janus Weil
  2016-11-26 16:28         ` Dominique d'Humières
  2016-11-26 16:19       ` Dominique d'Humières
  1 sibling, 1 reply; 13+ messages in thread
From: Janus Weil @ 2016-11-26 16:01 UTC (permalink / raw)
  To: Dominique d'Humières; +Cc: Francisco Pena, gfortran, gcc-patches

And one last point: The description of LTIME mentions TIME8, but if I try this:

  call ltime(time8(), values)

I get:

Error: ‘time’ argument of ‘ltime’ intrinsic at (1) must be of kind 4

So maybe the reference to TIME8 should be replaced by TIME?

Cheers,
Janus



2016-11-26 16:54 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
> 2016-11-26 16:49 GMT+01:00 Dominique d'Humières <dominiq@lps.ens.fr>:
>> If there is no objection, I’ll commit the following patch
>
> Looks good to me!
>
> If you want, you could also fix the remaining items I mentioned in
> comment 1 in the PR:
> * apply the same fix to GMTIME
> * fix it in the libgfortran sources as well
> * possibly add some more cross-links to intrinsic.texi
>
> Thanks,
> Janus
>
>
>
>> --- ../_clean/gcc/fortran/intrinsic.texi        2016-11-25 22:03:20.000000000 +0100
>> +++ gcc/fortran/intrinsic.texi  2016-11-26 16:47:12.000000000 +0100
>> @@ -9663,11 +9663,11 @@ The elements of @var{VALUES} are assigne
>>  seconds
>>  @item Minutes after the hour, range 0--59
>>  @item Hours past midnight, range 0--23
>> -@item Day of month, range 0--31
>> -@item Number of months since January, range 0--12
>> +@item Day of month, range 1--31
>> +@item Number of months since January, range 0--11
>>  @item Years since 1900
>>  @item Number of days since Sunday, range 0--6
>> -@item Days since January 1
>> +@item Days since January 1, range 0--365
>>  @item Daylight savings indicator: positive if daylight savings is in
>>  effect, zero if not, and negative if the information is not available.
>>  @end enumerate
>>
>> Dominique
>>
>>> Le 26 nov. 2016 à 16:02, Francisco Pena <fran.pena@usc.es> a écrit :
>>>
>>> Thank you guys,
>>>
>>> I have reported the documentation bug,
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78545
>>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 15:49   ` Documentation of LTIME Dominique d'Humières
  2016-11-26 15:54     ` Janus Weil
@ 2016-11-26 16:17     ` Francisco Pena
  1 sibling, 0 replies; 13+ messages in thread
From: Francisco Pena @ 2016-11-26 16:17 UTC (permalink / raw)
  To: Dominique d'Humières; +Cc: fortran, gcc-patches

Dominique,

your patch sounds good to me.

2016-11-26 16:49 GMT+01:00 Dominique d'Humières <dominiq@lps.ens.fr>:
> If there is no objection, I’ll commit the following patch
>
> --- ../_clean/gcc/fortran/intrinsic.texi        2016-11-25 22:03:20.000000000 +0100
> +++ gcc/fortran/intrinsic.texi  2016-11-26 16:47:12.000000000 +0100
> @@ -9663,11 +9663,11 @@ The elements of @var{VALUES} are assigne
>  seconds
>  @item Minutes after the hour, range 0--59
>  @item Hours past midnight, range 0--23
> -@item Day of month, range 0--31
> -@item Number of months since January, range 0--12
> +@item Day of month, range 1--31
> +@item Number of months since January, range 0--11
>  @item Years since 1900
>  @item Number of days since Sunday, range 0--6
> -@item Days since January 1
> +@item Days since January 1, range 0--365
>  @item Daylight savings indicator: positive if daylight savings is in
>  effect, zero if not, and negative if the information is not available.
>  @end enumerate
>
> Dominique

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 15:54     ` Janus Weil
  2016-11-26 16:01       ` Janus Weil
@ 2016-11-26 16:19       ` Dominique d'Humières
  1 sibling, 0 replies; 13+ messages in thread
From: Dominique d'Humières @ 2016-11-26 16:19 UTC (permalink / raw)
  To: Janus Weil; +Cc: Francisco Pena, gfortran, gcc-patches


> Le 26 nov. 2016 à 16:54, Janus Weil <janus@gcc.gnu.org> a écrit :
> 
> 2016-11-26 16:49 GMT+01:00 Dominique d'Humières <dominiq@lps.ens.fr>:
>> If there is no objection, I’ll commit the following patch
> 
> Looks good to me!
> 
> If you want, you could also fix the remaining items I mentioned in
> comment 1 in the PR:
> * apply the same fix to GMTIME

Done

> * fix it in the libgfortran sources as well

Done

> * possibly add some more cross-links to intrinsic.texi

Could you please elaborate?

Dominique

> 
> Thanks,
> Janus

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 16:01       ` Janus Weil
@ 2016-11-26 16:28         ` Dominique d'Humières
  2016-11-26 16:58           ` Janus Weil
  0 siblings, 1 reply; 13+ messages in thread
From: Dominique d'Humières @ 2016-11-26 16:28 UTC (permalink / raw)
  To: Janus Weil; +Cc: Francisco Pena, gfortran, gcc-patches


> Le 26 nov. 2016 à 17:00, Janus Weil <janus@gcc.gnu.org> a écrit :
> 
> And one last point: The description of LTIME mentions TIME8, but if I try this:
> 
>  call ltime(time8(), values)
> 
> I get:
> 
> Error: ‘time’ argument of ‘ltime’ intrinsic at (1) must be of kind 4

Well LTIME cannot accept both kind(4) and kind(8) arguments. The reference to TIME8 looks like a mistake, isn’t it?

Dominique
 
> 
> So maybe the reference to TIME8 should be replaced by TIME?
> 
> Cheers,
> Janus
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 16:28         ` Dominique d'Humières
@ 2016-11-26 16:58           ` Janus Weil
  2016-11-26 17:03             ` Janus Weil
  0 siblings, 1 reply; 13+ messages in thread
From: Janus Weil @ 2016-11-26 16:58 UTC (permalink / raw)
  To: Dominique d'Humières; +Cc: Francisco Pena, gfortran, gcc-patches

>> * possibly add some more cross-links to intrinsic.texi
>
> Could you please elaborate?

I just mean it might be useful to add some more links from LTIME to
ITIME, IDATE and DATE_AND_DATE (and back?). They are are all very
similar.



>> And one last point: The description of LTIME mentions TIME8, but if I try this:
>>
>>  call ltime(time8(), values)
>>
>> I get:
>>
>> Error: ‘time’ argument of ‘ltime’ intrinsic at (1) must be of kind 4
>
> Well LTIME cannot accept both kind(4) and kind(8) arguments. The reference to TIME8 looks like a mistake, isn’t it?

Huh, in libgfortran I see two versions with different kinds (ltime_i4
and ltime_i8), but in my tests I never get LTIME to work with kind=8
arguments. I guess that is the real bug here ...

Maybe one can at least linkify the TIME8 in the documentation? (Or
mention both intrinsics, TIME and TIME8).

Cheers,
Janus

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 16:58           ` Janus Weil
@ 2016-11-26 17:03             ` Janus Weil
  2016-11-26 17:17               ` Janne Blomqvist
  0 siblings, 1 reply; 13+ messages in thread
From: Janus Weil @ 2016-11-26 17:03 UTC (permalink / raw)
  To: Dominique d'Humières; +Cc: Francisco Pena, gfortran, gcc-patches

2016-11-26 17:58 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
>>> * possibly add some more cross-links to intrinsic.texi
>>
>> Could you please elaborate?
>
> I just mean it might be useful to add some more links from LTIME to
> ITIME, IDATE and DATE_AND_DATE (and back?). They are are all very
> similar.

Sorry, I meant DATE_AND_TIME here.


>> Well LTIME cannot accept both kind(4) and kind(8) arguments. The reference to TIME8 looks like a mistake, isn’t it?
>
> Huh, in libgfortran I see two versions with different kinds (ltime_i4
> and ltime_i8), but in my tests I never get LTIME to work with kind=8
> arguments. I guess that is the real bug here ...

I think the origin of the bug is:

void
gfc_resolve_ltime (gfc_code *c)
{
  c->resolved_sym
    = gfc_get_intrinsic_sub_symbol (gfc_get_string (PREFIX ("ltime_i%d"),
                            gfc_default_integer_kind));
}


This always uses the ITIME version corresponding to
gfc_default_integer_kind, disregarding the actual kind of the
arguments.

Cheers,
Janus

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 17:03             ` Janus Weil
@ 2016-11-26 17:17               ` Janne Blomqvist
  2016-11-26 17:25                 ` Janus Weil
  0 siblings, 1 reply; 13+ messages in thread
From: Janne Blomqvist @ 2016-11-26 17:17 UTC (permalink / raw)
  To: Janus Weil
  Cc: Dominique d'Humières, Francisco Pena, gfortran, gcc-patches

On Sat, Nov 26, 2016 at 7:03 PM, Janus Weil <janus@gcc.gnu.org> wrote:
> 2016-11-26 17:58 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
>>>> * possibly add some more cross-links to intrinsic.texi
>>>
>>> Could you please elaborate?
>>
>> I just mean it might be useful to add some more links from LTIME to
>> ITIME, IDATE and DATE_AND_DATE (and back?). They are are all very
>> similar.
>
> Sorry, I meant DATE_AND_TIME here.
>
>
>>> Well LTIME cannot accept both kind(4) and kind(8) arguments. The reference to TIME8 looks like a mistake, isn’t it?
>>
>> Huh, in libgfortran I see two versions with different kinds (ltime_i4
>> and ltime_i8), but in my tests I never get LTIME to work with kind=8
>> arguments. I guess that is the real bug here ...
>
> I think the origin of the bug is:
>
> void
> gfc_resolve_ltime (gfc_code *c)
> {
>   c->resolved_sym
>     = gfc_get_intrinsic_sub_symbol (gfc_get_string (PREFIX ("ltime_i%d"),
>                             gfc_default_integer_kind));
> }
>
>
> This always uses the ITIME version corresponding to
> gfc_default_integer_kind, disregarding the actual kind of the
> arguments.
>
> Cheers,
> Janus

LTIME, ITIME, TIME, TIME8, IDATE are g77 intrinsics, from back before
newfangled things like kinds. So there are versions for integer kind=4
and kind=8 due to -fdefault-integer-8.

DATE_AND_TIME is different since it's in the current standard and IIRC
is specified to work with any integer kind.

-- 
Janne Blomqvist

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 17:17               ` Janne Blomqvist
@ 2016-11-26 17:25                 ` Janus Weil
  2016-11-26 18:35                   ` Dominique d'Humières
  0 siblings, 1 reply; 13+ messages in thread
From: Janus Weil @ 2016-11-26 17:25 UTC (permalink / raw)
  To: Janne Blomqvist
  Cc: Dominique d'Humières, Francisco Pena, gfortran, gcc-patches

>>>> Well LTIME cannot accept both kind(4) and kind(8) arguments. The reference to TIME8 looks like a mistake, isn’t it?
>>>
>>> Huh, in libgfortran I see two versions with different kinds (ltime_i4
>>> and ltime_i8), but in my tests I never get LTIME to work with kind=8
>>> arguments. I guess that is the real bug here ...
>>
>> I think the origin of the bug is:
>>
>> void
>> gfc_resolve_ltime (gfc_code *c)
>> {
>>   c->resolved_sym
>>     = gfc_get_intrinsic_sub_symbol (gfc_get_string (PREFIX ("ltime_i%d"),
>>                             gfc_default_integer_kind));
>> }
>>
>>
>> This always uses the ITIME version corresponding to
>> gfc_default_integer_kind, disregarding the actual kind of the
>> arguments.
>
> LTIME, ITIME, TIME, TIME8, IDATE are g77 intrinsics, from back before
> newfangled things like kinds. So there are versions for integer kind=4
> and kind=8 due to -fdefault-integer-8.

Ok, I see. Thanks for the comment.

Still, since we internally already have both implementations for
kind=4 and kind=8, we could as well make use of them, I guess.

If not, we definitely need to fix the documentation of LTIME, since
the current version simply does not work with TIME8(), unless one uses
-fdefault-integer-8 (which is not mentioned in the docu).

Cheers,
Janus

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 17:25                 ` Janus Weil
@ 2016-11-26 18:35                   ` Dominique d'Humières
  2016-11-26 20:45                     ` Janus Weil
  0 siblings, 1 reply; 13+ messages in thread
From: Dominique d'Humières @ 2016-11-26 18:35 UTC (permalink / raw)
  To: Janus Weil; +Cc: Janne Blomqvist, Francisco Pena, gfortran, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]



> Still, since we internally already have both implementations for
> kind=4 and kind=8, we could as well make use of them, I guess.

I let this for people understanding what to do.

> If not, we definitely need to fix the documentation of LTIME, since
> the current version simply does not work with TIME8(), unless one uses
> -fdefault-integer-8 (which is not mentioned in the docu).

What about the attached patch


[-- Attachment #2: patch-78545 --]
[-- Type: application/octet-stream, Size: 5331 bytes --]

--- ../_clean/gcc/fortran/intrinsic.texi	2016-11-25 22:03:20.000000000 +0100
+++ gcc/fortran/intrinsic.texi	2016-11-26 19:26:08.000000000 +0100
@@ -7157,11 +7157,16 @@ See @code{GETPID} for an example.
 
 @table @asis
 @item @emph{Description}:
-Given a system time value @var{TIME} (as provided by the @code{TIME8}
+Given a system time value @var{TIME} (as provided by the @code{TIME}
 intrinsic), fills @var{VALUES} with values extracted from it appropriate
 to the UTC time zone (Universal Coordinated Time, also known in some
 countries as GMT, Greenwich Mean Time), using @code{gmtime(3)}.
 
+This intrinsic routine is provided for backwards compatibility with 
+GNU Fortran 77.  In new code, programmers should consider the use of 
+the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
+standard.
+
 @item @emph{Standard}:
 GNU extension
 
@@ -7186,11 +7191,11 @@ The elements of @var{VALUES} are assigne
 seconds
 @item Minutes after the hour, range 0--59
 @item Hours past midnight, range 0--23
-@item Day of month, range 0--31
-@item Number of months since January, range 0--12
+@item Day of month, range 1--31
+@item Number of months since January, range 0--11
 @item Years since 1900
 @item Number of days since Sunday, range 0--6
-@item Days since January 1
+@item Days since January 1, range 0--365
 @item Daylight savings indicator: positive if daylight savings is in
 effect, zero if not, and negative if the information is not available.
 @end enumerate
@@ -7841,6 +7846,11 @@ current local time. The day (in the rang
 and year appear in elements 1, 2, and 3 of @var{VALUES}, respectively. 
 The year has four significant digits.
 
+This intrinsic routine is provided for backwards compatibility with 
+GNU Fortran 77.  In new code, programmers should consider the use of 
+the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
+standard.
+
 @item @emph{Standard}:
 GNU extension
 
@@ -8650,11 +8660,16 @@ end program test_nan
 
 @table @asis
 @item @emph{Description}:
-@code{IDATE(VALUES)} Fills @var{VALUES} with the numerical values at the  
+@code{ITIME(VALUES)} Fills @var{VALUES} with the numerical values at the  
 current local time. The hour (in the range 1-24), minute (in the range 1-60), 
 and seconds (in the range 1-60) appear in elements 1, 2, and 3 of @var{VALUES}, 
 respectively.
 
+This intrinsic routine is provided for backwards compatibility with 
+GNU Fortran 77.  In new code, programmers should consider the use of 
+the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
+standard.
+
 @item @emph{Standard}:
 GNU extension
 
@@ -9635,10 +9650,15 @@ To stat an open file: @ref{FSTAT}, to st
 
 @table @asis
 @item @emph{Description}:
-Given a system time value @var{TIME} (as provided by the @code{TIME8}
+Given a system time value @var{TIME} (as provided by the @code{TIME}
 intrinsic), fills @var{VALUES} with values extracted from it appropriate
 to the local time zone using @code{localtime(3)}.
 
+This intrinsic routine is provided for backwards compatibility with 
+GNU Fortran 77.  In new code, programmers should consider the use of 
+the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
+standard.
+
 @item @emph{Standard}:
 GNU extension
 
@@ -9663,11 +9683,11 @@ The elements of @var{VALUES} are assigne
 seconds
 @item Minutes after the hour, range 0--59
 @item Hours past midnight, range 0--23
-@item Day of month, range 0--31
-@item Number of months since January, range 0--12
+@item Day of month, range 1--31
+@item Number of months since January, range 0--11
 @item Years since 1900
 @item Number of days since Sunday, range 0--6
-@item Days since January 1
+@item Days since January 1, range 0--365
 @item Daylight savings indicator: positive if daylight savings is in
 effect, zero if not, and negative if the information is not available.
 @end enumerate
--- ../_clean/libgfortran/intrinsics/date_and_time.c	2016-01-04 19:51:18.000000000 +0100
+++ libgfortran/intrinsics/date_and_time.c	2016-11-26 17:08:48.000000000 +0100
@@ -456,11 +456,11 @@ idate_i8 (gfc_array_i8 *__values)
       1. Seconds after the minute, range 0-59 or 0-61 to allow for leap seconds
       2. Minutes after the hour, range 0-59
       3. Hours past midnight, range 0-23
-      4. Day of month, range 0-31
+      4. Day of month, range 1-31
       5. Number of months since January, range 0-11
       6. Years since 1900
       7. Number of days since Sunday, range 0-6
-      8. Days since January 1
+      8. Days since January 1, range 0-365
       9. Daylight savings indicator: positive if daylight savings is in effect,
          zero if not, and negative if the information isn't available.  */
 
@@ -548,11 +548,11 @@ gmtime_i8 (GFC_INTEGER_8 * t, gfc_array_
       1. Seconds after the minute, range 0-59 or 0-61 to allow for leap seconds
       2. Minutes after the hour, range 0-59
       3. Hours past midnight, range 0-23
-      4. Day of month, range 0-31
+      4. Day of month, range 1-31
       5. Number of months since January, range 0-11
       6. Years since 1900
       7. Number of days since Sunday, range 0-6
-      8. Days since January 1
+      8. Days since January 1, range 0-365
       9. Daylight savings indicator: positive if daylight savings is in effect,
          zero if not, and negative if the information isn't available.  */
 

[-- Attachment #3: Type: text/plain, Size: 35 bytes --]



Dominique

> 
> Cheers,
> Janus


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 18:35                   ` Dominique d'Humières
@ 2016-11-26 20:45                     ` Janus Weil
  2016-12-19 10:59                       ` Janus Weil
  0 siblings, 1 reply; 13+ messages in thread
From: Janus Weil @ 2016-11-26 20:45 UTC (permalink / raw)
  To: Dominique d'Humières
  Cc: Janne Blomqvist, Francisco Pena, gfortran, gcc-patches

>> If not, we definitely need to fix the documentation of LTIME, since
>> the current version simply does not work with TIME8(), unless one uses
>> -fdefault-integer-8 (which is not mentioned in the docu).
>
> What about the attached patch

Yes, looks good to me. Ok to commit!

One minor nit (optional):

@@ -9635,10 +9650,15 @@ To stat an open file: @ref{FSTAT}, to st

 @table @asis
 @item @emph{Description}:
-Given a system time value @var{TIME} (as provided by the @code{TIME8}
+Given a system time value @var{TIME} (as provided by the @code{TIME}
 intrinsic), fills @var{VALUES} with values extracted from it appropriate
 to the local time zone using @code{localtime(3)}.

I would use @ref{TIME} here (there are two places where this occurs).
Also I would add @ref{DATE_AND_TIME} to the "see also" section.

Thanks,
Janus

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Documentation of LTIME
  2016-11-26 20:45                     ` Janus Weil
@ 2016-12-19 10:59                       ` Janus Weil
  0 siblings, 0 replies; 13+ messages in thread
From: Janus Weil @ 2016-12-19 10:59 UTC (permalink / raw)
  To: Dominique d'Humières
  Cc: Janne Blomqvist, Francisco Pena, gfortran, gcc-patches

Hi all,

I have just committed some minor additions
(https://gcc.gnu.org/viewcvs?rev=243794&root=gcc&view=rev) to
Dominique's patch at
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=243785, so that
these documentation issued are finally resolved now.

Cheers,
Janus



2016-11-26 21:45 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
>>> If not, we definitely need to fix the documentation of LTIME, since
>>> the current version simply does not work with TIME8(), unless one uses
>>> -fdefault-integer-8 (which is not mentioned in the docu).
>>
>> What about the attached patch
>
> Yes, looks good to me. Ok to commit!
>
> One minor nit (optional):
>
> @@ -9635,10 +9650,15 @@ To stat an open file: @ref{FSTAT}, to st
>
>  @table @asis
>  @item @emph{Description}:
> -Given a system time value @var{TIME} (as provided by the @code{TIME8}
> +Given a system time value @var{TIME} (as provided by the @code{TIME}
>  intrinsic), fills @var{VALUES} with values extracted from it appropriate
>  to the local time zone using @code{localtime(3)}.
>
> I would use @ref{TIME} here (there are two places where this occurs).
> Also I would add @ref{DATE_AND_TIME} to the "see also" section.
>
> Thanks,
> Janus

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-12-19 10:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <42E6ADCB-E228-42B0-BF2B-E630E56C2048@lps.ens.fr>
     [not found] ` <CAC2FYYqEPKCNp88Yb7RTJtOZjuU1b-VirROSoCrRQgNwNRgm5Q@mail.gmail.com>
2016-11-26 15:49   ` Documentation of LTIME Dominique d'Humières
2016-11-26 15:54     ` Janus Weil
2016-11-26 16:01       ` Janus Weil
2016-11-26 16:28         ` Dominique d'Humières
2016-11-26 16:58           ` Janus Weil
2016-11-26 17:03             ` Janus Weil
2016-11-26 17:17               ` Janne Blomqvist
2016-11-26 17:25                 ` Janus Weil
2016-11-26 18:35                   ` Dominique d'Humières
2016-11-26 20:45                     ` Janus Weil
2016-12-19 10:59                       ` Janus Weil
2016-11-26 16:19       ` Dominique d'Humières
2016-11-26 16:17     ` Francisco Pena

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).