Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229789/?format=api
{ "id": 2229789, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229789/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/c7d60a5e-a869-4d04-adbc-119da9f5567c@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": "<c7d60a5e-a869-4d04-adbc-119da9f5567c@redhat.com>", "date": "2026-04-28T18:10:49", "name": "[pushed,LRA] : Fix mode of subreg of const in the const pool", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "44ad98965a95d7933a8c8ae7a3af75a5dd1cc1ed", "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/c7d60a5e-a869-4d04-adbc-119da9f5567c@redhat.com/mbox/", "series": [ { "id": 501919, "url": "http://patchwork.ozlabs.org/api/1.1/series/501919/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501919", "date": "2026-04-28T18:10:49", "name": "[pushed,LRA] : Fix mode of subreg of const in the const pool", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501919/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229789/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229789/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=Yt3AqBr7;\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=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=Yt3AqBr7", "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 [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 4g4pRB2cxDz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 04:11:34 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 77A114BB8F62\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:11:32 +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 1E9824BB8F74\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 18:10:54 +0000 (GMT)", "from mail-qk1-f200.google.com (mail-qk1-f200.google.com\n [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-641-COVCAs1JNwOAPZPov626Hg-1; Tue, 28 Apr 2026 14:10:51 -0400", "by mail-qk1-f200.google.com with SMTP id\n af79cd13be357-8eb21daf7ddso1648368585a.1\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 11:10:51 -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-8f899f6804asm112809285a.19.2026.04.28.11.10.49\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:10:49 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 77A114BB8F62", "OpenDKIM Filter v2.11.0 sourceware.org 1E9824BB8F74" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 1E9824BB8F74", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 1E9824BB8F74", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777399854; cv=none;\n b=x/rJSu/8CGhFgkeOzrUpSYfiZh8DWr7KK4NL1wXB1jshQ1RjmZVunl3hFIsk6e8PW2ViN8wcM1VQwekVbEy5K8T6aQJpkEeu0TlWfFphgbqFTObRuLNy0golkVz8ba1Jaeu4NGOMgjOSgDcxcclnF1d3PtXFuENSX99Tgx/eWF8=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777399854; c=relaxed/simple;\n bh=BqKjc2RVvzGgsQobJ1duVcqFP7/o4Jnxtp609Y0elfo=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To;\n b=WCEKA8isguUSLtaHrNjZoxrwM96Kk5qzmNaK3qqWELzNfQPqrje09qlrKqCad1HyPr1oEAEpk0MORbPwg880x6J48JBsmi+Y4jN7/nEbx8RzNAPS78F94ph4s6X0XqnWSxLcCBTc037dB0+VD6Tmnb6Fugfit/12vqqdu9NWe44=", "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=1777399853;\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=b8FuHRFCPTYfWiEehm0Ks6Vt2dHs3J5iDgwkNYIKzv0=;\n b=Yt3AqBr76zBkWPAPrXkwZhM2I9mOP8qFmmfUWpOu8n1gLeOn6qJuKj4+Wbyo0YI9k2pS3P\n VPlrG4sWgp1HLy/7mSX8Ly7qs3YWDtVJ2plcibAMje7xjlWG0LCefgNcdlTHlVJWt6xBbm\n 3Bf2kCgFBwexJ4OEWg2p6q7QDDPO+DM=", "X-MC-Unique": "COVCAs1JNwOAPZPov626Hg-1", "X-Mimecast-MFC-AGG-ID": "COVCAs1JNwOAPZPov626Hg_1777399851", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777399851; x=1778004651;\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=ZbtmHmcR+5vj8Ck1k7CPB/gz0j531srW6shol/vpGJ8=;\n b=hb9AEaUGSfIX0fPjozVhTx4zQAjgivBak7JN3+vhSwM4TqIdCmnjHGLR1UkOOS1Fza\n 6aYg4NIZtni8Xkf3L9XZbqYMj8ka4VDM89J8x+6mxqVtCXj1UjywQE6IWiSNuF+HCb+O\n MqWiIo6pfs5Gtsw53ou3fcfpd8KV7rZg/NxpUqqGHTwlRLrZsXqXQO5tn59p8EK4GMQ9\n qWYTRp3vexJQvvmraGh+M979Jp/1J45IMxrXcIQBExdf+i1reY1y77pEMhYVscHHrVUb\n YfUwzGIwwoxgG563V8/PoM3eRQt/qhzsKupQSXKfd2mTej2t9CLrYNe86Ox2viwpQpdN\n EAwA==", "X-Gm-Message-State": "AOJu0Yz8Xae5raMNr0poRGUqBerxCPVpT17/qblP/9Gzku3wikvKyQCk\n ghua8LNRqZ/0tTx6q3EZIcOfw9oU3DQgQyzBcXDo0ZuaXod2Lu9y1ngd4Xk3O4UVzfQ+mA7PQYf\n C+MpMTZVOL8YQzSNmN9HsCrel8YZHcnqFLdqrLHyh3JvFjIXStXiYngt+NshzdO7pbHD5afTEvO\n RvYP5+uzPdpGiXIijuzpnOh0arUYvHt/JPaHQUnlBtl+E=", "X-Gm-Gg": "AeBDieuV/mfSqFfeQ2qfzrsQzeE6dYxQmNbRc26s9VfXu4L7/XEF8nsZ9A1KnaWYezd\n 3jCC+cH8b/qrHB1/rX619GEnMMMFcNEiQV+XmPXXwfJJ6VVBT7FvMRZOgM1Qr08bqbd3fHv2ahR\n dxZKmD16fFr/PULdMr56RLwZHO9Kh3Gr6UbBFkjgQUZE4AN9tAC2F/1dFDNr74QrK9CmjdLYvpp\n zT4rKlV9l531L2ROOJ+QTHN2VwQiH2sgM6vBVIq6Yw30ZTLrwamheg+TMf3xUDGXmaDiCZ0480R\n bz4nHrlduotfKlRIryvLuC4bdGzPaOX1oa61HvMGDgqGjs9wdqUWqhGf9A211R0jNuwPF0LpbB9\n 9SJZFQRZqouuC5wkW3Wo7KUOfO1qxbUEUbsSpWTw80NLqtGa8LiOnEhYfzvhFK3vWBg==", "X-Received": [ "by 2002:a05:620a:4712:b0:8cd:9665:9ef3 with SMTP id\n af79cd13be357-8f7d7548ca9mr618500685a.19.1777399851239;\n Tue, 28 Apr 2026 11:10:51 -0700 (PDT)", "by 2002:a05:620a:4712:b0:8cd:9665:9ef3 with SMTP id\n af79cd13be357-8f7d7548ca9mr618491485a.19.1777399850597;\n Tue, 28 Apr 2026 11:10:50 -0700 (PDT)" ], "Message-ID": "<c7d60a5e-a869-4d04-adbc-119da9f5567c@redhat.com>", "Date": "Tue, 28 Apr 2026 14:10:49 -0400", "MIME-Version": "1.0", "User-Agent": "Mozilla Thunderbird", "From": "Vladimir Makarov <vmakarov@redhat.com>", "Subject": "[pushed][LRA]: Fix mode of subreg of const in the const pool", "To": "\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "nmC1DsHoXReetNDquO-yQthSuF-kMJafPnouXEmbq48_1777399851", "X-Mimecast-Originator": "redhat.com", "Content-Type": "multipart/mixed; boundary=\"------------pdUUUs0ZguNVU3E89UPyDju4\"", "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 the log message.\n\nThe patch was successfully bootstrapped and tested on x86_64, aarch64, \nand ppc64le.", "diff": "commit db0378b33004e099b88e455c5935863c4b52c80e\nAuthor: Vladimir N. Makarov <vmakarov@redhat.com>\nDate: Tue Apr 28 08:51:13 2026 -0400\n\n [LRA]: Fix mode of subreg of const in the const pool\n \n When LRA puts a constant which is part of subreg, it uses wrong mode for\n subreg of the pool memory. The patch fixes this.\n \n gcc/ChangeLog:\n \n * lra-constraints.cc (curr_insn_transform): When recreating subreg\n of a const put in pool, use the original subreg mode.\n\ndiff --git a/gcc/lra-constraints.cc b/gcc/lra-constraints.cc\nindex 9a400c21b7e..d6056cf7acc 100644\n--- a/gcc/lra-constraints.cc\n+++ b/gcc/lra-constraints.cc\n@@ -4715,7 +4715,7 @@ curr_insn_transform (bool check_only_p)\n \tchar c;\n \trtx op = *curr_id->operand_loc[i];\n \trtx subreg = NULL_RTX;\n-\tmachine_mode mode = curr_operand_mode[i];\n+\tmachine_mode op_mode = curr_operand_mode[i], mode = op_mode;\n \n \tif (GET_CODE (op) == SUBREG)\n \t {\n@@ -4733,7 +4733,7 @@ curr_insn_transform (bool check_only_p)\n \n \t change_p = true;\n \t if (subreg != NULL_RTX)\n-\t tem = gen_rtx_SUBREG (mode, tem, SUBREG_BYTE (subreg));\n+\t tem = gen_rtx_SUBREG (op_mode, tem, SUBREG_BYTE (subreg));\n \n \t *curr_id->operand_loc[i] = tem;\n \t lra_update_dup (curr_id, i);\n", "prefixes": [ "pushed", "LRA" ] }