get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814016,
    "url": "http://patchwork.ozlabs.org/api/patches/814016/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/CAELXzTORnQnayWKb2LBWctKdeTDdrdECnVqZSzSDdZ-OZr3EmA@mail.gmail.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": "<CAELXzTORnQnayWKb2LBWctKdeTDdrdECnVqZSzSDdZ-OZr3EmA@mail.gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-15T01:31:43",
    "name": "[RFC,4/5] Change iv_analyze_result to take const_rtx.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c71d15525ef14cd739af5452f5a828777d0c7b63",
    "submitter": {
        "id": 25768,
        "url": "http://patchwork.ozlabs.org/api/people/25768/?format=api",
        "name": "Kugan Vivekanandarajah",
        "email": "kugan.vivekanandarajah@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/CAELXzTORnQnayWKb2LBWctKdeTDdrdECnVqZSzSDdZ-OZr3EmA@mail.gmail.com/mbox/",
    "series": [
        {
            "id": 3186,
            "url": "http://patchwork.ozlabs.org/api/series/3186/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=3186",
            "date": "2017-09-15T01:24:36",
            "name": "Loop unrolling and memory load streams",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3186/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814016/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814016/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-462192-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-462192-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=\"qhee0Bce\"; 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 3xtdDF4ZfHz9t2V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 11:31:57 +1000 (AEST)",
            "(qmail 113741 invoked by alias); 15 Sep 2017 01:31:48 -0000",
            "(qmail 113728 invoked by uid 89); 15 Sep 2017 01:31:47 -0000",
            "from mail-qk0-f176.google.com (HELO mail-qk0-f176.google.com)\n\t(209.85.220.176) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tFri, 15 Sep 2017 01:31:45 +0000",
            "by mail-qk0-f176.google.com with SMTP id u73so937232qkl.12 for\n\t<gcc-patches@gcc.gnu.org>; Thu, 14 Sep 2017 18:31:45 -0700 (PDT)",
            "by 10.237.37.211 with HTTP; Thu, 14 Sep 2017 18:31:43 -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\n\t:mime-version:from:date:message-id:subject:to:content-type; q=\n\tdns; s=default; b=GtTcAS5qqqSir6/JyWKk1YSvXxxgiJMDn51PMrwe4hAigy\n\tg80NvLI1LRdUW/jm5WBLXiQ7tqS1hqCHgg954pE554mcX+mb95r9Xmr/CBihLMyU\n\tpynKuTD6nSmOqNarMpGsA2kY8my67JEJWTewar0f9bgMN4voQSrWvJMkQBTVQ=",
        "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\n\t:mime-version:from:date:message-id:subject:to:content-type; s=\n\tdefault; bh=uG0BpAt4I7lIuYDVo4ICo6wkQfk=; b=qhee0Bce5BDnlEUf4K6l\n\tpiMF8zSmbcK5E/geJztVzbatbFysJr9dyKEKB/YRVjTdn/hEQYCh4PE70l8CcWtW\n\trHIxRTh3l7dZFrkY0F21CAvLaoT+07CbR6EfW0tsXAvjJstBHkJIJqRNCKfBIsvg\n\tHNOIAuD2R6BOMLPuXc1Wd8M=",
        "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=-24.1 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=",
        "X-HELO": "mail-qk0-f176.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:mime-version:from:date:message-id:subject:to;\n\tbh=pwJgCnFiTMOyq5E8lVO2MdpkyuBGDkKpIBeYP6JmDSE=;\n\tb=Kq4zR80YgzCpnp8cwAMbXzqImfIfNlygK5tGP/REC5btwnB/H6SUUJ/kx0SLHT3aNj\n\tinwL8q/OvUutkFGTYLjh8b7rHmYJFi9Ut/sjHAXmgYNRDUx8WDhXZYvMVqyQUXRp9RwR\n\tVFU9ie7R6K6FhuGQgEX/VtxN7G/aYzCc/YYWedE2jsgNywlkomMtxdkTQ4NU/Nd0wEBY\n\tZLjn6jswxeI5jUD2Fpg4sHwSDGWs1PqmVkGo0SrhofjuaQp0O4ayJ0EBgot8LwzXustq\n\tCe6caWM4EuueCzvIKrGhyMmuU1TQeyEU8QIuUT25DjwsTONjsqenDxSwA0B8XHanmnLv\n\tu0zg==",
        "X-Gm-Message-State": "AHPjjUjOMH56lQW/ZtCM8b4e9brzfj+kQ3UDKCr5v27SNBG4EFWuGSKO\tK+g5ufLTdD7jDbmCIOQA7D3xGFn4bTRryvUQeAZ+VkU+D8Y=",
        "X-Google-Smtp-Source": "AOwi7QCOqj7VCsRqgW+YYXlSFXZxfTI3WYFahWuyUFVJa9YeJr2mvdcOySoeaMDFpzZEBNnonbxn6K/FaTnwT+s82HI=",
        "X-Received": "by 10.55.111.133 with SMTP id k127mr5668249qkc.182.1505439103766;\n\tThu, 14 Sep 2017 18:31:43 -0700 (PDT)",
        "MIME-Version": "1.0",
        "From": "Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>",
        "Date": "Fri, 15 Sep 2017 11:31:43 +1000",
        "Message-ID": "<CAELXzTORnQnayWKb2LBWctKdeTDdrdECnVqZSzSDdZ-OZr3EmA@mail.gmail.com>",
        "Subject": "[RFC][PATCH 4/5] Change iv_analyze_result to take const_rtx.",
        "To": "\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>",
        "Content-Type": "multipart/mixed; boundary=\"94eb2c05e4680347c50559305baa\"",
        "X-IsSubscribed": "yes"
    },
    "content": "Change iv_analyze_result to take const_rtx. This is just to make the\nnext patch compile. No functional changes:\n\nThanks,\nKugan\n\ngcc/ChangeLog:\n\n2017-09-12  Kugan Vivekanandarajah  <kuganv@linaro.org>\n\n    * cfgloop.h (iv_analyze_result): Change 2nd param from rtx to\n      const_rtx.\n    * df-core.c (df_find_def): Likewise.\n    * df.h (df_find_def): Likewise.\n    * loop-iv.c (iv_analyze_result): Likewise.",
    "diff": "From 5d50c51c520d881104d44603514088a19e14e652 Mon Sep 17 00:00:00 2001\nFrom: Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>\nDate: Fri, 25 Aug 2017 10:49:50 +1000\nSubject: [PATCH 4/5] Change iv_analyze_result to take const_rtx\n\n---\n gcc/cfgloop.h | 2 +-\n gcc/df-core.c | 2 +-\n gcc/df.h      | 2 +-\n gcc/loop-iv.c | 2 +-\n 4 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/gcc/cfgloop.h b/gcc/cfgloop.h\nindex e7ffa23..2308e7a 100644\n--- a/gcc/cfgloop.h\n+++ b/gcc/cfgloop.h\n@@ -473,7 +473,7 @@ struct GTY(()) niter_desc\n \n extern void iv_analysis_loop_init (struct loop *);\n extern bool iv_analyze (rtx_insn *, rtx, struct rtx_iv *);\n-extern bool iv_analyze_result (rtx_insn *, rtx, struct rtx_iv *);\n+extern bool iv_analyze_result (rtx_insn *, const_rtx, struct rtx_iv *);\n extern bool iv_analyze_expr (rtx_insn *, rtx, machine_mode,\n \t\t\t     struct rtx_iv *);\n extern rtx get_iv_value (struct rtx_iv *, rtx);\ndiff --git a/gcc/df-core.c b/gcc/df-core.c\nindex 1e84d4d..ecb6b15 100644\n--- a/gcc/df-core.c\n+++ b/gcc/df-core.c\n@@ -1951,7 +1951,7 @@ df_bb_regno_last_def_find (basic_block bb, unsigned int regno)\n    DF is the dataflow object.  */\n \n df_ref\n-df_find_def (rtx_insn *insn, rtx reg)\n+df_find_def (rtx_insn *insn, const_rtx reg)\n {\n   df_ref def;\n \ndiff --git a/gcc/df.h b/gcc/df.h\nindex 07fd334..8861cc9 100644\n--- a/gcc/df.h\n+++ b/gcc/df.h\n@@ -979,7 +979,7 @@ extern void df_check_cfg_clean (void);\n #endif\n extern df_ref df_bb_regno_first_def_find (basic_block, unsigned int);\n extern df_ref df_bb_regno_last_def_find (basic_block, unsigned int);\n-extern df_ref df_find_def (rtx_insn *, rtx);\n+extern df_ref df_find_def (rtx_insn *, const_rtx);\n extern bool df_reg_defined (rtx_insn *, rtx);\n extern df_ref df_find_use (rtx_insn *, rtx);\n extern bool df_reg_used (rtx_insn *, rtx);\ndiff --git a/gcc/loop-iv.c b/gcc/loop-iv.c\nindex 896fe0b1..745b613 100644\n--- a/gcc/loop-iv.c\n+++ b/gcc/loop-iv.c\n@@ -1198,7 +1198,7 @@ iv_analyze (rtx_insn *insn, rtx val, struct rtx_iv *iv)\n /* Analyzes definition of DEF in INSN and stores the result to IV.  */\n \n bool\n-iv_analyze_result (rtx_insn *insn, rtx def, struct rtx_iv *iv)\n+iv_analyze_result (rtx_insn *insn, const_rtx def, struct rtx_iv *iv)\n {\n   df_ref adef;\n \n-- \n2.7.4\n\n",
    "prefixes": [
        "RFC",
        "4/5"
    ]
}