diff mbox series

Fortran: Remove documentation for SHORT and LONG intrinics

Message ID 566c40e6-5731-24d9-e159-d331d3553c06@gmx.ch
State New
Headers show
Series Fortran: Remove documentation for SHORT and LONG intrinics | expand

Commit Message

Manfred Schwarb Oct. 29, 2021, 2:13 p.m. UTC
Hi,

on 2019-07-23, support for SHORT and LONG intrinsics was removed be Steve Kargl by
adding an error message in check.c.  As far as I can see code support is still there, though.

Remove documentation for these intrinsics.

Signed-off-by Manfred Schwarb <manfred99@gmx.ch>


[Note: I do not have commit access]

Comments

Harald Anlauf Oct. 29, 2021, 7:52 p.m. UTC | #1
Hi Manfred,

Am 29.10.21 um 16:13 schrieb Manfred Schwarb via Gcc-patches:
> Hi,
>
> on 2019-07-23, support for SHORT and LONG intrinsics was removed be Steve Kargl by
> adding an error message in check.c.  As far as I can see code support is still there, though.
>
> Remove documentation for these intrinsics.

could you please provide a formatted patch that applies using git apply?
And a ChangeLog entry?

Thanks,
Harald

> Signed-off-by Manfred Schwarb <manfred99@gmx.ch>
>
>
> [Note: I do not have commit access]
>
Manfred Schwarb Oct. 29, 2021, 11:16 p.m. UTC | #2
Am 29.10.21 um 21:52 schrieb Harald Anlauf via Fortran:
> Hi Manfred,
>
> Am 29.10.21 um 16:13 schrieb Manfred Schwarb via Gcc-patches:
>> Hi,
>>
>> on 2019-07-23, support for SHORT and LONG intrinsics was removed be Steve Kargl by
>> adding an error message in check.c.  As far as I can see code support is still there, though.
>>
>> Remove documentation for these intrinsics.
>
> could you please provide a formatted patch that applies using git apply?
> And a ChangeLog entry?

Sorry, forgot the changelog entry, I added it to the patch now.

>
> Thanks,
> Harald
>
>> Signed-off-by Manfred Schwarb <manfred99@gmx.ch>
>>
>>
>> [Note: I do not have commit access]
>>
>
>
Harald Anlauf Oct. 30, 2021, 6:19 p.m. UTC | #3
Committed as r12-4808 after checking "make dvi".

Thanks for the patch!

Harald

Am 30.10.21 um 01:16 schrieb Manfred Schwarb via Gcc-patches:
> Am 29.10.21 um 21:52 schrieb Harald Anlauf via Fortran:
>> Hi Manfred,
>>
>> Am 29.10.21 um 16:13 schrieb Manfred Schwarb via Gcc-patches:
>>> Hi,
>>>
>>> on 2019-07-23, support for SHORT and LONG intrinsics was removed be Steve Kargl by
>>> adding an error message in check.c.  As far as I can see code support is still there, though.
>>>
>>> Remove documentation for these intrinsics.
>>
>> could you please provide a formatted patch that applies using git apply?
>> And a ChangeLog entry?
>
> Sorry, forgot the changelog entry, I added it to the patch now.
>
>>
>> Thanks,
>> Harald
>>
>>> Signed-off-by Manfred Schwarb <manfred99@gmx.ch>
>>>
>>>
>>> [Note: I do not have commit access]
>>>
>>
>>
>
diff mbox series

Patch

--- gcc/gcc/fortran/intrinsic.texi.1	2021-10-29 14:24:46.102169856 +0200
+++ gcc/gcc/fortran/intrinsic.texi.2	2021-10-29 15:08:38.302188947 +0200
@@ -221,7 +221,6 @@  Some basic guidelines for editing this d
 * @code{LOG10}:         LOG10,     Base 10 logarithm function
 * @code{LOG_GAMMA}:     LOG_GAMMA, Logarithm of the Gamma function
 * @code{LOGICAL}:       LOGICAL,   Convert to logical type
-* @code{LONG}:          LONG,      Convert to integer type
 * @code{LSHIFT}:        LSHIFT,    Left shift bits
 * @code{LSTAT}:         LSTAT,     Get file status
 * @code{LTIME}:         LTIME,     Convert time to local time info
@@ -8372,7 +8371,6 @@  end program
 @node INT2
 @section @code{INT2} --- Convert to 16-bit integer type
 @fnindex INT2
-@fnindex SHORT
 @cindex conversion, to integer

 @table @asis
@@ -8381,8 +8379,6 @@  Convert to a @code{KIND=2} integer type.
 standard @code{INT} intrinsic with an optional argument of
 @code{KIND=2}, and is only included for backwards compatibility.

-The @code{SHORT} intrinsic is equivalent to @code{INT2}.
-
 @item @emph{Standard}:
 GNU extension

@@ -8403,8 +8399,7 @@  The return value is a @code{INTEGER(2)}

 @item @emph{See also}:
 @ref{INT}, @gol
-@ref{INT8}, @gol
-@ref{LONG}
+@ref{INT8}
 @end table


@@ -8440,8 +8435,7 @@  The return value is a @code{INTEGER(8)}

 @item @emph{See also}:
 @ref{INT}, @gol
-@ref{INT2}, @gol
-@ref{LONG}
+@ref{INT2}
 @end table


@@ -9848,44 +9842,6 @@  kind corresponding to @var{KIND}, or of
 @end table


-
-@node LONG
-@section @code{LONG} --- Convert to integer type
-@fnindex LONG
-@cindex conversion, to integer
-
-@table @asis
-@item @emph{Description}:
-Convert to a @code{KIND=4} integer type, which is the same size as a C
-@code{long} integer.  This is equivalent to the standard @code{INT}
-intrinsic with an optional argument of @code{KIND=4}, and is only
-included for backwards compatibility.
-
-@item @emph{Standard}:
-GNU extension
-
-@item @emph{Class}:
-Elemental function
-
-@item @emph{Syntax}:
-@code{RESULT = LONG(A)}
-
-@item @emph{Arguments}:
-@multitable @columnfractions .15 .70
-@item @var{A}    @tab Shall be of type @code{INTEGER},
-@code{REAL}, or @code{COMPLEX}.
-@end multitable
-
-@item @emph{Return value}:
-The return value is a @code{INTEGER(4)} variable.
-
-@item @emph{See also}:
-@ref{INT}, @gol
-@ref{INT2}, @gol
-@ref{INT8}
-@end table
-
-

 @node LSHIFT
 @section @code{LSHIFT} --- Left shift bits