get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232374,
    "url": "http://patchwork.ozlabs.org/api/patches/2232374/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260504121502.E6FEB4BABF1D@sourceware.org/",
    "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": "<20260504121502.E6FEB4BABF1D@sourceware.org>",
    "list_archive_url": null,
    "date": "2026-05-04T12:14:35",
    "name": "tree-optimization/125153 - testcase for fixed PR",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "12a905eff0ae0c8b4658aba76b20afd99903d825",
    "submitter": {
        "id": 4338,
        "url": "http://patchwork.ozlabs.org/api/people/4338/?format=api",
        "name": "Richard Biener",
        "email": "rguenther@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260504121502.E6FEB4BABF1D@sourceware.org/mbox/",
    "series": [
        {
            "id": 502651,
            "url": "http://patchwork.ozlabs.org/api/series/502651/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502651",
            "date": "2026-05-04T12:14:35",
            "name": "tree-optimization/125153 - testcase for fixed PR",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502651/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232374/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232374/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 (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=SQF6I9D0;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=D682oaIk;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=SQF6I9D0;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=D682oaIk;\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 (1024-bit key,\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=SQF6I9D0;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=D682oaIk;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=SQF6I9D0;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=D682oaIk",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=suse.de",
            "sourceware.org; spf=pass smtp.mailfrom=suse.de",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=195.135.223.131",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "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 4g8LF643M2z1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 22:15:05 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id E6FEB4BABF1D\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  4 May 2026 12:15:02 +0000 (GMT)",
            "from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n by sourceware.org (Postfix) with ESMTPS id 8FB8A4BABF04\n for <gcc-patches@gcc.gnu.org>; Mon,  4 May 2026 12:14:36 +0000 (GMT)",
            "from murzim.nue2.suse.org (unknown [10.168.4.243])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 9275F5C5A4\n for <gcc-patches@gcc.gnu.org>; Mon,  4 May 2026 12:14:35 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org E6FEB4BABF1D",
            "OpenDKIM Filter v2.11.0 sourceware.org 8FB8A4BABF04"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 8FB8A4BABF04",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 8FB8A4BABF04",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777896876; cv=none;\n b=lblcXzVHq6ZtX2LgdpWxe+Q4vfeUMhof1SsmhJzPH3TdSg8fWff/iqkgfXZ2jLrv4nA+Fn9oGDQ9qI9/0R1YPp2DHYwrWvX+yJs3f5Va6xncVfCuJqIS5bWHhKAUWXdKuFFsrqCfTuNIEATwhq7boVUQJTZ4sbVj3HFUCMsur6Q=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777896876; c=relaxed/simple;\n bh=e/i9qy5k0ZXBNBF6qF7INb4bcqOTF053rEzKXrVyjhw=;\n h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date:\n From:To:Subject:MIME-Version;\n b=ITfLgQCKpnkfhz/0KFGEQjphjJq44CV+/BymSdfOoJSOv3y4cPSi1WNZvCYTn+oC7m5RMmsf2l14H2DMLSPCrW8UjZvr6Z1oOoYj2OxyZcRtAxQblpbRFWYTCngfgR+0w055iTlGhTVX8xzlEhzXFUASqZyDch9ayB0ogm9lA3Y=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777896875;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=SNHIdxpQhZ32dlnEASAKGYbYOo0yHMQqcr1TQThQYV4=;\n b=SQF6I9D0RNZChm3X6jQRyKyV2jUc4KmbJJgiYJK+cNWRZx6FIc34YdvmZaDCg7fakIyow2\n JBJVydJ6eM/PD+FlN7RXPX7vFhjSKyil5kdGbJjiNigvdp5z6OQae42mE1IvgEgtz92911\n /5+rcv58AGYXoXMngLBetaL0kb9C8Vk=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777896875;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=SNHIdxpQhZ32dlnEASAKGYbYOo0yHMQqcr1TQThQYV4=;\n b=D682oaIk5DeELAEWhcSBhetmcOr8tUEZXBKB8F3QhhBuTQiXKtyzbuvV/U3B8uiKNjCAoJ\n Qzy0Whp5Yn6XKqBw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777896875;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=SNHIdxpQhZ32dlnEASAKGYbYOo0yHMQqcr1TQThQYV4=;\n b=SQF6I9D0RNZChm3X6jQRyKyV2jUc4KmbJJgiYJK+cNWRZx6FIc34YdvmZaDCg7fakIyow2\n JBJVydJ6eM/PD+FlN7RXPX7vFhjSKyil5kdGbJjiNigvdp5z6OQae42mE1IvgEgtz92911\n /5+rcv58AGYXoXMngLBetaL0kb9C8Vk=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777896875;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=SNHIdxpQhZ32dlnEASAKGYbYOo0yHMQqcr1TQThQYV4=;\n b=D682oaIk5DeELAEWhcSBhetmcOr8tUEZXBKB8F3QhhBuTQiXKtyzbuvV/U3B8uiKNjCAoJ\n Qzy0Whp5Yn6XKqBw=="
        ],
        "Date": "Mon, 4 May 2026 14:14:35 +0200 (CEST)",
        "From": "Richard Biener <rguenther@suse.de>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] tree-optimization/125153 - testcase for fixed PR",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=US-ASCII",
        "X-Spamd-Result": "default: False [-1.80 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n MISSING_MID(2.50)[]; NEURAL_HAM_LONG(-1.00)[-0.999];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[];\n MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[];\n RCVD_COUNT_ZERO(0.00)[0];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n FROM_EQ_ENVFROM(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[murzim.nue2.suse.org:helo]",
        "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",
        "Message-Id": "<20260504121502.E6FEB4BABF1D@sourceware.org>"
    },
    "content": "The following adds a testcase for the PR which was fixed by\nreversion of r16-303.\n\nTested on x86_64-unknown-linux-gnu, pushed.\n\n\tPR tree-optimization/125153\n\t* gcc.dg/torture/pr125153.c: New testcase.\n---\n gcc/testsuite/gcc.dg/torture/pr125153.c | 25 +++++++++++++++++++++++++\n 1 file changed, 25 insertions(+)\n create mode 100644 gcc/testsuite/gcc.dg/torture/pr125153.c",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/torture/pr125153.c b/gcc/testsuite/gcc.dg/torture/pr125153.c\nnew file mode 100644\nindex 00000000000..484dc189baf\n--- /dev/null\n+++ b/gcc/testsuite/gcc.dg/torture/pr125153.c\n@@ -0,0 +1,25 @@\n+/* { dg-do run } */\n+\n+int a, b, c;\n+_Bool d, e;\n+\n+void\n+foo (void)\n+{\n+  if (d)\n+    {\n+    l: b = -1;\n+    }\n+  e = c <= b;\n+  a = a - 7;\n+  if (e)\n+    goto l;\n+}\n+\n+int\n+main ()\n+{\n+  foo ();\n+  if (a != -14)\n+    __builtin_abort ();\n+}\n",
    "prefixes": []
}