get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217846,
    "url": "http://patchwork.ozlabs.org/api/patches/2217846/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260330182723.343770-1-dimitar@dinux.eu/",
    "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": "<20260330182723.343770-1-dimitar@dinux.eu>",
    "list_archive_url": null,
    "date": "2026-03-30T18:27:23",
    "name": "testsuite: Require effective target fstack_protector for pr124041.c",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e5c9207c4a0cc59e869cfccc9852105bd0da50ee",
    "submitter": {
        "id": 74290,
        "url": "http://patchwork.ozlabs.org/api/people/74290/?format=api",
        "name": "Dimitar Dimitrov",
        "email": "dimitar@dinux.eu"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260330182723.343770-1-dimitar@dinux.eu/mbox/",
    "series": [
        {
            "id": 498077,
            "url": "http://patchwork.ozlabs.org/api/series/498077/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498077",
            "date": "2026-03-30T18:27:23",
            "name": "testsuite: Require effective target fstack_protector for pr124041.c",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498077/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217846/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217846/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=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=dinux.eu header.i=@dinux.eu header.a=rsa-sha256\n header.s=default header.b=oQzcx6tK;\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=fail reason=\"signature verification failed\" (2048-bit key,\n unprotected) header.d=dinux.eu header.i=@dinux.eu header.a=rsa-sha256\n header.s=default header.b=oQzcx6tK",
            "sourceware.org;\n dmarc=none (p=none dis=none) header.from=dinux.eu",
            "sourceware.org; spf=pass smtp.mailfrom=dinux.eu",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=217.174.156.11"
        ],
        "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 4fl0Br0h2Zz1xrn\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 05:29:08 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3FB1D4BB58E6\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 18:29:06 +0000 (GMT)",
            "from server28.superhosting.bg (server28.superhosting.bg\n [217.174.156.11])\n by sourceware.org (Postfix) with ESMTPS id 472304BB58E6\n for <gcc-patches@gcc.gnu.org>; Mon, 30 Mar 2026 18:27:44 +0000 (GMT)",
            "from 95-42-20-142.ip.btc-net.bg ([95.42.20.142]:59762\n helo=kendros.lan)\n by server28.superhosting.bg with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.99.1) (envelope-from <dimitar@dinux.eu>)\n id 1w7HKt-00000008Qcg-2HMG; Mon, 30 Mar 2026 21:27:41 +0300"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 3FB1D4BB58E6",
            "OpenDKIM Filter v2.11.0 sourceware.org 472304BB58E6"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 472304BB58E6",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 472304BB58E6",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774895264; cv=none;\n b=pt+lMnlXqPvI0I8nI+zExlMg15XEZr0CtF3UC8TiRBXIamUUDzSaoVZxBjod3UHVE6iZGl6k95T5PqKbXBix1gmTqqEPJ4JozNFt5Ei39e5MjxHXG6lZ49fI5ggzLnH5m+e3wZBSNGC4taZsDOMzZ0yugs2ENISae9zoFVCxNTI=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774895264; c=relaxed/simple;\n bh=1u/4pucbHgqyLTO/JmqLK+mEuwqS6ZmUqWKZ72qQqJk=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=mXbOLyYtKPiyojyq5NNj+gHWrBqYl5bl5Ed+Nc2GRr9M1DA0vyW78PJsSsVx66leka+shio+3LbAbkkWEoeeufXnZYJomwADYAFrLdCFy6niX53QSzb+2J3DRWfJy1qH0dMd6qrWNNrdy4RKzrUqv1Vg8YyfPNrpS4xUm8DOnho=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu;\n s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:\n Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:\n Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:\n List-Post:List-Owner:List-Archive;\n bh=kVzwtasgUSqQd8eoB5HyT9dYgpxM2QB7b59WRP7TTFg=; b=oQzcx6tKGxmVQkdP4/bQ6gF9bG\n 3Thi2O0UhoEcj4IMuPbcIsUGLAZk4XXWDJInLkfGU9EdSbbg72P/C4fxpWAULCUh+paoqhF7D4uLl\n ScI4PJVOaNRpcQts32XojT33rKK4vACS0rBEQOQzxLva9yGlZ+tfsEu+eY21Ula82CG9+u6iGvObe\n vJ3MDN5sJh0KIbM2XLM/1FUTIGjnyyV6pS2uwwu/b2EYSIc0NqMuHu8bnEX7RjgqI/TwZIT2MlQQ/\n moXC3NyGUvPIanLAWUzYVBiWMuo9RTWns4RReijvVE7MmQ73YWB/ZIM9noz1V5qXK/3LF24xtW3w3\n z4oWP30w==;",
        "From": "Dimitar Dimitrov <dimitar@dinux.eu>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Dimitar Dimitrov <dimitar@dinux.eu>,\n\tRobin Dapp <rdapp@oss.qualcomm.com>",
        "Subject": "[PATCH] testsuite: Require effective target fstack_protector for\n pr124041.c",
        "Date": "Mon, 30 Mar 2026 21:27:23 +0300",
        "Message-ID": "<20260330182723.343770-1-dimitar@dinux.eu>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-AntiAbuse": [
            "This header was added to track abuse,\n please include it with any abuse report",
            "Primary Hostname - server28.superhosting.bg",
            "Original Domain - gcc.gnu.org",
            "Originator/Caller UID/GID - [47 12] / [47 12]",
            "Sender Address Domain - dinux.eu"
        ],
        "X-Get-Message-Sender-Via": "server28.superhosting.bg: authenticated_id:\n dimitar@dinux.eu",
        "X-Authenticated-Sender": "server28.superhosting.bg: dimitar@dinux.eu",
        "X-Source": "",
        "X-Source-Args": "",
        "X-Source-Dir": "",
        "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": "Fix this spurious error on targets without stack protection ability:\n  FAIL: gcc.dg/torture/pr124041.c   -O0  (test for excess errors)\n  Excess errors:\n  cc1: warning: '-fstack-protector' not supported for this target\n\nOk for trunk? The test was added in stage 4, so I think it's reasonable\nto fix now.\n\ngcc/testsuite/ChangeLog:\n\n\t* gcc.dg/torture/pr124041.c: Require effective target\n\tfstack_protector.\n\nCc: Robin Dapp <rdapp@oss.qualcomm.com>\nSigned-off-by: Dimitar Dimitrov <dimitar@dinux.eu>\n---\n gcc/testsuite/gcc.dg/torture/pr124041.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/torture/pr124041.c b/gcc/testsuite/gcc.dg/torture/pr124041.c\nindex f966757e4b5..722363cbc9b 100644\n--- a/gcc/testsuite/gcc.dg/torture/pr124041.c\n+++ b/gcc/testsuite/gcc.dg/torture/pr124041.c\n@@ -1,5 +1,6 @@\n /* { dg-compile } */\n /* { dg-additional-options \"-O2  -fno-strict-aliasing -fstack-protector -ftrivial-auto-var-init=zero -fsanitize=thread -Wall\" } */\n+/* { dg-require-effective-target fstack_protector } */\n \n char *trick_compiler(void *);\n int do_usercopy_stack_callee_i;\n",
    "prefixes": []
}