get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2195325/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2195325,
    "url": "http://patchwork.ozlabs.org/api/patches/2195325/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/D5036728-23D1-4AF8-ABA2-0C55CD32CF6B@andric.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": "<D5036728-23D1-4AF8-ABA2-0C55CD32CF6B@andric.com>",
    "list_archive_url": null,
    "date": "2026-02-10T18:51:58",
    "name": "build: Correctly restore CXXFLAGS/LDFLAGS for zstd test",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "29e7a9c8297ea6c3917deb52fe8dd77b690d224c",
    "submitter": {
        "id": 87286,
        "url": "http://patchwork.ozlabs.org/api/people/87286/?format=api",
        "name": "Dimitry Andric",
        "email": "dimitry@andric.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/D5036728-23D1-4AF8-ABA2-0C55CD32CF6B@andric.com/mbox/",
    "series": [
        {
            "id": 491727,
            "url": "http://patchwork.ozlabs.org/api/series/491727/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=491727",
            "date": "2026-02-10T18:51:58",
            "name": "build: Correctly restore CXXFLAGS/LDFLAGS for zstd test",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491727/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195325/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195325/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 secure) header.d=andric.com header.i=@andric.com header.a=rsa-sha256\n header.s=201904 header.b=kgkrciXQ;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::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 secure) header.d=andric.com header.i=@andric.com header.a=rsa-sha256\n header.s=201904 header.b=kgkrciXQ",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=andric.com",
            "sourceware.org; spf=pass smtp.mailfrom=andric.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=87.251.56.140"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::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 4f9Vzz6RW4z1xvb\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 05:52:29 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 1074B4BA2E24\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 18:52:27 +0000 (GMT)",
            "from tensor.andric.com (tensor.andric.com [87.251.56.140])\n by sourceware.org (Postfix) with ESMTPS id BD3914BA2E0E\n for <gcc-patches@gcc.gnu.org>; Tue, 10 Feb 2026 18:51:59 +0000 (GMT)",
            "from smtpclient.apple (bladnoch.home.andric.com [192.168.0.20])\n (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by tensor.andric.com (Postfix) with ESMTPSA id 7999B64389\n for <gcc-patches@gcc.gnu.org>; Tue, 10 Feb 2026 19:51:58 +0100 (CET)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 1074B4BA2E24",
            "OpenDKIM Filter v2.11.0 sourceware.org BD3914BA2E0E"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org BD3914BA2E0E",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org BD3914BA2E0E",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770749519; cv=none;\n b=DfZAaCAaRFz6THGVhm59kXyMO90vj7XZBKWBpEyxW8/1zjs9rqN5GzeSMciiSW4wPg5P1V5waf45RAcs2xbdVXGtqrEDRXD4MceU1En1A0AbFkI75yLddVr6W8rvo8SkltU0sF2O7MYny8QMwZoVsvnML3zEV5jqbftYfybuyss=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1770749519; c=relaxed/simple;\n bh=e0wQOEsR5iBa9se/P7b+Jem3YPykx3S0E/nqgU8iQuQ=;\n h=DKIM-Signature:From:Mime-Version:Subject:Message-Id:Date:To;\n b=s9Nt81zBe4bGBXQUGJcWxiuh30D6Fp8k0LweBVHLBHPhmNSVkEAtYvyvHP5pmwuIEARCeTOIFrD1YGyYVmK1L3+WvGWmoRXjCSFzX0wZvx9D/MGvhrocqhXyB8ytyz6hGq4DqGxwCWy+w5GSw/WC7MvHgDwrU+MAssiaUU02HGc=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=andric.com; s=201904;\n t=1770749518; bh=e0wQOEsR5iBa9se/P7b+Jem3YPykx3S0E/nqgU8iQuQ=;\n h=From:Subject:Message-Id:Date:To:From;\n b=kgkrciXQzahmSOqntSC5/UIYaHFBlpkDvb8RFN1dmU5qm6EfkubAHa7I9PCKaBiiG\n cBMU5RHe9vZlFJF3xgLzmvLqnAhyrhv2avDQOIGuQFnDZBUvqORQttcInhv4Sj07a5\n NnKyRb/o80XdAcl3zyBO5ZzgFz1NUC20iqeVJ5aUfBLZETDoW+Ph4L/EjqeB7XBolB\n T0ee/IyBUF66i6CNJveSX5uaEDeYuVcU8ozgU0hH3pRGFJZZnH4g7HXuB0vb2xrqmF\n Hswo1WlZhZhxUYixtI0EDi1y5ueQTll/Whk1i8BdXs97iVKZw1l2ayzZxkRyAHKtW8\n +whukPQKUZXfw==",
        "From": "Dimitry Andric <dimitry@andric.com>",
        "Content-Type": "text/plain;\n\tcharset=us-ascii",
        "Content-Transfer-Encoding": "quoted-printable",
        "Mime-Version": "1.0 (Mac OS X Mail 16.0 \\(3826.700.81.1.4\\))",
        "Subject": "[PATCH] build: Correctly restore CXXFLAGS/LDFLAGS for zstd test",
        "Message-Id": "<D5036728-23D1-4AF8-ABA2-0C55CD32CF6B@andric.com>",
        "Date": "Tue, 10 Feb 2026 19:51:58 +0100",
        "To": "GCC Patches <gcc-patches@gcc.gnu.org>",
        "X-Mailer": "Apple Mail (2.3826.700.81.1.4)",
        "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": "Commit r16-5592-g56889bfec25 added saving and restoring of CXXFLAGS and\nLDFLAGS in the gcc configure script, to avoid including the wrong zstd\nheaders.\n\nHowever, due to misleading indentation in the configure script, the\nrestoration of CXXFLAGS and LDFLAGS was put after the if block where the\nvalues were saved. This could cause various interesting effects, among\nothers segfaults while building gcc in the FreeBSD ports system.\n\nMove the restoration of CXXFLAGS and LDFLAGS to just before the end of\nthe same if block to fix this.\n\nThanks to Mark Millard for spotting the actual mistake.\n\n2026-02-10  Dimitry Andric  <dimitry@andric.com>\n\n\tgcc:\n\tPR libfortran/123366\n\t* configure.ac: Move restoring of CXXFLAGS/LDFLAGS for zstd test to\n\tthe correct place.\n\t* configure: Regenerate.\n\nSigned-off-by: Dimitry Andric <dimitry@andric.com>\n---\n gcc/configure    | 2 +-\n gcc/configure.ac | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/gcc/configure b/gcc/configure\nindex bad73081a9b..100e6e10012 100755\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -10661,10 +10661,10 @@ $as_echo \"#define HAVE_ZSTD_H 1\" >>confdefs.h\n elif test \"x$with_zstd\" != x; then\n     as_fn_error $? \"Unable to find zstd.h.  See config.log for details.\" \"$LINENO\" 5\n fi\n-fi\n \n CXXFLAGS=\"$saved_CXXFLAGS\"\n LDFLAGS=\"$saved_LDFLAGS\"\n+fi\n \n \n \ndiff --git a/gcc/configure.ac b/gcc/configure.ac\nindex 7eb86146a10..35af1382cf1 100644\n--- a/gcc/configure.ac\n+++ b/gcc/configure.ac\n@@ -1565,10 +1565,10 @@ if test $gcc_cv_header_zstd_h = yes; then\n elif test \"x$with_zstd\" != x; then\n     as_fn_error $? \"Unable to find zstd.h.  See config.log for details.\" \"$LINENO\" 5\n fi\n-fi\n \n CXXFLAGS=\"$saved_CXXFLAGS\"\n LDFLAGS=\"$saved_LDFLAGS\"\n+fi\n \n dnl Disabled until we have a complete test for buggy enum bitfields.\n dnl gcc_AC_C_ENUM_BF_UNSIGNED\n",
    "prefixes": []
}