get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197163,
    "url": "http://patchwork.ozlabs.org/api/patches/2197163/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/ydd1pijwxpb.fsf@CeBiTec.Uni-Bielefeld.DE/",
    "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": "<ydd1pijwxpb.fsf@CeBiTec.Uni-Bielefeld.DE>",
    "list_archive_url": null,
    "date": "2026-02-17T09:01:20",
    "name": "[COMMITTED] testsuite: Fix gcc.dg/asm-hard-reg-1.c on x86",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2fa96a47ae2a4c45ec7fc1019d6c3099f2a919d0",
    "submitter": {
        "id": 4362,
        "url": "http://patchwork.ozlabs.org/api/people/4362/?format=api",
        "name": "Rainer Orth",
        "email": "ro@CeBiTec.Uni-Bielefeld.DE"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/ydd1pijwxpb.fsf@CeBiTec.Uni-Bielefeld.DE/mbox/",
    "series": [
        {
            "id": 492399,
            "url": "http://patchwork.ozlabs.org/api/series/492399/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=492399",
            "date": "2026-02-17T09:01:20",
            "name": "[COMMITTED] testsuite: Fix gcc.dg/asm-hard-reg-1.c on x86",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492399/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197163/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197163/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=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de\n header.a=rsa-sha256 header.s=20200306 header.b=Cb23/q9U;\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=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de\n header.a=rsa-sha256 header.s=20200306 header.b=Cb23/q9U",
            "sourceware.org; dmarc=none (p=none dis=none)\n header.from=CeBiTec.Uni-Bielefeld.DE",
            "sourceware.org;\n spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=129.70.160.84"
        ],
        "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 4fFYYl6Fgpz1xwD\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 20:02:19 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 6FA244BA2E1A\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 09:02:17 +0000 (GMT)",
            "from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE\n [129.70.160.84])\n by sourceware.org (Postfix) with ESMTPS id F170C4BA2E1A\n for <gcc-patches@gcc.gnu.org>; Tue, 17 Feb 2026 09:01:22 +0000 (GMT)",
            "from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id DF2F0E33BC;\n Tue, 17 Feb 2026 10:01:21 +0100 (CET)",
            "from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1])\n by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new,\n port 10026)\n with ESMTP id 0UvtyxE9V-cC; Tue, 17 Feb 2026 10:01:21 +0100 (CET)",
            "from manam.CeBiTec.Uni-Bielefeld.DE (p508543ca.dip0.t-ipconnect.de\n [80.133.67.202]) (Authenticated sender: ro)\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 71EE9E43C0;\n Tue, 17 Feb 2026 10:01:21 +0100 (CET)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 6FA244BA2E1A",
            "OpenDKIM Filter v2.11.0 sourceware.org F170C4BA2E1A"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org F170C4BA2E1A",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org F170C4BA2E1A",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771318883; cv=none;\n b=g1NwKSMFkj32NJyvTzp6T2eW/TLsJM672C4WbJYvb1Dgjhh4ksoawM265LEPFjvW2wRXk2/Xfq1Un2DnAsGVCusWJEkM3HtvQ50NT78tWQbM8V6mkUEdGNPlUpHWBkCRSapmgLBJ12Ae/uax8aIAxmsnpgP7rTI8xR7L+iRpkA8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1771318883; c=relaxed/simple;\n bh=rY/APbiOm16fTLtCHAyU/7N3whpVyvDc2eb4/QDcB1Q=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=QX4RUPPd0gYVwic6JNWx+eEH2eO/iWeHbm1RqBFMfvMXBJTbCRKYX48mOX8WcFXezE2JVWlPHNv7t1ryHR4n4t0QMPN3Tau/k9vkhmbX6yWeufZcnavuwe34WJwI+zJN+ACvckmc6REu+08Rj7BZ5CuG4h/RRX2wNZwww62N7WI=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=\n cebitec.uni-bielefeld.de; h=content-type:content-type\n :mime-version:user-agent:message-id:date:date:subject:subject\n :from:from:received:received; s=20200306; t=1771318881; bh=rY/AP\n biOm16fTLtCHAyU/7N3whpVyvDc2eb4/QDcB1Q=; b=Cb23/q9UJunMRHWIBW1Xe\n ojdJNcHS2pCi5qeIF06cHGoHlFMCgjnCb2MYWguzOcFvQ1ycNQ/BZt4iBu9fo2/M\n qHZ/7YjdkwWlqxQDEvqv1wFRMgOg1/6fu/udyEEzPuMFFJcNHOSTMXvZeBDqp/DL\n 5WSjGZemQSXYDLfXinPy0rURJ5QbS9szd/ryARqk4gFSorN2Nd1ml8Gv66TU6yR/\n Dsd1Vikhm6i1+t9DV1WORG+Cy6esZ5/gAmRpseVrWlETWnAd4VU6VoTf0wMvgwlI\n 8Kj4QkaMUjZAIUISkNcv80fztN7XhfXumYPjVpgJ6I2YiX0b6ujlFwGnWGRWOrS3\n Q==",
        "X-Virus-Scanned": "amavisd-new at cebitec.uni-bielefeld.de",
        "From": "Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "H.J. Lu <hjl.tools@gmail.com>",
        "Subject": "[COMMITTED] testsuite: Fix gcc.dg/asm-hard-reg-1.c on x86",
        "Date": "Tue, 17 Feb 2026 10:01:20 +0100",
        "Message-ID": "<ydd1pijwxpb.fsf@CeBiTec.Uni-Bielefeld.DE>",
        "User-Agent": "Gnus/5.13 (Gnus v5.13)",
        "MIME-Version": "1.0",
        "Content-Type": "multipart/mixed; boundary=\"=-=-=\"",
        "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 gcc.dg/asm-hard-reg-1.c test FAILs on i386-pc-solaris2.11 and\ni686-pc-linux-gnu with -m64:\n\nFAIL: gcc.dg/asm-hard-reg-1.c scan-assembler-times foo\\\\t%ecx 4\n\nIt turns out the target selectors of the x86 scans are badly confused:\n\n* Using an i?86-*-* target selector is always wrong given the existance\n  of biarch i?86-*-* targets.  They should use the x86 effective target\n  with ilp32 instead.\n\n* dg directives don't heed the preprocessor, so scans were duplicated\n  for i?86-*-* and x86-*-*, sometimes with different target selectors.\n\nThis patch simplifies and fixes the target selectors, removing\nduplication.\n\nTested on i386-pc-solaris2.11 with -m32/-m64 and x86_64-pc-linux-gnu\nwith -m64/-m32/-mx32, and i686-pc-linux-gnu with -m32/-m64.\n\nCommitted to trunk.\n\n\tRainer",
    "diff": "# HG changeset patch\n# Parent  ae6028af1202323bd3290119c646073f326ac8d1\ntestsuite: Fix gcc.dg/asm-hard-reg-1.c on x86\n\ndiff --git a/gcc/testsuite/gcc.dg/asm-hard-reg-1.c b/gcc/testsuite/gcc.dg/asm-hard-reg-1.c\n--- a/gcc/testsuite/gcc.dg/asm-hard-reg-1.c\n+++ b/gcc/testsuite/gcc.dg/asm-hard-reg-1.c\n@@ -8,9 +8,13 @@\n /* { dg-final { scan-assembler-times \"foo\\tr4\" 8 { target { arm*-*-* } } } } */\n #elif defined (__i386__)\n # define GPR \"{ecx}\"\n-/* { dg-final { scan-assembler-times \"foo\\t%cl\" 2 { target { i?86-*-* } } } } */\n-/* { dg-final { scan-assembler-times \"foo\\t%cx\" 2 { target { i?86-*-* } } } } */\n-/* { dg-final { scan-assembler-times \"foo\\t%ecx\" 4 { target { i?86-*-* } } } } */\n+#elif defined (__x86_64__)\n+# define GPR \"{rcx}\"\n+/* { dg-final { scan-assembler-times \"foo\\t%cl\" 2 { target x86 } } } */\n+/* { dg-final { scan-assembler-times \"foo\\t%cx\" 2 { target x86 } } } */\n+/* { dg-final { scan-assembler-times \"foo\\t%ecx\" 4 { target { x86 && ilp32 } } } } */\n+/* { dg-final { scan-assembler-times \"foo\\t%ecx\" 2 { target { x86 && lp64 } } } } */\n+/* { dg-final { scan-assembler-times \"foo\\t%rcx\" 2 { target { x86 && lp64 } } } } */\n #elif defined (__powerpc__) || defined (__POWERPC__)\n # define GPR \"{r5}\"\n /* { dg-final { scan-assembler-times \"foo\\t5\" 8 { target { powerpc*-*-* } } } } */\n@@ -20,13 +24,6 @@\n #elif defined (__s390__)\n # define GPR \"{r4}\"\n /* { dg-final { scan-assembler-times \"foo\\t%r4\" 8 { target { s390*-*-* } } } } */\n-#elif defined (__x86_64__)\n-# define GPR \"{rcx}\"\n-/* { dg-final { scan-assembler-times \"foo\\t%cl\" 2 { target { i?86-*-* x86_64-*-* } } } } */\n-/* { dg-final { scan-assembler-times \"foo\\t%cx\" 2 { target { i?86-*-* x86_64-*-* } } } } */\n-/* { dg-final { scan-assembler-times \"foo\\t%ecx\" 2 { target { { i?86-*-* x86_64-*-* } && lp64 } } } } */\n-/* { dg-final { scan-assembler-times \"foo\\t%rcx\" 2 { target { { i?86-*-* x86_64-*-* } && lp64 } } } } */\n-/* { dg-final { scan-assembler-times \"foo\\t%ecx\" 4 { target { { i?86-*-* x86_64-*-* } && { ! lp64 } } } } } */\n #endif\n \n char\n",
    "prefixes": [
        "COMMITTED"
    ]
}