Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2223381/?format=api
{ "id": 2223381, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223381/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/ad9F7RM_ajZosFYe@tucnak/", "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": "<ad9F7RM_ajZosFYe@tucnak>", "date": "2026-04-15T08:01:49", "name": "[committed] testsuite: Portability fixes for reflect/mangle[23].C", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5c69383a6ee1b11467aca7c64977e5015a10bbd5", "submitter": { "id": 671, "url": "http://patchwork.ozlabs.org/api/1.1/people/671/?format=api", "name": "Jakub Jelinek", "email": "jakub@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/ad9F7RM_ajZosFYe@tucnak/mbox/", "series": [ { "id": 499940, "url": "http://patchwork.ozlabs.org/api/1.1/series/499940/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499940", "date": "2026-04-15T08:01:49", "name": "[committed] testsuite: Portability fixes for reflect/mangle[23].C", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499940/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223381/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223381/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=McUUnbE+;\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=McUUnbE+", "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 4fwYXL1ypPz1yHM\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 18:02:26 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3E8714BA2E10\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 08:02:24 +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 E3D964BA543C\n for <gcc-patches@gcc.gnu.org>; Wed, 15 Apr 2026 08:01:55 +0000 (GMT)", "from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-375-r-GRSNfLPbGTgOKKY5d86w-1; Wed,\n 15 Apr 2026 04:01:53 -0400", "from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 318D01955F18\n for <gcc-patches@gcc.gnu.org>; Wed, 15 Apr 2026 08:01:53 +0000 (UTC)", "from tucnak.zalov.cz (unknown [10.44.33.129])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 9B03719560B6; Wed, 15 Apr 2026 08:01:52 +0000 (UTC)", "from tucnak.zalov.cz (localhost [127.0.0.1])\n by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 63F81nHF1903448\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Wed, 15 Apr 2026 10:01:49 +0200", "(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 63F81ng71903447;\n Wed, 15 Apr 2026 10:01:49 +0200" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 3E8714BA2E10", "OpenDKIM Filter v2.11.0 sourceware.org E3D964BA543C" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org E3D964BA543C", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org E3D964BA543C", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776240116; cv=none;\n b=GMe1zqwG2jvLvtk2BgAarpEgm4CKstLaHCoX1rJL4Oesrnv685C/GBlyxeWLYGvnLEms2RqF3xExFQqEGGa2pnciEvcob3TdsikfLg9OOi03W1fhys9E7bw7AgUt5wdSbVgAy1HZGyDMJSiANktLkYyKc3krqvUon3VGco9SVJI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776240116; c=relaxed/simple;\n bh=T9e58VeF0SQ/h8L+oTUfT4LwPI1JwiyPM5v23+ixA8A=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=thaVWZck48Emnm3+zXCrV5Txpe/TpR62OI0pTlmn9UUcVW/wb1SODBD4bpIgqcOvq84HJGtk3eXYGD0Erw1trzgOsZfdBbIeks0jefoBMcYhbY+xEFkm3titQruuhQIS+HWCZCdfIt2Zg2kb/EnVFvXMir+cSij0t1rWmwzJMpI=", "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=1776240115;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=Ef3k6i6VPUCKSdn4FAvF0BTipxj4MVhvWY/NZeO8N5Q=;\n b=McUUnbE+rHWI+7yhSfevdzqIItwKVWDJ2cy7m9cqQLXlk7bqr/BED4CWKvE1zVsG6b4jjQ\n V+rdQHVPlKLvgh13a9Vuul0QErw4OOiVHQFmwC+mCia6LTa5D/OTqzEuEIJIsBsz6EduVG\n 17lMZzvlL5Ogi9AehhlFXKs+tVrJZ8A=", "X-MC-Unique": "r-GRSNfLPbGTgOKKY5d86w-1", "X-Mimecast-MFC-AGG-ID": "r-GRSNfLPbGTgOKKY5d86w_1776240113", "Date": "Wed, 15 Apr 2026 10:01:49 +0200", "From": "Jakub Jelinek <jakub@redhat.com>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Marek Polacek <polacek@redhat.com>", "Subject": "[committed] testsuite: Portability fixes for reflect/mangle[23].C", "Message-ID": "<ad9F7RM_ajZosFYe@tucnak>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.12", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "3L44NI-gfKT-G3VDBw6gcHArQg7ICYv4pu-rXDghv0g_1776240113", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=us-ascii", "Content-Disposition": "inline", "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>", "Reply-To": "Jakub Jelinek <jakub@redhat.com>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "Hi!\n\nIn one case we mangle size_t, which varries among targets, m on x86_64,\nj on ia32, could be y as well.\nAnd the other problematic spot is that we canonicalize ARRAY_REF indices\nto ptrdiff_t:\n if (TREE_CODE (decl) == ARRAY_REF\n && TREE_CODE (op) == INTEGER_CST)\n /* Canonicalize array offsets to ptrdiff_t; how they were\n written doesn't matter for subobject identity. */\n op = fold_convert (ptrdiff_type_node, op);\nand again those varry among targets, l on x86_64, i on ia32, could be\nx on other targets.\n\nTested on x86_64-linux -m64/-m32, committed to trunk as obvious.\n\n2026-04-15 Jakub Jelinek <jakub@redhat.com>\n\n\t* g++.dg/reflect/mangle2.C: Expect \\[jmy] instead of just m for size_t\n\tmangling.\n\t* g++.dg/reflect/mangle3.C: Expect \\[ilx] instead of just l for\n\tptrdiff_t mangling.\n\n\n\tJakub", "diff": "--- gcc/testsuite/g++.dg/reflect/mangle2.C.jj\t2026-04-14 08:39:48.648636173 +0200\n+++ gcc/testsuite/g++.dg/reflect/mangle2.C\t2026-04-15 09:22:20.845761076 +0200\n@@ -45,4 +45,4 @@ g ()\n \n // { dg-final { scan-assembler \"_ZZ1gvENKUlTyQrqXtlDSLDmtyT_EEEEvE_clIiEEDav\" } }\n // { dg-final { scan-assembler \"_ZZ1gvENKUlTyQrqXtlNDSclL_ZNSt4meta9parent_ofEDmELDmtyT_EEE1BEEEvE0_clIN1N1SEEEDav\" } }\n-// { dg-final { scan-assembler \"_ZZ1gvENKUlTyQrqXtlDtdtcvT__EDScldtclL_ZNSt4meta25nonstatic_data_members_ofEDmNS0_14access_contextEELDmtyS_EclL_ZNS1_9uncheckedEvEEEL_ZNSt6vectorIDmSaIDmEEixEmELi0EEEEEEvE1_clI1CEEDav\" } }\n+// { dg-final { scan-assembler \"_ZZ1gvENKUlTyQrqXtlDtdtcvT__EDScldtclL_ZNSt4meta25nonstatic_data_members_ofEDmNS0_14access_contextEELDmtyS_EclL_ZNS1_9uncheckedEvEEEL_ZNSt6vectorIDmSaIDmEEixE\\[jmy]ELi0EEEEEEvE1_clI1CEEDav\" } }\n--- gcc/testsuite/g++.dg/reflect/mangle3.C.jj\t2026-04-14 08:39:48.648636173 +0200\n+++ gcc/testsuite/g++.dg/reflect/mangle3.C\t2026-04-15 09:26:09.028914792 +0200\n@@ -174,7 +174,7 @@ g (int p)\n f5<std::meta::reflect_constant (42)>();\n // { dg-final { scan-assembler \"_Z2f5ILDmvlLi42EEEDtDST_EEv\" } }\n f5<std::meta::reflect_object (arr[1])>();\n-// { dg-final { scan-assembler \"_Z2f5ILDmobixL_Z3arrELl1EEEDtDST_EEv\" } }\n+// { dg-final { scan-assembler \"_Z2f5ILDmobixL_Z3arrEL\\[ilx]1EEEDtDST_EEv\" } }\n f5<parameters_of (^^g)[0]>();\n // { dg-final { scan-assembler \"_Z2f5ILDmpa_1giEEDtDST_EEv\" } }\n f5<bases_of (^^S, ctx)[0]>();\n", "prefixes": [ "committed" ] }