get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231989,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2231989/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260501213120.324542-5-xry111@xry111.site/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260501213120.324542-5-xry111@xry111.site>",
    "list_archive_url": null,
    "date": "2026-05-01T21:31:20",
    "name": "[4/4] testsuite: don't link top-level asm tests as PIE [PR 70150]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e3cab225442011bf04a151a1ca3d70b473ab6820",
    "submitter": {
        "id": 84026,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/84026/?format=api",
        "name": "Xi Ruoyao",
        "email": "xry111@xry111.site"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260501213120.324542-5-xry111@xry111.site/mbox/",
    "series": [
        {
            "id": 502499,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502499/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502499",
            "date": "2026-05-01T21:31:20",
            "name": "Test suite fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502499/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231989/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231989/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 (1024-bit key;\n unprotected) header.d=xry111.site header.i=@xry111.site header.a=rsa-sha256\n header.s=default header.b=g4zJIA2t;\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=xry111.site header.i=@xry111.site header.a=rsa-sha256\n header.s=default header.b=g4zJIA2t",
            "sourceware.org;\n dmarc=pass (p=reject dis=none) header.from=xry111.site",
            "sourceware.org; spf=pass smtp.mailfrom=xry111.site",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=89.208.246.23"
        ],
        "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 4g6klW2x1Mz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 07:32:22 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id E990C436F3F8\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  1 May 2026 21:32:19 +0000 (GMT)",
            "from xry111.site (xry111.site [89.208.246.23])\n by sourceware.org (Postfix) with ESMTPS id A9D274A9A89F\n for <gcc-patches@gcc.gnu.org>; Fri,  1 May 2026 21:31:53 +0000 (GMT)",
            "from stargazer (unknown\n [IPv6:2408:824e:304:a151:7a8a:a6f3:c5da:fb7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n (Client did not present a certificate)\n (Authenticated sender: xry111@xry111.site)\n by xry111.site (Postfix) with ESMTPSA id 4BF1A65AAD;\n Fri,  1 May 2026 17:31:50 -0400 (EDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org E990C436F3F8",
            "OpenDKIM Filter v2.11.0 sourceware.org A9D274A9A89F"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org A9D274A9A89F",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org A9D274A9A89F",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777671113; cv=none;\n b=Ac+iL0ywrK2IQ9WlnzLmwn6a2rrNo/nzy8EAGtSpIyNnONr5aad4xfPOXUnrCFaBNWBSA1PKrOQ5OpeKn0jrkKkX6uegSqjiUdcCuVcpsa6gal6JajNfj8MwPFeN/vxiDvOFolYphM81d+tdf1/Cx7Ph658Od7fYM0bs5RrG2tU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777671113; c=relaxed/simple;\n bh=L14QCmi2jcyhUDab9bQDbBpcnGSo3FFzyJt95ZEVGrw=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=dbsFffZnA9/MGce58LpzTzq5a3PtX4bFY0yBSBzBSGARupoUo1Vb2NBUbhecUKgBX4LleH81V8mhCYo+8gVzu1zm+FGEb4lh0xDSA+bnwS4KzKnZCR1S9n7uQZbsr/X2zOz8cDZzV8QOGZh2RwdO/BbQSoKLGNEWYjCOzumw7J4=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=xry111.site;\n s=default; t=1777671113;\n bh=yw+beB0koCFMqO2V2sQlsd44O+tzImrQ6HqSqKgfySA=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=g4zJIA2tOgvryhFEA7u8og878ftKGwv8Dct1D+cFkyty8LMkIPwV+XUIJtsyPYUFW\n kL/2ImXBpU3LCAMD73gufYSO4w4NBzzoy1d/OfAM2UvrWPLqh0GsAWXjR30un3Z6ui\n P7LkHU4XFcHWt6Q8aD0/y6wT836rF6gg8PtO1KcM=",
        "From": "Xi Ruoyao <xry111@xry111.site>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Richard Sandiford <rdsandiford@googlemail.com>,\n \"H . J . Lu\" <hjl.tools@gmail.com>, Xi Ruoyao <xry111@xry111.site>",
        "Subject": "[PATCH 4/4] testsuite: don't link top-level asm tests as PIE [PR\n 70150]",
        "Date": "Sat,  2 May 2026 05:31:20 +0800",
        "Message-ID": "<20260501213120.324542-5-xry111@xry111.site>",
        "X-Mailer": "git-send-email 2.54.0",
        "In-Reply-To": "<20260501213120.324542-1-xry111@xry111.site>",
        "References": "<20260501213120.324542-1-xry111@xry111.site>",
        "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": "If these tests are linked as PIE, the linker ends up creating runtime\ntext relocation and warns or errors out.\n\ngcc/testsuite/\n\n\tPR testsuite/70150\n\t* gcc.dg/ipa/pr122458.c (dg-options): Add -no-pie.\n\t* gcc.dg/lto/toplevel-extended-asm-1_0.c (dg-lto-options): Add\n\t-no-pie.\n\t* gcc.dg/lto/toplevel-simple-asm-1_0.c (dg-lto-options): Add\n\t-no-pie.\n---\n gcc/testsuite/gcc.dg/ipa/pr122458.c                  | 2 +-\n gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c | 2 +-\n gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c   | 2 +-\n 3 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/ipa/pr122458.c b/gcc/testsuite/gcc.dg/ipa/pr122458.c\nindex 85f26f15175..afe283b1972 100644\n--- a/gcc/testsuite/gcc.dg/ipa/pr122458.c\n+++ b/gcc/testsuite/gcc.dg/ipa/pr122458.c\n@@ -1,6 +1,6 @@\n /* PR ipa/122458 */\n /* { dg-do link } */\n-/* { dg-options \"-O2\" } */\n+/* { dg-options \"-O2 -no-pie\" } */\n /* { dg-xfail-if \".dc.a is a gas extension\" { ! gas } } */\n \n static int foo (void) { return 0; };\ndiff --git a/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c b/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c\nindex c1d2fc56b9c..ddceaf6b503 100644\n--- a/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c\n+++ b/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c\n@@ -1,5 +1,5 @@\n /* { dg-lto-do link } */\n-/* { dg-lto-options {{-O2 -flto -flto-partition=1to1} } } */\n+/* { dg-lto-options {{-O2 -flto -flto-partition=1to1 -no-pie} } } */\n \n void asm_fn();\n void asm_fn_used();\ndiff --git a/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c b/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c\nindex 9d653d4c7a3..7ceb380c525 100644\n--- a/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c\n+++ b/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c\n@@ -1,5 +1,5 @@\n /* { dg-lto-do link } */\n-/* { dg-lto-options { {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=1to1} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=max} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=cache}} } */\n+/* { dg-lto-options { {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=1to1 -no-pie} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=max -no-pie} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=cache -no-pie}} } */\n \n void asm_fn();\n void asm_fn_used();\n",
    "prefixes": [
        "4/4"
    ]
}