https://gcc.gnu.org/g:3f337c3d7e2d41a3ed20ad630e99a4e7e89e1afa

commit r17-2980-g3f337c3d7e2d41a3ed20ad630e99a4e7e89e1afa
Author: Andrew Burgess <[email protected]>
Date:   Sat Jul 25 12:17:11 2026 +0100

    contrib: handle @option as indicating command to @table
    
    Add support for '@table @option'.  We already support '@option{text}',
    this just ensures that @option as the indicating command for table is
    handled the same way.
    
    The binutils-gdb project uses a slightly modified version of this
    script to build its own man pages, this is my attempt to ensure fixes
    flow back to the gcc project.  I checked the gcc docs and '@table
    @option' is not currently used, so this change will make no difference
    for gcc.
    
    contrib/ChangeLog:
    
            * texi2pod.pl: Handle @option as indicating command to @table.

Diff:
---
 contrib/texi2pod.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index 08681fd52e4d..5b4781259267 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/texi2pod.pl
@@ -301,7 +301,7 @@ while(<$inf>) {
        push @icstack, $ic;
        $endw = $1;
        $ic = $2;
-       $ic =~ s/\@(?:samp|strong|key|gcctabopt|env)/B/;
+       $ic =~ s/\@(?:samp|strong|key|option|gcctabopt|env)/B/;
        $ic =~ s/\@(?:code|kbd)/C/;
        $ic =~ s/\@(?:dfn|var|emph|cite|i)/I/;
        $ic =~ s/\@(?:file)/F/;

Reply via email to