Skip to content
Snippets Groups Projects
Commit 6c2b28e4 authored by Harald Anlauf's avatar Harald Anlauf
Browse files

Fortran: fix documentation of -fno-underscoring [PR109216]

gcc/fortran/ChangeLog:

	PR fortran/109216
	* invoke.texi: Correct documentation of how underscores are appended
	to external names.
parent a226590f
No related branches found
No related tags found
No related merge requests found
...@@ -1573,7 +1573,7 @@ Do not transform names of entities specified in the Fortran ...@@ -1573,7 +1573,7 @@ Do not transform names of entities specified in the Fortran
source file by appending underscores to them. source file by appending underscores to them.
With @option{-funderscoring} in effect, GNU Fortran appends one 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. compatibility with code produced by many UNIX Fortran compilers.
@emph{Caution}: The default behavior of GNU Fortran is @emph{Caution}: The default behavior of GNU Fortran is
...@@ -1596,7 +1596,7 @@ I = J() + MAX_COUNT (MY_VAR, LVAR) ...@@ -1596,7 +1596,7 @@ I = J() + MAX_COUNT (MY_VAR, LVAR)
@noindent @noindent
is implemented as something akin to: is implemented as something akin to:
@smallexample @smallexample
i = j_() + max_count__(&my_var__, &lvar); i = j_() + max_count_(&my_var, &lvar);
@end smallexample @end smallexample
With @option{-fno-underscoring}, the same statement is implemented as: With @option{-fno-underscoring}, the same statement is implemented as:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment