Fixes two overfull hboxes in the OpenMP portions of the documentation.
Committed as pre-approved/obvious after a private conversation with
Sandra (CC'd) about it. Committed patch attached.
From 8c1f49419e61f14a5db2c7d1af0ab3d1424dc345 Mon Sep 17 00:00:00 2001
From: supers1ngular <[email protected]>
Date: Tue, 20 Jan 2026 08:32:15 -0800
Subject: [PATCH] doc, openmp: Fix Overfull Hboxes for OpenMP Docs

Fixes two instances of overfull hboxes in the documentation
for OpenMP.

gcc/ChangeLog:

	* doc/extend.texi: Swap samp fields to fix overfull hbox.
	* doc/invoke.texi: Ditto.

---
 gcc/doc/extend.texi | 2 +-
 gcc/doc/invoke.texi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index b4879b3d82f..ac86a2e1484 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -11133,7 +11133,7 @@ GNU Offloading and Multi Processing Runtime Library},
 for more details about currently supported OpenMP features.
 
 To enable the processing of OpenMP directives @samp{#pragma omp},
-@samp{[[omp::directive(...)]]}, @samp{[[omp::decl(...)]]},
+@samp{[[omp::decl(...)]]}, @samp{[[omp::directive(...)]]},
 and @samp{[[omp::sequence(...)]]} in C and C++,
 GCC needs to be invoked with the @option{-fopenmp} option.
 This option also arranges for automatic linking of the OpenMP
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index ba26986bd87..a81736fb91f 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -5506,7 +5506,7 @@ A size can be omitted, to use a target-specific default value.
 @cindex OpenMP parallel
 @item -fopenmp
 Enable handling of OpenMP directives @samp{#pragma omp},
-@samp{[[omp::directive(...)]]}, @samp{[[omp::decl(...)]]},
+@samp{[[omp::decl(...)]]}, @samp{[[omp::directive(...)]]},
 and @samp{[[omp::sequence(...)]]} in C/C++.  In Fortran, it enables
 @samp{!$omp} and the conditional compilation sentinel @samp{!$}.
 In fixed source form Fortran, the sentinels can also start with
-- 
2.51.2

Reply via email to