get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229082,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229082/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/c1d90ed3-282e-4586-963a-e590af29d177@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": "<c1d90ed3-282e-4586-963a-e590af29d177@redhat.com>",
    "date": "2026-04-27T19:08:57",
    "name": "[pushed,RA] : Fix some typos and remove unused code",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "afc9872ef372a1f8c267ac78b10424779f435bf3",
    "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/c1d90ed3-282e-4586-963a-e590af29d177@redhat.com/mbox/",
    "series": [
        {
            "id": 501707,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501707/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501707",
            "date": "2026-04-27T19:08:57",
            "name": "[pushed,RA] : Fix some typos and remove unused code",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501707/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229082/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229082/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=TCTU7Do4;\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=TCTU7Do4",
            "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 4g4D0G08Tvz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 05:19:40 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 7C6B64BB3BB0\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 19:19:38 +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 0201D4BA2E06\n for <gcc-patches@gcc.gnu.org>; Mon, 27 Apr 2026 19:09:03 +0000 (GMT)",
            "from mail-qk1-f197.google.com (mail-qk1-f197.google.com\n [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-93-hoCIxrxvMUuReNPxxOpT4Q-1; Mon, 27 Apr 2026 15:09:01 -0400",
            "by mail-qk1-f197.google.com with SMTP id\n af79cd13be357-8ec812425efso2065676585a.3\n for <gcc-patches@gcc.gnu.org>; Mon, 27 Apr 2026 12:09:00 -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 af79cd13be357-8f7c19ae61bsm12715985a.0.2026.04.27.12.08.58\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Mon, 27 Apr 2026 12:08:58 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 7C6B64BB3BB0",
            "OpenDKIM Filter v2.11.0 sourceware.org 0201D4BA2E06"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 0201D4BA2E06",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 0201D4BA2E06",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777316944; cv=none;\n b=qCVV8Dm/RLvNhRtBDyqngt2KWUIXxlkua81opcV4D11CgiG5qt7dMIIJP2Z/K59xKjUL4sjzj3zdnBmtnjYMxwF4vPeaGhHTkW9fOiBAzGXbFlBY5z0awt5lBDWLH1ixJA8wVDc41a2B1dBcqUZ9XnWaapPMjXZPpNAhncfaxm4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777316944; c=relaxed/simple;\n bh=1ZR5snWN2avqK3NXXj4EyJjewipw6TKB+gE+PAZIx7I=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;\n b=COm259ibpIF1lcQozFUcD9lK6Kb/DlhUy3SAOuyNowcAnTWZ7jgm/yDjKyj40Udv8fJoSBJ/Ft1OelbwLgEJQTWjg1IsTTn1LP1CroUvG+QOZDQOWKw3rq8tMNyM7p4xRtKrsgejHS6C9RCQMPKzMiZCGYLj8TXxt5rfzD60qrM=",
        "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=1777316943;\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=X/0AdaN+1mj0hkbU0z3DDlqR3lK9yU58uaE6v7Vl+WA=;\n b=TCTU7Do4zH3e1iAiBTcgtn7syhfiT2LudIgd0VYsN7T+QonmmKQkRlObLEqlz2JENXgttw\n lind2fiPcbaUyf/kiVVc4kjYjB21SyaVTpOsG91JtnaVjkyWL1yND5W2uKXNInUS/1613Y\n RsF38ldB8TshFkoDGwlxnieEDBV1nHM=",
        "X-MC-Unique": "hoCIxrxvMUuReNPxxOpT4Q-1",
        "X-Mimecast-MFC-AGG-ID": "hoCIxrxvMUuReNPxxOpT4Q_1777316940",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777316940; x=1777921740;\n h=subject:from:to: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=CMzbblJsN/txdle9wBOXu4Nz1b+tmUH3zEy4rka9jNI=;\n b=q0mIgAnfDwpFkJ2k+sU/cu+jc5kMtrjTDTcZFe8nFAkK6DfT0xnsTVMDde8ZjU0XR2\n +r/OpKq7YdBkvksIaVL8nUDvMjl6O5bCs42mbdnRDs7VALWXGXpyvFKbgRupXICk8c1P\n nr956KVRDO2Ysl5kTrLcN3iWBkKzu+bVvMbVeIHNN6TGBgXEIlkiUIb7rgZj4h7rFlhS\n k966baLz5gzLV0GHtRwIn1uFOxGtRTDLG8Z474p10sOvmabOfK3tAl5n3CWFi/kuyG2g\n UCKHHB1HR0r2LSIYecP/1WG7u3jJ0X8M7uESS2ltusj4cc9/ON/kqR76sXN/7Wni6l11\n 5ftw==",
        "X-Gm-Message-State": "AOJu0Yx37aDTumMpyng/f+V3uYj60l6wRBBDFXFoKzvky3uEjdg8O2xg\n YEQKc/oYm2IVaL/aMNlxlgxTR10TmCLSdPh2Rs+U88tGE4rwPJMrc4M3GijD3dyJ24V/ZT3y1MB\n sNVxYVU/dmYsXCxDgrXj8odB4Evp95XRXuf0JkBEUN/6YjTMee+lc02yJhEcUdAXiZ5HIps5Qkb\n qbsjppHw8FYg+l3enfuPtOMTrIwAZTfCd0qjecm+7TG2E=",
        "X-Gm-Gg": "AeBDieuqJCZUZHLX3WVeI0xyaQA72hDkjOvasHWgEecLJGnrJ+Wh4Lr/SLYxQ6EU4SX\n Vp9ocrH0Ct8HrJy9vSXAbBil/4OyMa2Asev16MPRIVSCZlmXkKdnhDxG9MjpzYm3SuSOq3BYjbH\n 1XxGc5mnSw4K5dtD5MV+BH4p80EnFYB6sQM2LRJWPWkdkAESXfLvW6tF4k8uD7JCoTOUEaeHv3y\n udOEUJ5FdggvCw2aqLstxzs1D/w/tu2wU2kltYIKPkj93s/1Kr3G/t/pgvumG+YVS5RlgLNwvO0\n YdEzJYlKuLH+WQSyqDuqA38002VndGhsA+BlufQYcBoAnPBkLJOMm0NYseZMAd+PPz/ytrzmxal\n 9CKEAyKemkSacfrqOkt/UDWjW4LxLL4X1MkyC+gmNMn9iGk6LA4JrjmmdFYZ7KIFBEQ==",
        "X-Received": [
            "by 2002:a05:620a:480b:b0:8eb:92a5:5c65 with SMTP id\n af79cd13be357-8f7b4cc6362mr57287585a.40.1777316940065;\n Mon, 27 Apr 2026 12:09:00 -0700 (PDT)",
            "by 2002:a05:620a:480b:b0:8eb:92a5:5c65 with SMTP id\n af79cd13be357-8f7b4cc6362mr57279785a.40.1777316939400;\n Mon, 27 Apr 2026 12:08:59 -0700 (PDT)"
        ],
        "Message-ID": "<c1d90ed3-282e-4586-963a-e590af29d177@redhat.com>",
        "Date": "Mon, 27 Apr 2026 15:08:57 -0400",
        "MIME-Version": "1.0",
        "User-Agent": "Mozilla Thunderbird",
        "To": "\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>",
        "From": "Vladimir Makarov <vmakarov@redhat.com>",
        "Subject": "[pushed][RA]: Fix some typos and remove unused code",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "9uJfFDGFYBoveCVdLXdDkMm2-JpLI2EwKt0HJY8yrKg_1777316940",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "multipart/mixed; boundary=\"------------uJo4nAyRPGnjE1aXYbN2wwiP\"",
        "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": "Reason for the patch can be found in commit message.\n\nThe patch was successfully bootstrapped and tested on x86-64, aarch64, \nppc64le.",
    "diff": "commit f180b56b3d14cd1ab7ca42c9bad69be2fa36a818\nAuthor: Vladimir N. Makarov <vmakarov@redhat.com>\nDate:   Mon Apr 27 09:54:42 2026 -0400\n\n    [RA]: Fix some typos and remove unused code\n    \n    The following patch fixes different harmless typos and removes some unused code.\n    \n    gcc/ChangeLog:\n    \n            * ira-build.cc (add_to_conflicts): Use sizeof(ira_object_p)\n            instead of sizeof(ira_allocno_t) for allocations.\n            * ira-color.cc (print_hard_reg_set): Fix printing hard reg set.\n            * ira-emit.cc (allocno_last_set, allocno_last_set_check): Remove\n            unused static variables.\n            * ira.cc (combine_and_move_insns): Fix dead note recognition.\n            (ira_remove_insn_scratches): Use dump_file instead of\n            ira_dump_file.\n            * lra-constraints.cc (match_reload): Remove always true condition.\n            (undo_optional_reloads): Fix recognition of clobber for assertion.\n\ndiff --git a/gcc/ira-build.cc b/gcc/ira-build.cc\nindex a1baf2f16ae..68c6d129056 100644\n--- a/gcc/ira-build.cc\n+++ b/gcc/ira-build.cc\n@@ -710,7 +710,7 @@ add_to_conflicts (ira_object_t obj1, ira_object_t obj2)\n       if (OBJECT_CONFLICT_ARRAY_SIZE (obj1) < num * sizeof (ira_object_t))\n \t{\n \t  ira_object_t *newvec;\n-\t  size = (3 * num / 2 + 1) * sizeof (ira_allocno_t);\n+\t  size = (3 * num / 2 + 1) * sizeof (ira_object_t);\n \t  newvec = (ira_object_t *) ira_allocate (size);\n \t  memcpy (newvec, vec, curr_num * sizeof (ira_object_t));\n \t  ira_free (vec);\ndiff --git a/gcc/ira-color.cc b/gcc/ira-color.cc\nindex 7903cb4e391..279b36ef7d4 100644\n--- a/gcc/ira-color.cc\n+++ b/gcc/ira-color.cc\n@@ -505,8 +505,6 @@ print_hard_reg_set (FILE *f, HARD_REG_SET set, bool new_line_p)\n \t{\n \t  if (start == end)\n \t    fprintf (f, \" %d\", start);\n-\t  else if (start == end + 1)\n-\t    fprintf (f, \" %d %d\", start, end);\n \t  else\n \t    fprintf (f, \" %d-%d\", start, end);\n \t  start = -1;\ndiff --git a/gcc/ira-emit.cc b/gcc/ira-emit.cc\nindex e3b5d94db4a..07ca0de2355 100644\n--- a/gcc/ira-emit.cc\n+++ b/gcc/ira-emit.cc\n@@ -729,14 +729,6 @@ static move_t hard_regno_last_set[FIRST_PSEUDO_REGISTER];\n    element in `hard_regno_last_set' is defined and correct.  */\n static int hard_regno_last_set_check[FIRST_PSEUDO_REGISTER];\n \n-/* Last move (in move sequence being processed) setting up the\n-   corresponding allocno.  */\n-static move_t *allocno_last_set;\n-\n-/* If the element value is equal to CURR_TICK then the corresponding\n-   element in . `allocno_last_set' is defined and correct.  */\n-static int *allocno_last_set_check;\n-\n /* Definition of vector of moves.  */\n \n /* This vec contains moves sorted topologically (depth-first) on their\n@@ -744,8 +736,7 @@ static int *allocno_last_set_check;\n static vec<move_t> move_vec;\n \n /* The variable value is used to check correctness of values of\n-   elements of arrays `hard_regno_last_set' and\n-   `allocno_last_set_check'.  */\n+   elements of arrays `hard_regno_last_set'.  */\n static int curr_tick;\n \n /* This recursive function traverses dependencies of MOVE and produces\n@@ -1286,11 +1277,6 @@ ira_emit (bool loops_p)\n \tif (e->dest != EXIT_BLOCK_PTR_FOR_FN (cfun))\n \t  generate_edge_moves (e);\n     }\n-  allocno_last_set\n-    = (move_t *) ira_allocate (sizeof (move_t) * max_reg_num ());\n-  allocno_last_set_check\n-    = (int *) ira_allocate (sizeof (int) * max_reg_num ());\n-  memset (allocno_last_set_check, 0, sizeof (int) * max_reg_num ());\n   memset (hard_regno_last_set_check, 0, sizeof (hard_regno_last_set_check));\n   curr_tick = 0;\n   FOR_EACH_BB_FN (bb, cfun)\n@@ -1312,8 +1298,6 @@ ira_emit (bool loops_p)\n \t}\n     }\n   move_vec.release ();\n-  ira_free (allocno_last_set_check);\n-  ira_free (allocno_last_set);\n   commit_edge_insertions ();\n   /* Fix insn codes.  It is necessary to do it before reload because\n      reload assumes initial insn codes defined.  The insn codes can be\ndiff --git a/gcc/ira.cc b/gcc/ira.cc\nindex d65e1b97ed8..85c7ec419b3 100644\n--- a/gcc/ira.cc\n+++ b/gcc/ira.cc\n@@ -4032,7 +4032,7 @@ combine_and_move_insns (void)\n \t  /* Append the REG_DEAD notes from def_insn.  */\n \t  for (rtx *p = &REG_NOTES (def_insn); (link = *p) != 0; )\n \t    {\n-\t      if (REG_NOTE_KIND (XEXP (link, 0)) == REG_DEAD)\n+\t      if (REG_NOTE_KIND (link) == REG_DEAD)\n \t\t{\n \t\t  *p = XEXP (link, 1);\n \t\t  XEXP (link, 1) = REG_NOTES (use_insn);\n@@ -5469,7 +5469,7 @@ ira_remove_insn_scratches (rtx_insn *insn, bool all_p, FILE *dump_file,\n \t  insn_changed_p = true;\n \t  *loc = reg = get_reg (*loc);\n \t  ira_register_new_scratch_op (insn, i, INSN_CODE (insn));\n-\t  if (ira_dump_file != NULL)\n+\t  if (dump_file != NULL)\n \t    fprintf (dump_file,\n \t\t     \"Removing SCRATCH to p%u in insn #%u (nop %d)\\n\",\n \t\t     REGNO (reg), INSN_UID (insn), i);\ndiff --git a/gcc/lra-constraints.cc b/gcc/lra-constraints.cc\nindex 8526a89f9ec..9a400c21b7e 100644\n--- a/gcc/lra-constraints.cc\n+++ b/gcc/lra-constraints.cc\n@@ -1251,8 +1251,6 @@ match_reload (signed char out, signed char *ins, signed char *outs,\n \t= (! early_clobber_p && ins[1] < 0 && REG_P (in_rtx)\n \t   && (int) REGNO (in_rtx) < lra_new_regno_start\n \t   && find_regno_note (curr_insn, REG_DEAD, REGNO (in_rtx))\n-\t   && (! early_clobber_p\n-\t       || check_conflict_input_operands (REGNO (in_rtx), ins))\n \t   && (out < 0\n \t       || regno_val_use_in (REGNO (in_rtx), out_rtx) == NULL_RTX)\n \t   && !out_conflict\n@@ -7969,9 +7967,9 @@ undo_optional_reloads (void)\n \t\t we remove the inheritance pseudo and the optional\n \t\t reload.  */\n \t    }\n-\t  if (GET_CODE (PATTERN (insn)) == CLOBBER\n-\t      && REG_P (SET_DEST (insn))\n-\t      && get_regno (SET_DEST (insn)) == (int) regno)\n+\t  rtx pat = PATTERN (insn);\n+\t  if (GET_CODE (pat) == CLOBBER && REG_P (SET_DEST (pat))\n+\t      && get_regno (SET_DEST (pat)) == (int) regno)\n \t    /* Refuse to remap clobbers to preexisting pseudos.  */\n \t    gcc_unreachable ();\n \t  lra_substitute_pseudo_within_insn\n",
    "prefixes": [
        "pushed",
        "RA"
    ]
}