Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2220000/?format=api
{ "id": 2220000, "url": "http://patchwork.ozlabs.org/api/patches/2220000/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260405173101.705061-1-sloosemore@baylibre.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260405173101.705061-1-sloosemore@baylibre.com>", "list_archive_url": null, "date": "2026-04-05T17:31:00", "name": "[RFA] doc: Make regenerate-opt-urls.py handle two-dash options [PR124784]", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e53c11541eda93d5ef9050ef8312aabc4868d705", "submitter": { "id": 87955, "url": "http://patchwork.ozlabs.org/api/people/87955/?format=api", "name": "Sandra Loosemore", "email": "sloosemore@baylibre.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260405173101.705061-1-sloosemore@baylibre.com/mbox/", "series": [ { "id": 498799, "url": "http://patchwork.ozlabs.org/api/series/498799/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498799", "date": "2026-04-05T17:31:00", "name": "[RFA] doc: Make regenerate-opt-urls.py handle two-dash options [PR124784]", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498799/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220000/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220000/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=pJ4OX5DH;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=pJ4OX5DH", "sourceware.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "sourceware.org; spf=pass smtp.mailfrom=baylibre.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.161.52" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpfdt748kz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 03:31:44 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 8B1664BA2E27\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 5 Apr 2026 17:31:42 +0000 (GMT)", "from mail-oo1-f52.google.com (mail-oo1-f52.google.com\n [209.85.161.52])\n by sourceware.org (Postfix) with ESMTPS id B433E4BA2E1C\n for <gcc-patches@gcc.gnu.org>; Sun, 5 Apr 2026 17:31:08 +0000 (GMT)", "by mail-oo1-f52.google.com with SMTP id\n 006d021491bc7-6823fc5c3faso1253640eaf.1\n for <gcc-patches@gcc.gnu.org>; Sun, 05 Apr 2026 10:31:08 -0700 (PDT)", "from nenufar.hsd1.co.comcast.net ([2601:281:d901:97c0::9a27])\n by smtp.gmail.com with ESMTPSA id\n 006d021491bc7-68448c1c15dsm2478244eaf.0.2026.04.05.10.31.05\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 10:31:06 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 8B1664BA2E27", "OpenDKIM Filter v2.11.0 sourceware.org B433E4BA2E1C" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org B433E4BA2E1C", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org B433E4BA2E1C", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775410269; cv=none;\n b=SLnA22xYs3+g6Ux88xLsNTsPJa5FXBfDwriaR5htEkhWDMqxwCtQitJUYgxtHlLFo9vsM5C2nu+mhu4CbzLhPaDExyyr6eBhTNGNn4M0rafZJvtKUa1BoPdKRE7up47MhTTj4gUDVPVpoGCZea0d1gFJngCl/CWAxG5RHltWYk8=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775410269; c=relaxed/simple;\n bh=UaQB0SAUUrKP6LUpRktMnL/YMGRQGehgXQjfNphq4AE=;\n h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;\n b=MS5XvamIMpBHGk9GClmc1u2IPu0Pi/RbcLAknYTzhzNY1YVZwg5LQb8TPBNHdls2xIhsDu8ut+tUp/OjuDN2YulXpyCxt1PZtEUaN2u7cd2NbaJscbUZBLWlvg+iWrQ95AtBzMBGVEYdxdY4ysVmEUW939we8W0Sd0WBBsIrv9g=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1775410268;\n x=1776015068;\n darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=jAvBIsdf35Aa/giBwTXwcvDHuhO8PLkH6h2aVQYDFXo=;\n b=pJ4OX5DHn+g8emw++cktyxzzY9qamXPbAKk7kHearpBgg0mfs0IhSO+fUgYUqBd9oh\n NdoRu3XNcuGNiRY5L1dvNf7Jcie4PTi5StXn526t7UrggyYP2gLIeY5PdSpOFmJRYonC\n M3zf+3e5riU+wv0eAlRTCUOjiyPKrwF45vWRQMNUjKkyH7qah0+HcOTPvI/5reWURDws\n V+x3rGMr9+WhXwtG4cnDtoupMWLQspGCD5MagP49hIu/gbpfGdvS3bP2xY09kCx+VstY\n 38hi2tdIfMyZ5NyVuVzgECVPrjlVRcP7N/eKqSguqueeh15WKOUxygCNaZPWgQvScTNw\n hOuQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775410268; x=1776015068;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=jAvBIsdf35Aa/giBwTXwcvDHuhO8PLkH6h2aVQYDFXo=;\n b=EqSG9fDwNTEFhS4ltTVCg55tJbSBW9/fLYVJn/N5Hiqki0bcv+e0fwSl6a53VTZ6hv\n Gn/ShS77Tce21IcyUd3TVtVioACsJcnaK0bwwIfifLx5a3UCJU7sLDsIUI5IPOl45VUW\n XlgkUq6AA6w8APtGHs0qSx9t+/2Zp7/x+XwMhaJjFZU+SU4HQh6I646mjvDhWUINIGC7\n sNKDjVQKMyTBVNvy5YeB8qUedGMNIkaeAK/ZAHdyoCGGnV9uqsTOUSd3sNnktEC/2d3a\n bZzGEW99z4F/GH1hSURMqBKoEOsrhsn317XeZXMxsAX4iDxyzXYZYWVhkIYj8/SRe7oW\n yLiw==", "X-Gm-Message-State": "AOJu0Ywg2AK0/1IwXVEPguaMyuxseVEDdpnGjt+RpoKcdfAQH+y/Kkhm\n SXNrm9c9twP+snUPblI+EzwFKkB8BA0DLehBr2c7OEJLfjVAskREqL89+QiNiCgRhxr0+hmpI/T\n gMsgg", "X-Gm-Gg": "AeBDiev4hi6e3I6UanIYLz0RV2GpTwGbNliL56LrLAI+S4fL96sZNNJb1CQzHu/I41B\n Uy7UAgLUbuHqbAEXBljO9j4zAbIWIP49RRvxNOiKoPGoZ/ldQTPYnxObViziWna+rQYW8DIh+nq\n M7xyF9XCUYjfuCBbHU8h+Jh98MOLCVu1t42glFjOqYRe5S3gZXvPL9KM26ST71D/S0G7dwOgejZ\n ZhjMuNihs8Ie3JC+dRGxuPS9m8QkivcJYePmZPTEPn54PEUnW3q72b/hfskiwB3YSJ8WdVNZ97F\n UTh5b4lHCCEI/YCRphL6uFpr9jolqmLd2LGL8CoGfYNoWTKU69CTl6bRLfJ1qSjDzfOUbbCVUEO\n 1sg6KHyz6kyrHJyQmEpK4Fnr//SRokfNviWjSzleNqNbDvm7GwOMW+S3uXwkbt04JwNSwJ1tZOX\n bn3XZDvovDvFXjIwiu+RCnpVliFaJOjGvn", "X-Received": "by 2002:a05:6820:6ac8:b0:67f:c98c:ee58 with SMTP id\n 006d021491bc7-6822064abb4mr5704797eaf.48.1775410267599;\n Sun, 05 Apr 2026 10:31:07 -0700 (PDT)", "From": "Sandra Loosemore <sloosemore@baylibre.com>", "To": "gcc-patches@gcc.gnu.org", "Subject": "[RFA] doc: Make regenerate-opt-urls.py handle two-dash options\n [PR124784]", "Date": "Sun, 5 Apr 2026 11:31:00 -0600", "Message-Id": "<20260405173101.705061-1-sloosemore@baylibre.com>", "X-Mailer": "git-send-email 2.34.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "I was puzzled as to why the generated config/picolib.opt.urls\ncontained no entries. It turns out this was a general problem with\nregenerate-opt-urls.py failing to handle options starting with two dashes,\nwhich are listed with one dash in the .opt file but zero dashes (same as\none-dash options) in the index entries. The solution here is to remove one\nof the dashes when canonicalizing the option name for lookup in the index.\n\ngcc/ChangeLog\n\tPR other/124784\n\t* regenerate-opt-urls.py (canonicalize_option_name): Remove one\n\tof the dashes from option names starting with two dashes.\n\t(test_parse_option_index): Add a self-test for this.\n\t* common.opt.urls: Regenerated.\n\t* config/picolibc.opt.urls: Regenerated.\n\ngcc/ada/ChangeLog\n\tPR other/124784\n\t* gcc-interface/lang.opt.urls: Regenerated.\n\ngcc/c-family/ChangeLog\n\tPR other/124784\n\t* c.opt.urls: Regenerated.\n\ngcc/d/ChangeLog\n\tPR other/124784\n\t* lang.opt.urls: Regenerated.\n\ngcc/fortran/ChangeLog\n\tPR other/124784\n\t* lang.opt.urls: Regenerated.\n\ngcc/m2/ChangeLog\n\tPR other/124784\n\t* lang.opt.urls: Regenerated.\n---\n gcc/ada/gcc-interface/lang.opt.urls | 18 +++\n gcc/c-family/c.opt.urls | 159 +++++++++++++++++++++\n gcc/common.opt.urls | 211 ++++++++++++++++++++++++++++\n gcc/config/picolibc.opt.urls | 24 ++++\n gcc/d/lang.opt.urls | 18 +++\n gcc/fortran/lang.opt.urls | 86 ++++++++++++\n gcc/m2/lang.opt.urls | 3 +\n gcc/regenerate-opt-urls.py | 8 ++\n 8 files changed, 527 insertions(+)", "diff": "diff --git a/gcc/ada/gcc-interface/lang.opt.urls b/gcc/ada/gcc-interface/lang.opt.urls\nindex cc34c8c06b6..19070043581 100644\n--- a/gcc/ada/gcc-interface/lang.opt.urls\n+++ b/gcc/ada/gcc-interface/lang.opt.urls\n@@ -1,5 +1,23 @@\n ; Autogenerated by regenerate-opt-urls.py from gcc/ada/gcc-interface/lang.opt and generated HTML\n \n+-all-warnings\n+UrlSuffix(gcc/Warning-Options.html#index-all-warnings)\n+\n+-include-barrier\n+UrlSuffix(gcc/Directory-Options.html#index-include-barrier)\n+\n+-include-directory\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory)\n+\n+-include-directory=\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory)\n+\n+-no-standard-includes\n+UrlSuffix(gcc/Directory-Options.html#index-no-standard-includes)\n+\n+-no-standard-libraries\n+UrlSuffix(gcc/Link-Options.html#index-no-standard-libraries)\n+\n I\n UrlSuffix(gcc/Directory-Options.html#index-I) LangUrlSuffix_D(gdc/Directory-Options.html#index-I) LangUrlSuffix_Algol68(ga68/Directory-options.html#index-I)\n \ndiff --git a/gcc/c-family/c.opt.urls b/gcc/c-family/c.opt.urls\nindex 785efdd6973..33b532fdb24 100644\n--- a/gcc/c-family/c.opt.urls\n+++ b/gcc/c-family/c.opt.urls\n@@ -1,5 +1,164 @@\n ; Autogenerated by regenerate-opt-urls.py from gcc/c-family/c.opt and generated HTML\n \n+-all-warnings\n+UrlSuffix(gcc/Warning-Options.html#index-all-warnings)\n+\n+; skipping UrlSuffix for '-ansi' due to multiple URLs:\n+; duplicate: 'gcc/C-Dialect-Options.html#index-ansi-1'\n+; duplicate: 'gcc/Library-Builtins.html#index-ansi-2'\n+; duplicate: 'gcc/Non-bugs.html#index-ansi-3'\n+; duplicate: 'gcc/Standards.html#index-ansi'\n+\n+-compile-std-module\n+UrlSuffix(gcc/C_002b_002b-Dialect-Options.html#index-compile-std-module)\n+\n+-comments\n+UrlSuffix(gcc/Preprocessor-Options.html#index-comments)\n+\n+-comments-in-macros\n+UrlSuffix(gcc/Preprocessor-Options.html#index-comments-in-macros)\n+\n+-define-macro\n+UrlSuffix(gcc/Preprocessor-Options.html#index-define-macro)\n+\n+-define-macro=\n+UrlSuffix(gcc/Preprocessor-Options.html#index-define-macro)\n+\n+-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-dependencies)\n+\n+; skipping UrlSuffix for '-dump' due to multiple URLs:\n+; duplicate: 'gcc/Developer-Options.html#index-dump-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-dump'\n+\n+; skipping UrlSuffix for '-dump=' due to multiple URLs:\n+; duplicate: 'gcc/Developer-Options.html#index-dump-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-dump'\n+\n+-embed-dir=\n+UrlSuffix(gcc/Directory-Options.html#index-embed-dir)\n+\n+-embed-directory\n+UrlSuffix(gcc/Directory-Options.html#index-embed-directory)\n+\n+-embed-directory=\n+UrlSuffix(gcc/Directory-Options.html#index-embed-directory)\n+\n+-imacros\n+UrlSuffix(gcc/Preprocessor-Options.html#index-imacros)\n+\n+-imacros=\n+UrlSuffix(gcc/Preprocessor-Options.html#index-imacros)\n+\n+-include\n+UrlSuffix(gcc/Preprocessor-Options.html#index-include)\n+\n+-include=\n+UrlSuffix(gcc/Preprocessor-Options.html#index-include)\n+\n+-include-barrier\n+UrlSuffix(gcc/Directory-Options.html#index-include-barrier)\n+\n+-include-directory\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory)\n+\n+-include-directory=\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory)\n+\n+-include-directory-after\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory-after)\n+\n+-include-directory-after=\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory-after)\n+\n+-include-prefix\n+UrlSuffix(gcc/Directory-Options.html#index-include-prefix)\n+\n+-include-prefix=\n+UrlSuffix(gcc/Directory-Options.html#index-include-prefix)\n+\n+-include-with-prefix\n+UrlSuffix(gcc/Directory-Options.html#index-include-with-prefix)\n+\n+-include-with-prefix=\n+UrlSuffix(gcc/Directory-Options.html#index-include-with-prefix)\n+\n+-include-with-prefix-after\n+UrlSuffix(gcc/Directory-Options.html#index-include-with-prefix-after)\n+\n+-include-with-prefix-after=\n+UrlSuffix(gcc/Directory-Options.html#index-include-with-prefix-after)\n+\n+-include-with-prefix-before\n+UrlSuffix(gcc/Directory-Options.html#index-include-with-prefix-before)\n+\n+-include-with-prefix-before=\n+UrlSuffix(gcc/Directory-Options.html#index-include-with-prefix-before)\n+\n+-no-integrated-cpp\n+UrlSuffix(gcc/Preprocessor-Options.html#index-no-integrated-cpp)\n+\n+-no-line-commands\n+UrlSuffix(gcc/Preprocessor-Options.html#index-no-line-commands)\n+\n+-no-standard-includes\n+UrlSuffix(gcc/Directory-Options.html#index-no-standard-includes)\n+\n+-no-warnings\n+UrlSuffix(gcc/Warning-Options.html#index-no-warnings)\n+\n+-output\n+UrlSuffix(gcc/Overall-Options.html#index-output)\n+\n+-output=\n+UrlSuffix(gcc/Overall-Options.html#index-output)\n+\n+; skipping UrlSuffix for '-pedantic' due to multiple URLs:\n+; duplicate: 'gcc/Alternate-Keywords.html#index-pedantic-3'\n+; duplicate: 'gcc/C-Extensions.html#index-pedantic-2'\n+; duplicate: 'gcc/Standards.html#index-pedantic'\n+; duplicate: 'gcc/Warning-Options.html#index-pedantic-1'\n+; duplicate: 'gcc/Warnings-and-Errors.html#index-pedantic-4'\n+-pedantic\n+LangUrlSuffix_Fortran(gfortran/Error-and-Warning-Options.html#index-pedantic)\n+\n+-preprocess\n+UrlSuffix(gcc/Overall-Options.html#index-preprocess)\n+\n+-print-missing-file-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-print-missing-file-dependencies)\n+\n+-trace-includes\n+UrlSuffix(gcc/Preprocessor-Options.html#index-trace-includes)\n+\n+; skipping UrlSuffix for '-traditional' due to multiple URLs:\n+; duplicate: 'gcc/Incompatibilities.html#index-traditional-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-traditional'\n+\n+-traditional-cpp\n+UrlSuffix(gcc/Preprocessor-Options.html#index-traditional-cpp)\n+\n+-trigraphs\n+UrlSuffix(gcc/Preprocessor-Options.html#index-trigraphs)\n+\n+-undefine-macro\n+UrlSuffix(gcc/Preprocessor-Options.html#index-undefine-macro)\n+\n+-undefine-macro=\n+UrlSuffix(gcc/Preprocessor-Options.html#index-undefine-macro)\n+\n+-user-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-user-dependencies)\n+\n+-verbose\n+UrlSuffix(gcc/Overall-Options.html#index-verbose)\n+\n+-write-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-write-dependencies)\n+\n+-write-user-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-write-user-dependencies)\n+\n C\n UrlSuffix(gcc/Preprocessor-Options.html#index-C) LangUrlSuffix_Fortran(gfortran/Preprocessing-Options.html#index-C)\n \ndiff --git a/gcc/common.opt.urls b/gcc/common.opt.urls\nindex 6325b083615..b316954a98e 100644\n--- a/gcc/common.opt.urls\n+++ b/gcc/common.opt.urls\n@@ -3,9 +3,220 @@\n ###\n UrlSuffix(gcc/Overall-Options.html#index-_0023_0023_0023)\n \n+-assemble\n+UrlSuffix(gcc/Overall-Options.html#index-assemble)\n+\n+-compile\n+UrlSuffix(gcc/Overall-Options.html#index-compile)\n+\n+-coverage\n+UrlSuffix(gcc/Instrumentation-Options.html#index-coverage)\n+\n+-debug\n+UrlSuffix(gcc/Debugging-Options.html#index-debug)\n+\n+; skipping UrlSuffix for '-dump' due to multiple URLs:\n+; duplicate: 'gcc/Developer-Options.html#index-dump-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-dump'\n+\n+; skipping UrlSuffix for '-dump=' due to multiple URLs:\n+; duplicate: 'gcc/Developer-Options.html#index-dump-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-dump'\n+\n+-dumpbase\n+UrlSuffix(gcc/Overall-Options.html#index-dumpbase)\n+\n+-dumpbase-ext\n+UrlSuffix(gcc/Overall-Options.html#index-dumpbase-ext)\n+\n+-dumpdir\n+UrlSuffix(gcc/Overall-Options.html#index-dumpdir)\n+\n+-entry\n+UrlSuffix(gcc/Link-Options.html#index-entry)\n+\n+-entry=\n+UrlSuffix(gcc/Link-Options.html#index-entry)\n+\n+-extra-warnings\n+UrlSuffix(gcc/Warning-Options.html#index-extra-warnings)\n+\n+-for-assembler\n+UrlSuffix(gcc/Assembler-Options.html#index-for-assembler)\n+\n+-for-assembler=\n+UrlSuffix(gcc/Assembler-Options.html#index-for-assembler)\n+\n+-for-linker\n+UrlSuffix(gcc/Link-Options.html#index-for-linker)\n+\n+-for-linker=\n+UrlSuffix(gcc/Link-Options.html#index-for-linker)\n+\n+-force-link\n+UrlSuffix(gcc/Link-Options.html#index-force-link)\n+\n+-force-link=\n+UrlSuffix(gcc/Link-Options.html#index-force-link)\n+\n+-help\n+UrlSuffix(gcc/Overall-Options.html#index-help)\n+\n+-help=\n+UrlSuffix(gcc/Overall-Options.html#index-help)\n+\n+-language\n+UrlSuffix(gcc/Overall-Options.html#index-language)\n+\n+-language=\n+UrlSuffix(gcc/Overall-Options.html#index-language)\n+\n+-library-directory\n+UrlSuffix(gcc/Directory-Options.html#index-library-directory)\n+\n+-library-directory=\n+UrlSuffix(gcc/Directory-Options.html#index-library-directory)\n+\n+-no-canonical-prefixes\n+UrlSuffix(gcc/Directory-Options.html#index-no-canonical-prefixes)\n+\n+-no-standard-libraries\n+UrlSuffix(gcc/Link-Options.html#index-no-standard-libraries)\n+\n+-no-sysroot-suffix\n+UrlSuffix(gcc/Directory-Options.html#index-no-sysroot-suffix)\n+\n+-no-warnings\n+UrlSuffix(gcc/Warning-Options.html#index-no-warnings)\n+\n+-optimize\n+UrlSuffix(gcc/Optimize-Options.html#index-optimize-1)\n+\n+-output\n+UrlSuffix(gcc/Overall-Options.html#index-output)\n+\n+-output=\n+UrlSuffix(gcc/Overall-Options.html#index-output)\n+\n+-pass-exit-codes\n+UrlSuffix(gcc/Overall-Options.html#index-pass-exit-codes)\n+\n+; skipping UrlSuffix for '-pedantic' due to multiple URLs:\n+; duplicate: 'gcc/Alternate-Keywords.html#index-pedantic-3'\n+; duplicate: 'gcc/C-Extensions.html#index-pedantic-2'\n+; duplicate: 'gcc/Standards.html#index-pedantic'\n+; duplicate: 'gcc/Warning-Options.html#index-pedantic-1'\n+; duplicate: 'gcc/Warnings-and-Errors.html#index-pedantic-4'\n+-pedantic\n+LangUrlSuffix_Fortran(gfortran/Error-and-Warning-Options.html#index-pedantic)\n+\n+; skipping UrlSuffix for '-pedantic-errors' due to multiple URLs:\n+; duplicate: 'gcc/Non-bugs.html#index-pedantic-errors-2'\n+; duplicate: 'gcc/Standards.html#index-pedantic-errors'\n+; duplicate: 'gcc/Warning-Options.html#index-pedantic-errors-1'\n+; duplicate: 'gcc/Warnings-and-Errors.html#index-pedantic-errors-3'\n+-pedantic-errors\n+LangUrlSuffix_Fortran(gfortran/Error-and-Warning-Options.html#index-pedantic-errors)\n+\n+-pie\n+UrlSuffix(gcc/Link-Options.html#index-pie)\n+\n+-static-pie\n+UrlSuffix(gcc/Link-Options.html#index-static-pie)\n+\n+-pipe\n+UrlSuffix(gcc/Overall-Options.html#index-pipe)\n+\n+-prefix\n+UrlSuffix(gcc/Directory-Options.html#index-prefix)\n+\n+-prefix=\n+UrlSuffix(gcc/Directory-Options.html#index-prefix)\n+\n+-preprocess\n+UrlSuffix(gcc/Overall-Options.html#index-preprocess)\n+\n+-print-autofdo-gcov-version\n+UrlSuffix(gcc/Developer-Options.html#index-print-autofdo-gcov-version)\n+\n+-print-file-name\n+UrlSuffix(gcc/Developer-Options.html#index-print-file-name)\n+\n+-print-file-name=\n+UrlSuffix(gcc/Developer-Options.html#index-print-file-name)\n+\n+-print-libgcc-file-name\n+UrlSuffix(gcc/Developer-Options.html#index-print-libgcc-file-name)\n+\n+-print-multi-directory\n+UrlSuffix(gcc/Developer-Options.html#index-print-multi-directory)\n+\n+-print-multi-lib\n+UrlSuffix(gcc/Developer-Options.html#index-print-multi-lib)\n+\n+-print-multi-os-directory\n+UrlSuffix(gcc/Developer-Options.html#index-print-multi-os-directory)\n+\n+-print-multiarch\n+UrlSuffix(gcc/Developer-Options.html#index-print-multiarch)\n+\n+-print-prog-name\n+UrlSuffix(gcc/Developer-Options.html#index-print-prog-name)\n+\n+-print-prog-name=\n+UrlSuffix(gcc/Developer-Options.html#index-print-prog-name)\n+\n+-print-search-dirs\n+UrlSuffix(gcc/Developer-Options.html#index-print-search-dirs)\n+\n+-print-sysroot\n+UrlSuffix(gcc/Developer-Options.html#index-print-sysroot)\n+\n+-print-sysroot-headers-suffix\n+UrlSuffix(gcc/Developer-Options.html#index-print-sysroot-headers-suffix)\n+\n+-profile\n+UrlSuffix(gcc/Instrumentation-Options.html#index-profile)\n+\n+-save-temps\n+UrlSuffix(gcc/Developer-Options.html#index-save-temps)\n+\n+-shared\n+UrlSuffix(gcc/Link-Options.html#index-shared)\n+\n+-specs\n+UrlSuffix(gcc/Developer-Options.html#index-specs)\n+\n+-specs=\n+UrlSuffix(gcc/Developer-Options.html#index-specs)\n+\n+-static\n+UrlSuffix(gcc/Link-Options.html#index-static)\n+\n+-symbolic\n+UrlSuffix(gcc/Link-Options.html#index-symbolic)\n+\n+-target-help\n+UrlSuffix(gcc/Overall-Options.html#index-target-help)\n+\n+-time\n+UrlSuffix(gcc/Developer-Options.html#index-time)\n+\n+-verbose\n+UrlSuffix(gcc/Overall-Options.html#index-verbose)\n+\n fversion\n LangUrlSuffix_D(gdc/Runtime-Options.html#index-fversion)\n \n+-sysroot\n+UrlSuffix(gcc/Directory-Options.html#index-sysroot)\n+\n+-sysroot=\n+UrlSuffix(gcc/Directory-Options.html#index-sysroot)\n+\n+-version\n+UrlSuffix(gcc/Overall-Options.html#index-version)\n+\n B\n UrlSuffix(gcc/Directory-Options.html#index-B) LangUrlSuffix_D(gdc/Directory-Options.html#index-B)\n \ndiff --git a/gcc/config/picolibc.opt.urls b/gcc/config/picolibc.opt.urls\nindex b3a57d15a39..cfd2a75cba5 100644\n--- a/gcc/config/picolibc.opt.urls\n+++ b/gcc/config/picolibc.opt.urls\n@@ -1,2 +1,26 @@\n ; Autogenerated by regenerate-opt-urls.py from gcc/config/picolibc.opt and generated HTML\n \n+-oslib\n+UrlSuffix(gcc/Picolibc-Options.html#index-oslib)\n+\n+-oslib=\n+UrlSuffix(gcc/Picolibc-Options.html#index-oslib)\n+\n+-crt0\n+UrlSuffix(gcc/Picolibc-Options.html#index-crt0)\n+\n+-crt0=\n+UrlSuffix(gcc/Picolibc-Options.html#index-crt0)\n+\n+-printf\n+UrlSuffix(gcc/Picolibc-Options.html#index-printf-1)\n+\n+-printf=\n+UrlSuffix(gcc/Picolibc-Options.html#index-printf-1)\n+\n+-scanf\n+UrlSuffix(gcc/Picolibc-Options.html#index-scanf)\n+\n+-scanf=\n+UrlSuffix(gcc/Picolibc-Options.html#index-scanf)\n+\ndiff --git a/gcc/d/lang.opt.urls b/gcc/d/lang.opt.urls\nindex d0d9bc8fd3d..03ab1f93e66 100644\n--- a/gcc/d/lang.opt.urls\n+++ b/gcc/d/lang.opt.urls\n@@ -1,5 +1,20 @@\n ; Autogenerated by regenerate-opt-urls.py from gcc/d/lang.opt and generated HTML\n \n+-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-dependencies)\n+\n+-print-missing-file-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-print-missing-file-dependencies)\n+\n+-user-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-user-dependencies)\n+\n+-write-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-write-dependencies)\n+\n+-write-user-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-write-user-dependencies)\n+\n H\n UrlSuffix(gcc/Preprocessor-Options.html#index-H) LangUrlSuffix_D(gdc/Code-Generation.html#index-H) LangUrlSuffix_Fortran(gfortran/Preprocessing-Options.html#index-H)\n \n@@ -99,6 +114,9 @@ LangUrlSuffix_D(gdc/Linking.html#index-debuglib_003d)\n defaultlib=\n LangUrlSuffix_D(gdc/Linking.html#index-defaultlib_003d)\n \n+-verbose\n+UrlSuffix(gcc/Overall-Options.html#index-verbose)\n+\n fall-instantiations\n LangUrlSuffix_D(gdc/Runtime-Options.html#index-fall-instantiations)\n \ndiff --git a/gcc/fortran/lang.opt.urls b/gcc/fortran/lang.opt.urls\nindex 3bf0e7b88ea..c3549feb024 100644\n--- a/gcc/fortran/lang.opt.urls\n+++ b/gcc/fortran/lang.opt.urls\n@@ -1,5 +1,91 @@\n ; Autogenerated by regenerate-opt-urls.py from gcc/fortran/lang.opt and generated HTML\n \n+-all-warnings\n+UrlSuffix(gcc/Warning-Options.html#index-all-warnings)\n+\n+-comments\n+UrlSuffix(gcc/Preprocessor-Options.html#index-comments)\n+\n+-comments-in-macros\n+UrlSuffix(gcc/Preprocessor-Options.html#index-comments-in-macros)\n+\n+-define-macro\n+UrlSuffix(gcc/Preprocessor-Options.html#index-define-macro)\n+\n+-define-macro=\n+UrlSuffix(gcc/Preprocessor-Options.html#index-define-macro)\n+\n+-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-dependencies)\n+\n+; skipping UrlSuffix for '-dump' due to multiple URLs:\n+; duplicate: 'gcc/Developer-Options.html#index-dump-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-dump'\n+\n+; skipping UrlSuffix for '-dump=' due to multiple URLs:\n+; duplicate: 'gcc/Developer-Options.html#index-dump-1'\n+; duplicate: 'gcc/Preprocessor-Options.html#index-dump'\n+\n+-include-barrier\n+UrlSuffix(gcc/Directory-Options.html#index-include-barrier)\n+\n+-include-directory\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory)\n+\n+-include-directory=\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory)\n+\n+-include-directory-after\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory-after)\n+\n+-include-directory-after=\n+UrlSuffix(gcc/Directory-Options.html#index-include-directory-after)\n+\n+-include-prefix\n+UrlSuffix(gcc/Directory-Options.html#index-include-prefix)\n+\n+-include-prefix=\n+UrlSuffix(gcc/Directory-Options.html#index-include-prefix)\n+\n+-no-line-commands\n+UrlSuffix(gcc/Preprocessor-Options.html#index-no-line-commands)\n+\n+-no-standard-includes\n+UrlSuffix(gcc/Directory-Options.html#index-no-standard-includes)\n+\n+-output\n+UrlSuffix(gcc/Overall-Options.html#index-output)\n+\n+-output=\n+UrlSuffix(gcc/Overall-Options.html#index-output)\n+\n+-preprocess\n+UrlSuffix(gcc/Overall-Options.html#index-preprocess)\n+\n+-print-missing-file-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-print-missing-file-dependencies)\n+\n+-trace-includes\n+UrlSuffix(gcc/Preprocessor-Options.html#index-trace-includes)\n+\n+-undefine-macro\n+UrlSuffix(gcc/Preprocessor-Options.html#index-undefine-macro)\n+\n+-undefine-macro=\n+UrlSuffix(gcc/Preprocessor-Options.html#index-undefine-macro)\n+\n+-user-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-user-dependencies)\n+\n+-verbose\n+UrlSuffix(gcc/Overall-Options.html#index-verbose)\n+\n+-write-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-write-dependencies)\n+\n+-write-user-dependencies\n+UrlSuffix(gcc/Preprocessor-Options.html#index-write-user-dependencies)\n+\n C\n UrlSuffix(gcc/Preprocessor-Options.html#index-C) LangUrlSuffix_Fortran(gfortran/Preprocessing-Options.html#index-C)\n \ndiff --git a/gcc/m2/lang.opt.urls b/gcc/m2/lang.opt.urls\nindex 484101a0551..cf27756b04b 100644\n--- a/gcc/m2/lang.opt.urls\n+++ b/gcc/m2/lang.opt.urls\n@@ -113,6 +113,9 @@ UrlSuffix(gcc/Directory-Options.html#index-idirafter) LangUrlSuffix_Fortran(gfor\n imultilib\n UrlSuffix(gcc/Directory-Options.html#index-imultilib) LangUrlSuffix_D(gdc/Directory-Options.html#index-imultilib) LangUrlSuffix_Fortran(gfortran/Preprocessing-Options.html#index-imultilib)\n \n+-save-temps\n+UrlSuffix(gcc/Developer-Options.html#index-save-temps)\n+\n save-temps\n UrlSuffix(gcc/Developer-Options.html#index-save-temps)\n \ndiff --git a/gcc/regenerate-opt-urls.py b/gcc/regenerate-opt-urls.py\nindex 4db85c204e7..967968ece68 100755\n--- a/gcc/regenerate-opt-urls.py\n+++ b/gcc/regenerate-opt-urls.py\n@@ -46,6 +46,12 @@ import unittest\n def canonicalize_option_name(option_name):\n if option_name.endswith('='):\n option_name = option_name[0:-1]\n+ # Options starting with two dashes are listed with one dash in the\n+ # .opt file, plus we have already added the implicit dash to option_name.\n+ # But the index entries have zero dashes, so we have to remove one of the\n+ # dashes again to match them.\n+ if option_name[:2] == '--':\n+ option_name = option_name[1:]\n return option_name\n \n \n@@ -175,6 +181,8 @@ class TestParsingIndex(unittest.TestCase):\n {'gcc/Optimize-Options.html#index-O0'})\n self.assertEqual(index.get_url_suffixes('-Wframe-larger-than='),\n {'gcc/Warning-Options.html#index-Wframe-larger-than_003d'})\n+ self.assertEqual(index.get_url_suffixes('--static-pie'),\n+ {'gcc/Link-Options.html#index-static-pie'})\n \n # Check an option with duplicates: '-march'\n # The url_suffixes will be of the form\n", "prefixes": [ "RFA" ] }