]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: fix documentation of -fno-underscoring [PR109216]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 20 Mar 2023 19:55:00 +0000 (20:55 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 20 Mar 2023 21:35:27 +0000 (22:35 +0100)
gcc/fortran/ChangeLog:

PR fortran/109216
* invoke.texi: Correct documentation of how underscores are appended
to external names.

gcc/fortran/invoke.texi

index 5679e2f26500378c9bf469ade0494a7782320ce9..cbe7f3775073750b6ae18a8f94f31a28e4c31f40 100644 (file)
@@ -1573,7 +1573,7 @@ Do not transform names of entities specified in the Fortran
 source file by appending underscores to them.
 
 With @option{-funderscoring} in effect, GNU Fortran appends one
-underscore to external names with no underscores.  This is done to ensure
+underscore to external names.  This is done to ensure
 compatibility with code produced by many UNIX Fortran compilers.
 
 @emph{Caution}: The default behavior of GNU Fortran is
@@ -1596,7 +1596,7 @@ I = J() + MAX_COUNT (MY_VAR, LVAR)
 @noindent
 is implemented as something akin to:
 @smallexample
-i = j_() + max_count__(&my_var__, &lvar);
+i = j_() + max_count_(&my_var, &lvar);
 @end smallexample
 
 With @option{-fno-underscoring}, the same statement is implemented as: