Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2225204/?format=api
{ "id": 2225204, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2225204/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260420155447.681821-1-ibuclaw@gdcproject.org/", "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": "<20260420155447.681821-1-ibuclaw@gdcproject.org>", "date": "2026-04-20T15:54:47", "name": "[committed] d: Fix regression in gdc.dg/torture/pr96152.d", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8dcdc7ba6d9c29b968cc0b2b0e2c193fad2bf06f", "submitter": { "id": 46728, "url": "http://patchwork.ozlabs.org/api/1.1/people/46728/?format=api", "name": "Iain Buclaw", "email": "ibuclaw@gdcproject.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260420155447.681821-1-ibuclaw@gdcproject.org/mbox/", "series": [ { "id": 500625, "url": "http://patchwork.ozlabs.org/api/1.1/series/500625/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500625", "date": "2026-04-20T15:54:47", "name": "[committed] d: Fix regression in gdc.dg/torture/pr96152.d", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500625/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225204/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225204/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 (2048-bit key;\n unprotected) header.d=gdcproject.org header.i=@gdcproject.org\n header.a=rsa-sha256 header.s=MBO0001 header.b=uvpy0R+5;\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 (2048-bit key,\n unprotected) header.d=gdcproject.org header.i=@gdcproject.org\n header.a=rsa-sha256 header.s=MBO0001 header.b=uvpy0R+5", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=gdcproject.org", "sourceware.org; spf=pass smtp.mailfrom=gdcproject.org", "server2.sourceware.org;\n arc=none smtp.remote-ip=80.241.56.172" ], "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 4fzqnk57ktz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 01:55:22 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 6AFBE4AADCFC\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 15:55:20 +0000 (GMT)", "from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172])\n by sourceware.org (Postfix) with ESMTPS id E121B4AADCFC\n for <gcc-patches@gcc.gnu.org>; Mon, 20 Apr 2026 15:54:53 +0000 (GMT)", "from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fzqn654KPz9tfx;\n Mon, 20 Apr 2026 17:54:50 +0200 (CEST)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 6AFBE4AADCFC", "OpenDKIM Filter v2.11.0 sourceware.org E121B4AADCFC" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org E121B4AADCFC", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org E121B4AADCFC", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776700494; cv=none;\n b=US33NhcBHNMIcLun5arCtHOkcsVaxmlH9Fp8mNFKL9FWAWHbVJQrH/Mdu/GLR0TcGl4TUCfNrin1d8juNH8A1juZj+Gkg8rC3OAfo8Qt1F2EJjpo+kRWFXsrGNlZezdWlBOCn9i5ehMw+15WaRw7rp0HulGI9IJopL/SSW568+w=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776700494; c=relaxed/simple;\n bh=5R9F02dcuuZVu/BUTL4cpVT93KevGfU65wz1ifYegIw=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=KWmBHR6/Hzg+dLhYzuVYWdxstbhWl2lQ6N/DEQotqrIKK2Ln+KdAFgUwY8DLZ2iMU3wrZzl7yvHJaoeRkq3L1vC/lyBgFMdN+5DoMuftpwVggbBye0nr0Ev9sPZ36cj8C476grxBeJekc7iuzYKW5achJInIDu8lsjzI2aSbWFA=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gdcproject.org;\n s=MBO0001; t=1776700490;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=HdekB3bHYl5N9/+TSND3/Lfe2xraE31AQoYYqGguZ5o=;\n b=uvpy0R+5P2J3q8PBM8pTLwNn1xcsxJir8GQXB3cmSq1qhh0EBaL56VTHece4QJmz6wEBfr\n 9IlkEoLyyXU+AbxOpnhBaepUsg2hsm1pjVW2AUlrH2ZD/8s59RICfJadxsSzpMoOOTJtkB\n HiyZ1rcpzCZQgONsu8A33t15lVizLbd2blohp4MGKV/d4n0VJ6e4UG1axCSzHWr0bagrPI\n wYY0w+a/2Vb7BvU3pdNfJIVkMSfKfB/IUxTirhgcHGJ+zfBT8lCnOJWaH9J464jcsiib+J\n IYwqACBXW6Kw/yfn0ZMgDK7eNjoJbZWQYbaUbtafZc67qSXI1D7Fc6D109KWKw==", "From": "Iain Buclaw <ibuclaw@gdcproject.org>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Iain Buclaw <ibuclaw@gdcproject.org>", "Subject": "[committed][PATCH] d: Fix regression in gdc.dg/torture/pr96152.d", "Date": "Mon, 20 Apr 2026 17:54:47 +0200", "Message-ID": "<20260420155447.681821-1-ibuclaw@gdcproject.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Hi,\n\nThis patch fixes a regression in gdc.dg/torture/pr96152.d and other\nsimilar tests on sparc-*-*.\n\nThe switch to front-end lowering of AA literals regressed on 32bit SPARC\ntargets, as the runtime function `_d_assocarrayliteralTX()` returns a\n`void*`, but the expression should be of type `struct { void* ptr; }`.\n\nBootstrapped and regtested on x86_64-linux-gnu/-m32.\n\nCommitted to mainline.\n\nRegards,\nIain.\n\n---\n\tPR d/124157\n\ngcc/d/ChangeLog:\n\n\t* expr.cc (ExprVisitor::visit (AssocArrayLiteralExp *)): Return AA\n\tconstructor with memory returned by _d_assocarrayliteralTX().\n---\n gcc/d/expr.cc | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)", "diff": "diff --git a/gcc/d/expr.cc b/gcc/d/expr.cc\nindex e3a97d546e4..3e98fc9c51c 100644\n--- a/gcc/d/expr.cc\n+++ b/gcc/d/expr.cc\n@@ -2580,7 +2580,14 @@ public:\n \n /* Generate: _d_assocarrayliteralTX (ti, keys, vals); */\n gcc_assert (e->lowering);\n- this->result_ = build_expr (e->lowering);\n+ tree mem = build_expr (e->lowering);\n+\n+ /* Return an associative array pointed to by MEM. */\n+ tree type = build_ctype (e->type);\n+ vec <constructor_elt, va_gc> *ce = NULL;\n+ CONSTRUCTOR_APPEND_ELT (ce, TYPE_FIELDS (type), mem);\n+\n+ this->result_ = build_padded_constructor (type, ce);\n }\n \n /* Build a struct literal. */\n", "prefixes": [ "committed" ] }