https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124784

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sandra Loosemore <[email protected]>:

https://gcc.gnu.org/g:e0696b89157d79781e9c438d4ddfda9a41909983

commit r16-8505-ge0696b89157d79781e9c438d4ddfda9a41909983
Author: Sandra Loosemore <[email protected]>
Date:   Sun Apr 5 17:09:37 2026 +0000

    doc: Make regenerate-opt-urls.py handle two-dash options [PR124784]

    I was puzzled as to why the generated config/picolib.opt.urls
    contained no entries.  It turns out this was a general problem with
    regenerate-opt-urls.py failing to handle options starting with two dashes,
    which are listed with one dash in the .opt file but zero dashes (same as
    one-dash options) in the index entries.  The solution here is to remove one
    of the dashes when canonicalizing the option name for lookup in the index.

    gcc/ChangeLog
            PR other/124784
            * regenerate-opt-urls.py (canonicalize_option_name):  Remove one
            of the dashes from option names starting with two dashes.
            (test_parse_option_index): Add a self-test for this.
            * common.opt.urls: Regenerated.
            * config/picolibc.opt.urls: Regenerated.

    gcc/ada/ChangeLog
            PR other/124784
            * gcc-interface/lang.opt.urls: Regenerated.

    gcc/c-family/ChangeLog
            PR other/124784
            * c.opt.urls: Regenerated.

    gcc/d/ChangeLog
            PR other/124784
            * lang.opt.urls: Regenerated.

    gcc/fortran/ChangeLog
            PR other/124784
            * lang.opt.urls: Regenerated.

    gcc/m2/ChangeLog
            PR other/124784
            * lang.opt.urls: Regenerated.

Reply via email to