public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics
@ 2021-10-29 14:13 Manfred Schwarb
  2021-10-29 19:52 ` Harald Anlauf
  0 siblings, 1 reply; 6+ messages in thread
From: Manfred Schwarb @ 2021-10-29 14:13 UTC (permalink / raw)
  To: fortran, gcc-patches

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

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]

[-- Attachment #2: remove_short_and_long_docu.patch --]
[-- Type: text/x-patch, Size: 2524 bytes --]

--- 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

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

* Re: [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics
  2021-10-29 14:13 [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics Manfred Schwarb
@ 2021-10-29 19:52 ` Harald Anlauf
  2021-10-29 19:52   ` Harald Anlauf
  2021-10-29 23:16   ` Manfred Schwarb
  0 siblings, 2 replies; 6+ messages in thread
From: Harald Anlauf @ 2021-10-29 19:52 UTC (permalink / raw)
  To: Manfred Schwarb, fortran, gcc-patches

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]
>


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

* Re: [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics
  2021-10-29 19:52 ` Harald Anlauf
@ 2021-10-29 19:52   ` Harald Anlauf
  2021-10-29 23:16   ` Manfred Schwarb
  1 sibling, 0 replies; 6+ messages in thread
From: Harald Anlauf @ 2021-10-29 19:52 UTC (permalink / raw)
  To: gcc-patches; +Cc: 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?

Thanks,
Harald

> Signed-off-by Manfred Schwarb <manfred99@gmx.ch>
> 
> 
> [Note: I do not have commit access]
> 



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

* Re: [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics
  2021-10-29 19:52 ` Harald Anlauf
  2021-10-29 19:52   ` Harald Anlauf
@ 2021-10-29 23:16   ` Manfred Schwarb
  2021-10-30 18:19     ` Harald Anlauf
  1 sibling, 1 reply; 6+ messages in thread
From: Manfred Schwarb @ 2021-10-29 23:16 UTC (permalink / raw)
  To: Harald Anlauf, fortran; +Cc: gcc-patches

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

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]
>>
>
>


[-- Attachment #2: remove_short_and_long_docu.patch --]
[-- Type: text/x-patch, Size: 2491 bytes --]

2021-10-30  Manfred Schwarb  <manfred99@gmx.ch>

gcc/fortran/ChangeLog:

	* intrinsic.texi: Remove entries for SHORT and LONG intrinsics.

--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -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

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

* Re: [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics
  2021-10-29 23:16   ` Manfred Schwarb
@ 2021-10-30 18:19     ` Harald Anlauf
  2021-10-30 18:19       ` Harald Anlauf
  0 siblings, 1 reply; 6+ messages in thread
From: Harald Anlauf @ 2021-10-30 18:19 UTC (permalink / raw)
  To: Manfred Schwarb, fortran; +Cc: gcc-patches

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]
>>>
>>
>>
>


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

* Re: [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics
  2021-10-30 18:19     ` Harald Anlauf
@ 2021-10-30 18:19       ` Harald Anlauf
  0 siblings, 0 replies; 6+ messages in thread
From: Harald Anlauf @ 2021-10-30 18:19 UTC (permalink / raw)
  To: gcc-patches; +Cc: fortran

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]
>>>
>>
>>
> 



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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 14:13 [PATCH] Fortran: Remove documentation for SHORT and LONG intrinics Manfred Schwarb
2021-10-29 19:52 ` Harald Anlauf
2021-10-29 19:52   ` Harald Anlauf
2021-10-29 23:16   ` Manfred Schwarb
2021-10-30 18:19     ` Harald Anlauf
2021-10-30 18:19       ` Harald Anlauf

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).