On 6/6/25 00:44, Jan Beulich wrote:
As per documentation, even 4.7 ought to suffice. At least 4.13 objects
to there being nothing ahead of the first comma in @xref{}.
---
The text inserted it merely a guess; I'm open to better suggestions.

Noticed with gcc15, so may want backporting.

--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -10667,7 +10667,7 @@ and @samp{[[omp::sequence(...)]]} in C a
  GCC needs to be invoked with the @option{-fopenmp} option.
  This option also arranges for automatic linking of the OpenMP
  runtime library.
-@xref{,,,libgomp,GNU Offloading and Multi Processing Runtime Library}.
+@xref{Enabling OpenMP,,,libgomp,GNU Offloading and Multi Processing Runtime 
Library}.
@xref{OpenMP and OpenACC Options}, for additional options useful with
  @option{-fopenmp}.
@@ -10689,7 +10689,7 @@ To enable the processing of OpenACC dire
  in C and C++, GCC needs to be invoked with the @option{-fopenacc} option.
  This option also arranges for automatic linking of the OpenACC runtime
  library.
-@xref{,,,libgomp,GNU Offloading and Multi Processing Runtime Library}.
+@xref{Enabling OpenMP,,,libgomp,GNU Offloading and Multi Processing Runtime 
Library}.
@xref{OpenMP and OpenACC Options}, for additional options useful with
  @option{-fopenacc}.

Hmmm, good catch on this. I clearly need to build a libgomp 4.7 manual and use that for reference instead of the "normal" link at

https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html

which is for the most recent release.

I think in both places the node name specified as the first argument should be "Top" -- the reference is intended to be to the libgomp documentation as a whole, not the specific section about the compilation options. (And "Enabling OpenMP" is certainly the wrong reference for enabling OpenACC.)

No need to backport beyond GCC 15, this text was only added last December and doesn't exist in the GCC 14 and earlier manuals.

-Sandra

Reply via email to