get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229790,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229790/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/7b7e87ea-f78e-4162-a6e1-6b4c50d0488b@redhat.com/",
    "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": "<7b7e87ea-f78e-4162-a6e1-6b4c50d0488b@redhat.com>",
    "date": "2026-04-28T18:11:05",
    "name": "[pushed,LRA] : Fix elimination recognition for INC/DEC RTL",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "840687e1f098855b585e68dbfdeecb4385b58f37",
    "submitter": {
        "id": 4455,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/4455/?format=api",
        "name": "Vladimir Makarov",
        "email": "vmakarov@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/7b7e87ea-f78e-4162-a6e1-6b4c50d0488b@redhat.com/mbox/",
    "series": [
        {
            "id": 501920,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501920/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501920",
            "date": "2026-04-28T18:11:05",
            "name": "[pushed,LRA] : Fix elimination recognition for INC/DEC RTL",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501920/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229790/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229790/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=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=Eex/GAte;\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=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=Eex/GAte",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124"
        ],
        "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 4g4pRr2r1mz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 04:11:48 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 8B1F04BBC0A5\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:11:46 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 55A044BB8F69\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 18:11:10 +0000 (GMT)",
            "from mail-qt1-f198.google.com (mail-qt1-f198.google.com\n [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-215-EvJAF10XMwKUheeFAI9BqA-1; Tue, 28 Apr 2026 14:11:08 -0400",
            "by mail-qt1-f198.google.com with SMTP id\n d75a77b69052e-50fae95c82cso230720101cf.2\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 11:11:08 -0700 (PDT)",
            "from [192.168.0.111] (192-0-141-76.cpe.teksavvy.com. [192.0.141.76])\n by smtp.gmail.com with ESMTPSA id\n d75a77b69052e-5100da4cbd3sm24574471cf.4.2026.04.28.11.11.05\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Tue, 28 Apr 2026 11:11:06 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 8B1F04BBC0A5",
            "OpenDKIM Filter v2.11.0 sourceware.org 55A044BB8F69"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 55A044BB8F69",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 55A044BB8F69",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777399870; cv=none;\n b=UfRonM4EqvD16sPPw5m8WyWsSsJoAcLXZA9oD+I1ulubM7rrDa3pf7FTLkUA9/h2uuk2ZnsnnAZyz82M6v8ZCoF30/R+F3pQgKAMTJpHmbh9ygTdz1qStlu0ospbDFMjBTxmyr2XbDUy2tPwrGEmlEjJ1bTgYywEkZt4RrYGmjU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777399870; c=relaxed/simple;\n bh=wgh148YnAEs4OYDJWn/M/CpCepKW036PbD6Y7msZVDw=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To;\n b=IF5wgFTgT9HnX4fE2pnujtemJNyw2nHchc9euhCyzjazDB8fZ1B4WaodAPhY6/1dTitbSiCok/kA12mEkcDrRaoXRlZgpMHNR3SKl1kFzsQLGRtVojSzALpohdt6ILPOlt2aHzsTmCfl+r4WNoRsIC1JUkHRL0GugN/W2ZyAT9E=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777399870;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type;\n bh=dT/OIWThtXJKZe50C+i2mKhAxO9QzleDMxk8rTztH0w=;\n b=Eex/GAtefhuMjKc/5n9l49fDT9Pd3Znk0ycwupZf56/BW86tkfISa2FVWOzS3lyev7ezKi\n NiK0q7TVikGnV34lCO1PqGjHxeJWHNSPkcRXViPguPr1LIcaYiZPQs9aV87H1MVs+Lol10\n JrxG94ImfQiI+2vtSpYdJlRRsjpUmNg=",
        "X-MC-Unique": "EvJAF10XMwKUheeFAI9BqA-1",
        "X-Mimecast-MFC-AGG-ID": "EvJAF10XMwKUheeFAI9BqA_1777399867",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777399867; x=1778004667;\n h=to:subject:from:content-language:user-agent:mime-version:date\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=sWsX85qkWV6wwBlFBoutJFqgE/DzzhSs0kXic+UGqFs=;\n b=QdQuX8oMQ2zDXnRuzRD3z7oL9d8magB9UYV9SGxvqJXtXiGJoCpwZvBUrWb+QUlwTs\n S9MP5r3tnwh51AwSSPJ+eSn8qo2zI+7SbbtXOs5O/CT3LfDJtQm2g5+61AbFVgUeTKEH\n 4P14GScWmkocbd4CjmjBTzZAwlzEBVz2y/hUovqYr8hTHjhyYUTCu51cA55rzf7lTgzK\n nV4IaFlFSmH9NYVBLhDhaC5pkt53W/ac2ZbYEYxFEcvkURMzmdG+HGozeukD4GRL/i05\n F6ifTg4fYSmnVc/17Kz4lt0X4mC5PNUdHlbkQ4XONVoEB9OMMgrzkGogtHbLX2x6sTes\n 5FAg==",
        "X-Gm-Message-State": "AOJu0Yy6mP1ggoDsRd4n/dtqHPYDwgEGn8D9iNup0He1edIy4ux57ST1\n +3yQbaaR9DpfKkYu1vK6d0ThmYrjAxAkLxSwVhl/xznYTHWcaQttgTkgEVYOHwMQrdceBKsH1al\n GZCv/NmdjyhgArLzA9juSw/CLE6sjcR5Ifob8naBS0ljA92/jN89ntXEvYRLvCKgwMi7awjD58q\n Jx72TFq8xl5l/cfME+eLqMTmHEo8RuW66MqS0wGbeBciM=",
        "X-Gm-Gg": "AeBDiet0aH5AT+0sV5Eon+RLe4+pRwG+W/crMXajlIh5jZ7ZDCgSak3VGICL1n5pv83\n q85Mz92Adl3zPBKP3K+1dFn1VBUqfppFiJUiizw37b37Ubn2HJ1pKKnsevH+iM7OTPNM66SY1KQ\n 4CUpcQH9Q+cZAI8ewxqKF60DzSkzQD3hzxmopaGnVR5Nwp4tZm11aaKVAWJfOyxpn79gJ61k0QS\n oR7rv6RQhnmJZeZCCYB6ME4UDKu4K/sYqXmKMqNzae2QvAdhsX9QvZTu6eBUIDndOcrgWjWznZc\n kvqb9xVr3AU8YLuvIZTt/kkjCCdVuN11Q4aF30ffaTL4c+A6wnBM5F4U2MzA3BFI1yRrnTQhN4d\n SzS9oC4/amWXQYZReWb8anG7hDTzP1f0qMwlssayn+hWCu7gZuuUHxUeMzKoXiXrsJQ==",
        "X-Received": [
            "by 2002:a05:622a:4287:b0:50f:bd6d:aa2a with SMTP id\n d75a77b69052e-5100e11c695mr63015931cf.17.1777399867635;\n Tue, 28 Apr 2026 11:11:07 -0700 (PDT)",
            "by 2002:a05:622a:4287:b0:50f:bd6d:aa2a with SMTP id\n d75a77b69052e-5100e11c695mr63015081cf.17.1777399866998;\n Tue, 28 Apr 2026 11:11:06 -0700 (PDT)"
        ],
        "Message-ID": "<7b7e87ea-f78e-4162-a6e1-6b4c50d0488b@redhat.com>",
        "Date": "Tue, 28 Apr 2026 14:11:05 -0400",
        "MIME-Version": "1.0",
        "User-Agent": "Mozilla Thunderbird",
        "From": "Vladimir Makarov <vmakarov@redhat.com>",
        "Subject": "[pushed][LRA]: Fix elimination recognition for INC/DEC RTL",
        "To": "\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "CaVXMcOoJvz3IulcC5PqVPyn65Tm_9dtLvHQawl0v5g_1777399867",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "multipart/mixed; boundary=\"------------lu0Ir0ByE9HLvA0LEq2ryQXw\"",
        "Content-Language": "en-US",
        "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": "The patch fixes a bug described in log message.\n\nThe patch was successfully bootstrapped and tested on x86_64, aarch64, \nand ppc64le.",
    "diff": "commit b349c2b2d63e9939b2d4cbb8279578b8d93e01a2\nAuthor: Vladimir N. Makarov <vmakarov@redhat.com>\nDate:   Tue Apr 28 09:02:13 2026 -0400\n\n    [LRA]: Fix elimination recognition for INC/DEC RTL\n    \n    There is a typo when we processing {PRE,POST}_{INC,DEC} and\n    {PRE,POST}_MODIFY to prevent elimination of hard reg operand.  The\n    condition actually makes to consider pseudos instead of hard reg.  The\n    patch fixes this.\n    \n    gcc/ChangeLog:\n    \n            * lra-eliminations.cc (mark_not_eliminable): Fix condition to\n            consider hard regs instead of pseudos for INC/DEC/MODIFY operands.\n\ndiff --git a/gcc/lra-eliminations.cc b/gcc/lra-eliminations.cc\nindex e2a6ebfff16..84954d5bd1c 100644\n--- a/gcc/lra-eliminations.cc\n+++ b/gcc/lra-eliminations.cc\n@@ -801,7 +801,7 @@ mark_not_eliminable (rtx x, machine_mode mem_mode)\n \t    curr_sp_change += offset;\n \t}\n       else if (REG_P (XEXP (x, 0))\n-\t       && REGNO (XEXP (x, 0)) >= FIRST_PSEUDO_REGISTER)\n+\t       && REGNO (XEXP (x, 0)) < FIRST_PSEUDO_REGISTER)\n \t{\n \t  /* If we modify the source of an elimination rule, disable\n \t     it.  Do the same if it is the destination and not the\n",
    "prefixes": [
        "pushed",
        "LRA"
    ]
}