get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229726,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229726/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260428163648.392191-1-dimitar@dinux.eu/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260428163648.392191-1-dimitar@dinux.eu>",
    "date": "2026-04-28T16:36:48",
    "name": "[committed] pru: Allow device spec to append assembler command line",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "03794b18409c0dfe16362eaf6b7d0815fd019efe",
    "submitter": {
        "id": 74290,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/74290/?format=api",
        "name": "Dimitar Dimitrov",
        "email": "dimitar@dinux.eu"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260428163648.392191-1-dimitar@dinux.eu/mbox/",
    "series": [
        {
            "id": 501900,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501900/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501900",
            "date": "2026-04-28T16:36:48",
            "name": "[committed] pru: Allow device spec to append assembler command line",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501900/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229726/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229726/checks/",
    "tags": {},
    "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=KVk20VMz;\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=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=KVk20VMz",
            "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\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 4g4mLq0cBFz1xrS\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 02:37:39 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 170604BB8F5A\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:37:37 +0000 (GMT)",
            "from server28.superhosting.bg (server28.superhosting.bg\n [217.174.156.11])\n by sourceware.org (Postfix) with ESMTPS id EC4854BA9025\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 16:37:13 +0000 (GMT)",
            "from [95.42.20.142] (port=40304 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 1wHlQr-0000000A5YS-04XY; Tue, 28 Apr 2026 19:37:11 +0300"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 170604BB8F5A",
            "OpenDKIM Filter v2.11.0 sourceware.org EC4854BA9025"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org EC4854BA9025",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org EC4854BA9025",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777394234; cv=none;\n b=CnVocoOfJDq8QbmZqyp/KqRpE0GSKXWOrJgBrMAP+RUApDHFqej8KnOngg9UDbJO355dZg2p59M0Emt1w/wBhKC9DNNL9uP9x3wK1ArmyAUB/+S6RIGOCLeg+3TMXEYlxdqLyUhxZkgSFldeQ+31xMa6CUwJ/krxCZbXypo1nz4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777394234; c=relaxed/simple;\n bh=ndQODBzQAquAD0QQzIIpivrEckP5Y3Fumg1wW3L5gRk=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=AY5Relo3+GJEiQpVKZETh1TPWzTbzCoWe32gJu5/kVlehTSCVZXP9S/4Ovx305rhd7ZUcC3kZr0Zjv3KRxJoXohC2pnkVV5lskN+nTGXCE+C90+e7vi/UCGB+Wq9suClwXG52aHFtT014PkhERERi0pfGgF9gBTQYPe8CS4tcv4=",
        "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=+vWcQj89+Pe1g9kle0UxnR0/I0MyDCgUiI6Pgl39v78=; b=KVk20VMz69qvtaJz7L05+DBkPT\n 4cKlmt09x9w0ht0A0rIHveSgahWIbtWODNbS6T356+3SobQiRfyU0Gn3qP+2PYNgEcMS0V42BbXCQ\n 4Tz90dLUofY7e0XLWzKLQOtFPH9psubKQyW+Cthg9AvE8oLmMZfLOMQ/wDJFsBAuxpU1h/M1pXhEY\n L2gFzla/bo9TYCIQY0f1fOQLeIM3JzbFg1ROtw4SiPc5RNsasmRufNqdBlN1Ovq5oLf9AS5T1tbPG\n W3DlfRpD0bLP+ChPxfl4iarLV4oV7GybkVZL+6jwZPj7OCMpqWturhZpupPHovWsDkS6jHQOYbU0G\n Ek7Gn+RQ==;",
        "From": "Dimitar Dimitrov <dimitar@dinux.eu>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Dimitar Dimitrov <dimitar@dinux.eu>",
        "Subject": "[committed] pru: Allow device spec to append assembler command line",
        "Date": "Tue, 28 Apr 2026 19:36:48 +0300",
        "Message-ID": "<20260428163648.392191-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": "Intended use case is for asm_device spec to specify the PRU core\nrevision.\n\nThis could alternatively be implemented with spec append for *asm.\nBut linker and cpp already use *_device spec variables, so let's\nbe consistent.\n\ngcc/ChangeLog:\n\n\t* config/pru/pru.h (ASM_SPEC): Define.\n\nSigned-off-by: Dimitar Dimitrov <dimitar@dinux.eu>\n---\n gcc/config/pru/pru.h | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/gcc/config/pru/pru.h b/gcc/config/pru/pru.h\nindex 4d3fc6f379f..f469122beea 100644\n--- a/gcc/config/pru/pru.h\n+++ b/gcc/config/pru/pru.h\n@@ -49,6 +49,11 @@\n   \"%(cpp_device) \"\t\t\t\t\t\\\n   \"%{mabi=ti:-D__PRU_EABI_TI__; :-D__PRU_EABI_GNU__}\"\n \n+/* Allow MCU specs to append assembler command line.  */\n+#undef  ASM_SPEC\n+#define ASM_SPEC\t\t\t\t\t    \\\n+  \"%(asm_device) \"\n+\n /* Do not relax when in TI ABI mode since TI tools do not always\n    put PRU_S10_PCREL.  */\n #undef  LINK_SPEC\n",
    "prefixes": [
        "committed"
    ]
}