get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816181,
    "url": "http://patchwork.ozlabs.org/api/patches/816181/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/87377h1rne.fsf@linaro.org/",
    "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": "<87377h1rne.fsf@linaro.org>",
    "list_archive_url": null,
    "date": "2017-09-20T12:27:49",
    "name": "Add copy_rtx call to RTL loop unroller",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "49f54749f62f6763d8dd835b46812e6fbe798fbe",
    "submitter": {
        "id": 5450,
        "url": "http://patchwork.ozlabs.org/api/people/5450/?format=api",
        "name": "Richard Sandiford",
        "email": "richard.sandiford@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/87377h1rne.fsf@linaro.org/mbox/",
    "series": [
        {
            "id": 4103,
            "url": "http://patchwork.ozlabs.org/api/series/4103/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=4103",
            "date": "2017-09-20T12:27:49",
            "name": "Add copy_rtx call to RTL loop unroller",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4103/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816181/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816181/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-462584-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462584-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"YASUO1HM\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxzY30RvRz9t2Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 22:28:06 +1000 (AEST)",
            "(qmail 64539 invoked by alias); 20 Sep 2017 12:27:57 -0000",
            "(qmail 64309 invoked by uid 89); 20 Sep 2017 12:27:56 -0000",
            "from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com)\n\t(74.125.82.47) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 20 Sep 2017 12:27:54 +0000",
            "by mail-wm0-f47.google.com with SMTP id g206so6739617wme.0 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 20 Sep 2017 05:27:54 -0700 (PDT)",
            "from localhost (92.40.248.127.threembb.co.uk. [92.40.248.127]) by\n\tsmtp.gmail.com with ESMTPSA id\n\tl15sm1739298wrl.47.2017.09.20.05.27.51 for\n\t<gcc-patches@gcc.gnu.org> (version=TLS1_2\n\tcipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 20 Sep 2017 05:27:51 -0700 (PDT)"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:subject:date:message-id:mime-version:content-type; q=dns; s=\n\tdefault; b=QGpFJpqzdtRdchMueqPKAWdBooZcb1/9oybDjZTRTZzCbXjOGm4EQ\n\tzpWnqmCsbLGvj6egnpj0toH1gXWMn3oIpirhlR5dpjWSkIk+4oT3nJ2OGUC7kI9I\n\tm13wfvC1OURJBVvvcfEw9kqz2GVzB8PnDgMAuw8reh2YUexG9F1XdM=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:subject:date:message-id:mime-version:content-type; s=\n\tdefault; bh=lj8YD6j89Nu5aUOCE47tIh03uCI=; b=YASUO1HMRCVmRLaUSUMT\n\tNxH1I6b0Hprx9LNeNq4pdvfZs4wb5GOWrf35oOcTmOV6ptuFrYTrQBXTXmkXuxan\n\tfyzCatagAOJmuQgTpkLN+95bWp4KlFwFJ3tjOvexNWtGNMe2yJ4PKRzCVj80HJw7\n\tHHxcn4VZLRN0zvN0/WaGIkc=",
        "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>",
        "Sender": "gcc-patches-owner@gcc.gnu.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-11.3 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=",
        "X-HELO": "mail-wm0-f47.google.com",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id\n\t:user-agent:mime-version;\n\tbh=zv/C8DeWVk+OPvSc+mshKtVR8zP7oVW8/6sVp7u2OyA=;\n\tb=iaWB6XiMxnCrVLU7JsPeFH2YU4qH7n1ZndMtESQ7KGD7NdyBPTo2RzmtuxyaiMqIqn\n\tS5gf5A/KC6m+35yY1pyy6WbL+YwGdxFuBIIvVr+KTbAal1+sGcD9WrI5xER5lRTobr4U\n\t4abe8VVzBBG/E546Oa48QRSVS/noXzjHgmhZC1hZRt3WpGdDAtV7bRyim9CHeW8CbA/K\n\twV7iZYYgTjC0w+K1UHrZ2lxGLUHs6Yhad58k46o91aq298PBknXEc/ZdBENjCBVy9BrF\n\tllXo/A1ydEEFmSrWbpEvzdlFmwHHyyBJfrvrGaBEzlU8CIvI4Y06nmGzPDjFtWfYVJUv\n\tJShg==",
        "X-Gm-Message-State": "AHPjjUiJdyXxUlFU74n7wT/Y3VqFslLGqv0Ocnin5Gx/R8yUj3r/3f6/\tUm72keBkdQ/GUSV5wLMNjUK4mWKAxb0=",
        "X-Google-Smtp-Source": "AOwi7QBRU/fJYlj5Dr2j33mTj0hlZkKgi3cmw+uZ6QC8crtMQ7sz7P/RFTBQGgfaoUyFJ3WbFE48aQ==",
        "X-Received": "by 10.28.45.5 with SMTP id t5mr3699949wmt.108.1505910472267;\n\tWed, 20 Sep 2017 05:27:52 -0700 (PDT)",
        "From": "Richard Sandiford <richard.sandiford@linaro.org>",
        "To": "gcc-patches@gcc.gnu.org",
        "Mail-Followup-To": "gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org",
        "Subject": "Add copy_rtx call to RTL loop unroller",
        "Date": "Wed, 20 Sep 2017 13:27:49 +0100",
        "Message-ID": "<87377h1rne.fsf@linaro.org>",
        "User-Agent": "Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain"
    },
    "content": "This is needed if the step is an unshared constant, like many\n(const ...)s are.  Without this patch, libgfortran would fail\nto build for SVE.\n\nTested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linus-gnu.\nOK to install?\n\nRichard\n\n\n2017-09-20  Richard Sandiford  <richard.sandiford@linaro.org>\n\t    Alan Hayward  <alan.hayward@arm.com>\n\t    David Sherwood  <david.sherwood@arm.com>\n\ngcc/\n\t* loop-unroll.c (split_iv): Call copy_rtx on the step.",
    "diff": "Index: gcc/loop-unroll.c\n===================================================================\n--- gcc/loop-unroll.c\t2017-08-30 12:13:52.715828832 +0100\n+++ gcc/loop-unroll.c\t2017-09-20 13:26:14.451718893 +0100\n@@ -1731,7 +1731,8 @@ split_iv (struct iv_to_split *ivts, rtx_\n   else\n     {\n       incr = simplify_gen_binary (MULT, mode,\n-\t\t\t\t  ivts->step, gen_int_mode (delta, mode));\n+\t\t\t\t  copy_rtx (ivts->step),\n+\t\t\t\t  gen_int_mode (delta, mode));\n       expr = simplify_gen_binary (PLUS, GET_MODE (ivts->base_var),\n \t\t\t\t  ivts->base_var, incr);\n     }\n",
    "prefixes": []
}