Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2224505/?format=api
{ "id": 2224505, "url": "http://patchwork.ozlabs.org/api/patches/2224505/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260417132829.337313-1-tschwinge@baylibre.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260417132829.337313-1-tschwinge@baylibre.com>", "list_archive_url": null, "date": "2026-04-17T13:28:29", "name": "[PUSHED] gccrs: ast: Fix module path resolution for sibling modules in root: Simplify 'rust/compile/issue_4402_foo.rs' special-casing", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7ec6430fcbfd92315b349221d6b1eb30c26011ea", "submitter": { "id": 87905, "url": "http://patchwork.ozlabs.org/api/people/87905/?format=api", "name": "Thomas Schwinge", "email": "tschwinge@baylibre.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260417132829.337313-1-tschwinge@baylibre.com/mbox/", "series": [ { "id": 500341, "url": "http://patchwork.ozlabs.org/api/series/500341/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500341", "date": "2026-04-17T13:28:29", "name": "[PUSHED] gccrs: ast: Fix module path resolution for sibling modules in root: Simplify 'rust/compile/issue_4402_foo.rs' special-casing", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500341/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224505/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224505/checks/", "tags": {}, "related": [], "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=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=xTnkxV82;\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 (2048-bit key,\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=xTnkxV82", "sourceware.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "sourceware.org; spf=pass smtp.mailfrom=baylibre.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.128.49" ], "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 4fxwhx68NLz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 23:29:36 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 700904CCCA18\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 13:29:34 +0000 (GMT)", "from mail-wm1-f49.google.com (mail-wm1-f49.google.com\n [209.85.128.49])\n by sourceware.org (Postfix) with ESMTPS id D80134CCCA06\n for <gcc-patches@gcc.gnu.org>; Fri, 17 Apr 2026 13:28:57 +0000 (GMT)", "by mail-wm1-f49.google.com with SMTP id\n 5b1f17b1804b1-488af96f6b2so9351055e9.0\n for <gcc-patches@gcc.gnu.org>; Fri, 17 Apr 2026 06:28:57 -0700 (PDT)", "from dem-tschwing-1.schwinge.ddns.net\n (p200300c8b74c74007aec2d3495560d74.dip0.t-ipconnect.de.\n [2003:c8:b74c:7400:7aec:2d34:9556:d74])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fc10019bsm48362755e9.4.2026.04.17.06.28.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 17 Apr 2026 06:28:56 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 700904CCCA18", "OpenDKIM Filter v2.11.0 sourceware.org D80134CCCA06" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org D80134CCCA06", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org D80134CCCA06", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776432538; cv=none;\n b=o/P/fXk2y9Z5nHO3ngm3ve/vf3DeakbsSGfuJBCe3oszh/FTqabqoNfrJMmsc5oBdTDIHbvkPsD1WugbemflwB/goGB84vAouj/KiW0qaNJI1mG96DFHNzoPtnmfmJstWSqGWChkLK+uOgy9oXGMevdn6WD9YXbaKrSBp9ah1cw=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776432538; c=relaxed/simple;\n bh=vlPAB8+pxfrbAOO7TYDnIBPzki8Egsj37eIEzd7Z7MU=;\n h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;\n b=sCJ+Nk19OC0jzbTUWV4SYUKnqSRsSqewX+bDTHepq6z/m+MjLnL09Xxmc8XQ9JQFi0dPlqdhPFcSKrmxxtZFtrSbSt4R5u2YQkreKM8VqkgljHtjdna9NuUG5Vyd+qi83/cHr6/d39Im1kZOfvh5JSu4qJ0du6CzAJgIlXdS4uA=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1776432537;\n x=1777037337;\n darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=fVNF9wjztZY9DYemipyjg01EncFIfLKpUxDSo86HLQY=;\n b=xTnkxV82eINXhsiWOhOS1HeVTmFur4vg/p2TiYJZqwfliF3eIDkVnNLfD/P1bFdFaQ\n F67V4mmqIdUhhj/TYeDcevAgQwAqd+pSwP0/wH7Mu3/3hOzA9qH4P2aF8PV74U7Ax/EC\n 7iI2E5H6uHRq51nP5H2vq0RipVtCu2yEuWx4qFDFsuSOla/5gkq9guuUDg6/a5Q6Da3G\n 6yrc6qSWR9bruuw12UV+Cv6x8GcGqE/nlAtcj5iCgX4THfeZPu//9omuc3n1ODVKkATR\n DxovLxKI/YOC4MzI/f4qa9bKsxUPP35yeAjC9ypSUAVigyYhHIvcX6teKiE4pRhGY08L\n IC2w==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776432537; x=1777037337;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=fVNF9wjztZY9DYemipyjg01EncFIfLKpUxDSo86HLQY=;\n b=EFpzLLeovHX6taL9EESJUdz5WRzKqc23GxAprCXBCiNIwNiNGZp3ZN7pOt8BF2X8y0\n 0Ajih55dA7UPdIBiFkuWqNGd3EEj63UrsGakfFw9PtO+1JgkAhU+iRENpT+3NzQn3l5e\n zt6TzgIiHNxlzUJAARROwsuaOf6zX/IHi/Crtji7tgmh+nRrHv1j7lmoTyDaVbbF5teS\n KrsPGPuq9qNMMEjvWMu2/NU5vMx7bfsCRVC7D0BBUq2gzjjRyUGape3aK4uY3fr44Jdx\n x6RoTgp5HGJxo8sneavusPGoqjfBNF3Yh0/OgyxOrl3rxWwTcnHhYU04pUK8VtoXXADq\n dkzw==", "X-Gm-Message-State": "AOJu0Yy1okxrAZXOy12uQdSicbySeqYVMJ0hq5su5OaH8oNqJSXWTTnR\n ypreuGh7MZPyU/DcZoFSO/ftyOgP2XmjxufpFoghAfBysuc62eV8MQgM1GNzoAQFpb1vo2Gd5H5\n +t/mZQpU=", "X-Gm-Gg": "AeBDiev5czaj+BDDeDNTGjXXW2dJ62q60u4PFOVWREypr5KzpYNJUOzGWstxQ4ok/ly\n UVjELtUAlQpPTmA725D007Vhokr+qJlVDq9qX3Tez093fVitLRMK09dixCmsgHNDVxmdA75YIPp\n DGLyzzsuVJMwS+jemyvvQzKm+irVGmYua3OJF1G2N76MwW+M5IuGmijCw1IZ+ZUi1mP0gDo5m1Q\n SoyEtSth032DxKu0rmuabr+21Fv+pNpeWkWSvvT8NmnGdGjR3Fri5gq7XaSL9cd2laYdbcc+VNJ\n 5MZWqG0H7QePbohNvKBC2UviGiKKCruVcd9VIIie+I8j7KZZAFOowLg9xVR20ga+zsCZJDYE0zh\n xJuXrPljanc9JM2PBRsA7SYzz7ap8AVpXaKYtRT3L2p8Ofpvat9AjoREHccrn79WAvRJ+Pv0LZj\n 3WyUXcpADqFFUQ2KLX3heCXOvi4c2jdKNdZkAuqmicS95MfJvt48piMmBNDMFJEY8tpnSGV15tR\n 3ry6zb5IPFdpwJk+78EfB3lg1MjOyTrqRvqQ537IsnO3rOKKDOV3Q==", "X-Received": "by 2002:a05:600c:1da1:b0:488:bc6a:528d with SMTP id\n 5b1f17b1804b1-488fb785204mr47148665e9.22.1776432536722;\n Fri, 17 Apr 2026 06:28:56 -0700 (PDT)", "From": "Thomas Schwinge <tschwinge@baylibre.com>", "To": "gcc-patches@gcc.gnu.org, harishankarpp7@gmail.com,\n pierre-emmanuel.patry@embecosm.com", "Cc": "gcc-rust@gcc.gnu.org,\n\tarthur.cohen@embecosm.com", "Subject": "[PUSHED] gccrs: ast: Fix module path resolution for sibling modules\n in root: Simplify 'rust/compile/issue_4402_foo.rs' special-casing", "Date": "Fri, 17 Apr 2026 15:28:29 +0200", "Message-Id": "<20260417132829.337313-1-tschwinge@baylibre.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260227170001.663690-36-arthur.cohen@embecosm.com>", "References": "<20260227170001.663690-36-arthur.cohen@embecosm.com>", "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": "In Rust-GCC/gccrs#4406 commit e429012267c30f23c416bfa2db41d92abe472d18\n\"gccrs: ast: Fix module path resolution for sibling modules in root\", I spotted\n'rust/compile/issue_4402_foo.rs' special-casing via 'rust/compile/compile.exp'.\nWe can instead simply using some standard DejaGnu idiom, like 'dg-skip-if' for\n'*-*-*', which turns that one into the expected:\n\n UNSUPPORTED: rust/compile/issue_4402_foo.rs\n\n\tgcc/testsuite/\n\t* rust/compile/compile.exp: Revert previous change.\n\t* rust/compile/issue_4402_foo.rs: 'dg-skip-if' for '*-*-*'.\n---\n gcc/testsuite/rust/compile/compile.exp | 17 ++---------------\n gcc/testsuite/rust/compile/issue_4402_foo.rs | 1 +\n 2 files changed, 3 insertions(+), 15 deletions(-)", "diff": "diff --git a/gcc/testsuite/rust/compile/compile.exp b/gcc/testsuite/rust/compile/compile.exp\nindex 41941316d4e0..2c3be80b0146 100644\n--- a/gcc/testsuite/rust/compile/compile.exp\n+++ b/gcc/testsuite/rust/compile/compile.exp\n@@ -28,21 +28,8 @@ dg-init\n set saved-dg-do-what-default ${dg-do-what-default}\n \n set dg-do-what-default \"compile\"\n-\n-set tests [lsort [glob -nocomplain $srcdir/$subdir/*.rs]]\n-set ignore_list [list \"issue_4402_foo.rs\"]\n-\n-set tests_to_run [list]\n-foreach t $tests {\n- set filename [file tail $t]\n- if {[lsearch -exact $ignore_list $filename] == -1} {\n- lappend tests_to_run $t\n- }\n-}\n-\n-dg-runtest $tests_to_run \"\" \"\"\n-\n+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.rs]] \"\" \"\"\n set dg-do-what-default ${saved-dg-do-what-default}\n \n # All done.\n-dg-finish\n\\ No newline at end of file\n+dg-finish\ndiff --git a/gcc/testsuite/rust/compile/issue_4402_foo.rs b/gcc/testsuite/rust/compile/issue_4402_foo.rs\nindex 96266300d112..38f7d54f11d0 100644\n--- a/gcc/testsuite/rust/compile/issue_4402_foo.rs\n+++ b/gcc/testsuite/rust/compile/issue_4402_foo.rs\n@@ -1 +1,2 @@\n+// { dg-skip-if \"See 'issue-4402.rs'.\" { *-*-* } }\n pub struct Bar;\n\\ No newline at end of file\n", "prefixes": [ "PUSHED" ] }