{
  "bundle": {
    "affected_versions": [
      "13.2.0",
      "14.2.0",
      "15.3.0",
      "16.1.0",
      "16.2.0"
    ],
    "application_command": "patch --fuzz=0 -p1 -i bundles/protected-duration-validity/patches/gcc-13-16.patch",
    "build_command": "PATH=/path/to/bootstrap/bin:$PATH ./scripts/build-gnat.sh SOURCE BUILD INSTALL",
    "directory": "bundles/protected-duration-validity",
    "expected_failure_before_patch": "On Linux x86-64 with -gnatVa the unoptimized program raises CONSTRAINT_ERROR 'invalid data' for a valid negative Duration, and optimized compilation aborts in fold_convert_loc before producing an executable. The same round trip succeeds on AArch64 before the patch, so those lanes are unpatched target controls.",
    "expected_success_after_patch": "The executable test prints PASS protected Duration validity at -O0 and -O2 with -gnatVa on all supported targets.",
    "files_modified": [
      "gcc/ada/exp_ch9.adb",
      "gcc/testsuite/gnat.dg/protected_duration_validity.adb"
    ],
    "fixture_sha256": "c64d6891008d30b5be8fd57768033c394a79fccd01dcc0de9d8633cff5d1dbe9",
    "id": "protected-duration-validity",
    "introduced_in_patchset": "1.1.0",
    "known_good_versions": [],
    "licensing": "GCC-derived compiler hunks remain GPL-3.0-or-later. The new test is proposed for the GCC testsuite under GCC project terms.",
    "patch_statistics": {
      "gcc-13-16": {
        "additions": 46,
        "deletions": 0,
        "files": 2
      }
    },
    "problem": "Automatically selected lock-free protected bodies retain invalid Duration validity checks.",
    "readme_path": "bundles/protected-duration-validity/README.md",
    "regression_tests": [
      "gcc/testsuite/gnat.dg/protected_duration_validity.adb"
    ],
    "repository_fixture": "bundles/protected-duration-validity/tests/protected_duration_validity.adb",
    "repository_test_runner": "bundles/protected-duration-validity/run-test.sh",
    "roles": {
      "1.0.0": {
        "13": {
          "role": "absent",
          "source_version": "13.2.0",
          "variant": null
        },
        "14": {
          "role": "absent",
          "source_version": "14.2.0",
          "variant": null
        },
        "15": {
          "role": "absent",
          "source_version": "15.3.0",
          "variant": null
        },
        "16": {
          "role": "absent",
          "source_version": "16.1.0",
          "variant": null
        }
      },
      "1.0.1": {
        "13": {
          "role": "absent",
          "source_version": "13.2.0",
          "variant": null
        },
        "14": {
          "role": "absent",
          "source_version": "14.2.0",
          "variant": null
        },
        "15": {
          "role": "absent",
          "source_version": "15.3.0",
          "variant": null
        },
        "16": {
          "role": "absent",
          "source_version": "16.1.0",
          "variant": null
        }
      },
      "1.1.0": {
        "13": {
          "role": "patched",
          "source_version": "13.2.0",
          "variant": "gcc-13-16"
        },
        "14": {
          "role": "patched",
          "source_version": "14.2.0",
          "variant": "gcc-13-16"
        },
        "15": {
          "role": "patched",
          "source_version": "15.3.0",
          "variant": "gcc-13-16"
        },
        "16": {
          "role": "patched",
          "source_version": "16.2.0",
          "variant": "gcc-13-16"
        }
      },
      "1.2.0": {
        "13": {
          "role": "patched",
          "source_version": "13.2.0",
          "variant": "gcc-13-16"
        },
        "14": {
          "role": "patched",
          "source_version": "14.2.0",
          "variant": "gcc-13-16"
        },
        "15": {
          "role": "patched",
          "source_version": "15.3.0",
          "variant": "gcc-13-16"
        },
        "16": {
          "role": "patched",
          "source_version": "16.2.0",
          "variant": "gcc-13-16"
        }
      }
    },
    "schema": 1,
    "source_provenance": "Reproducer and cross-target observations recorded in the Flyology issue; correction derived from the pinned GCC sources and verified against every pinned FSF and Darwin source identity.",
    "standalone_patch": true,
    "status": "accepted",
    "test_command": "./scripts/run-regressions.sh INSTALL 1.1.0 GCC_MAJOR patched",
    "tests": [
      "bundles/protected-duration-validity/tests/protected_duration_validity.adb"
    ],
    "title": "Protected Duration validity checks",
    "upstream_issue": "https://github.com/flyology-ada/flyology/issues/21",
    "upstream_submission_state": "Tracked for GCC Bugzilla filing and gcc-patches submission; no GCC PR or mailing-list archive is recorded yet.",
    "variants": [
      {
        "id": "gcc-13-16",
        "patch": "bundles/protected-duration-validity/patches/gcc-13-16.patch",
        "sha256": "6338408d12909a33b08aacb4e7fed00c3c3c861ef6646192ff640afc1309bc2e",
        "source_flavors": [
          "linux",
          "darwin_arm64"
        ],
        "versions": [
          "13.2.0",
          "14.2.0",
          "15.3.0",
          "16.1.0",
          "16.2.0"
        ]
      }
    ]
  },
  "canonical_url": "https://gnat-patches.flyology.org/",
  "generated_at": "2026-08-20T16:06:15Z",
  "latest_patchset": "1.2.0",
  "latest_published_patchset": "1.1.0",
  "publication_checked": true,
  "repository_url": "https://github.com/flyology-ada/gnat-patches",
  "schema_version": 1
}
