public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fortran manual: fix invalid BOZ 'ABC'X example to be X'ABC'.
@ 2021-11-21 10:47 Sergei Trofimovich
  2021-11-21 10:58 ` [PATCH v2] Fortran manual: extend deprecated BOZ examples with X'ABC' Sergei Trofimovich
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Trofimovich @ 2021-11-21 10:47 UTC (permalink / raw)
  To: gcc-patches; +Cc: Sergei Trofimovich

From: Sergei Trofimovich <siarheit@google.com>

	gcc/fortran/
	* gfortran.texi (BOZ literal constants): fix invalid BOZ 'ABC'X
	example to be X'ABC'.
---
 gcc/fortran/gfortran.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index 326470964b0..f01a49c47cc 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -1465,7 +1465,7 @@ dependent.  Gfortran interprets the sign bit as a user would expect.
 As a deprecated extension, GNU Fortran allows hexadecimal BOZ literal
 constants to be specified using the @code{X} prefix.  That the BOZ literal
 constant can also be specified by adding a suffix to the string, for
-example, @code{Z'ABC'} and @code{'ABC'X} are equivalent.  Additionally,
+example, @code{Z'ABC'} and @code{X'ABC'} are equivalent.  Additionally,
 as extension, BOZ literals are permitted in some contexts outside of
 @code{DATA} and the intrinsic functions listed in the Fortran standard.
 Use @option{-fallow-invalid-boz} to enable the extension.
-- 
2.33.1


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

* [PATCH v2] Fortran manual: extend deprecated BOZ examples with X'ABC'
  2021-11-21 10:47 [PATCH] Fortran manual: fix invalid BOZ 'ABC'X example to be X'ABC' Sergei Trofimovich
@ 2021-11-21 10:58 ` Sergei Trofimovich
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2021-11-21 10:58 UTC (permalink / raw)
  To: gcc-patches; +Cc: Sergei Trofimovich

From: Sergei Trofimovich <siarheit@google.com>

	gcc/fortran/
	* gfortran.texi (BOZ literal constants): add X'ABC' to the list
	of valid examples.
---
 gcc/fortran/gfortran.texi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index 326470964b0..f7184147a82 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -1465,10 +1465,10 @@ dependent.  Gfortran interprets the sign bit as a user would expect.
 As a deprecated extension, GNU Fortran allows hexadecimal BOZ literal
 constants to be specified using the @code{X} prefix.  That the BOZ literal
 constant can also be specified by adding a suffix to the string, for
-example, @code{Z'ABC'} and @code{'ABC'X} are equivalent.  Additionally,
-as extension, BOZ literals are permitted in some contexts outside of
-@code{DATA} and the intrinsic functions listed in the Fortran standard.
-Use @option{-fallow-invalid-boz} to enable the extension.
+example, @code{Z'ABC'}, @code{'ABC'X} and @code{X'ABC'} are equivalent.
+Additionally, as extension, BOZ literals are permitted in some contexts
+outside of @code{DATA} and the intrinsic functions listed in the Fortran
+standard. Use @option{-fallow-invalid-boz} to enable the extension.
 
 @node Real array indices
 @subsection Real array indices
-- 
2.33.1


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

end of thread, other threads:[~2021-11-21 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-21 10:47 [PATCH] Fortran manual: fix invalid BOZ 'ABC'X example to be X'ABC' Sergei Trofimovich
2021-11-21 10:58 ` [PATCH v2] Fortran manual: extend deprecated BOZ examples with X'ABC' Sergei Trofimovich

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