get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808498,
    "url": "http://patchwork.ozlabs.org/api/patches/808498/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20170901011500.15345-8-aoliva@redhat.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": "<20170901011500.15345-8-aoliva@redhat.com>",
    "list_archive_url": null,
    "date": "2017-09-01T01:14:59",
    "name": "[8/9,IEPM] Introduce debug hook for inline entry point markers",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "89db51c9a6aea69de8aabbae4cf44c2159c05c75",
    "submitter": {
        "id": 2058,
        "url": "http://patchwork.ozlabs.org/api/people/2058/?format=api",
        "name": "Alexandre Oliva",
        "email": "aoliva@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20170901011500.15345-8-aoliva@redhat.com/mbox/",
    "series": [
        {
            "id": 934,
            "url": "http://patchwork.ozlabs.org/api/series/934/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=934",
            "date": "2017-09-01T01:14:52",
            "name": "[1/9,SFN] adjust RTL insn-walking API",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/934/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808498/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808498/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461242-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-461242-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=\"L3NN7uBY\"; dkim-atps=neutral",
            "sourceware.org; auth=none",
            "ext-mx01.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx01.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=aoliva@redhat.com"
        ],
        "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 3xk1YL4swWz9sMN\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  1 Sep 2017 11:16:54 +1000 (AEST)",
            "(qmail 95717 invoked by alias); 1 Sep 2017 01:16:05 -0000",
            "(qmail 94927 invoked by uid 89); 1 Sep 2017 01:16:00 -0000",
            "from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tFri, 01 Sep 2017 01:15:58 +0000",
            "from smtp.corp.redhat.com\n\t(int-mx02.intmail.prod.int.phx2.redhat.com\n\t[10.5.11.12])\t(using TLSv1.2 with cipher AECDH-AES256-SHA\n\t(256/256 bits))\t(No client certificate requested)\tby\n\tmx1.redhat.com (Postfix) with ESMTPS id 76BD281E02;\n\tFri,  1 Sep 2017 01:15:57 +0000 (UTC)",
            "from freie.home (ovpn04.gateway.prod.ext.phx2.redhat.com\n\t[10.5.9.4])\tby smtp.corp.redhat.com (Postfix) with ESMTPS id\n\t36D37610AF; Fri,  1 Sep 2017 01:15:57 +0000 (UTC)",
            "from frit.home (frit.home [172.31.160.7])\tby freie.home\n\t(8.15.2/8.15.2) with ESMTP id v811FZOl009211;\n\tThu, 31 Aug 2017 22:15:44 -0300"
        ],
        "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:cc:subject:date:message-id:in-reply-to:references; q=dns; s=\n\tdefault; b=J2PeaoxBhjoUO07yfMHrsbUuaV23umi5bbiiyd+7RZ41Vbn/uWxZn\n\turQwiqdGIvR3d1GgJscwOHRMtgREeuWxJb4k4DWPm1xZx98cfjL86NL2QhLpd8lN\n\tO7i767b90489gcutdeQZgewga5Bq6bU0EZpmJ9gTMOcFGu/YA/un20=",
        "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:cc:subject:date:message-id:in-reply-to:references; s=\n\tdefault; bh=nw9gVOAxSTCW16L07RKHSlrkWIU=; b=L3NN7uBYlVkrIisbylAD\n\tbk80efIw4OVpAOUsC9z9ZPOIANWNCdNrqu3jkxBsiaIgqwDIJ6QJs0cRYTTFedbe\n\tK5rYPUy+Urtz84ix1ZdHF0UyxqmnH/SXY2i69EBujBNHr64Bq1bCUtzpFEBZjg20\n\tCdvBeDkJw+dNCSfzgcbL8bs=",
        "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=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD,\n\tSPF_HELO_PASS autolearn=ham version=3.3.2 spammy=1689",
        "X-HELO": "mx1.redhat.com",
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 76BD281E02",
        "From": "Alexandre Oliva <aoliva@redhat.com>",
        "To": "Richard Biener <richard.guenther@gmail.com>",
        "Cc": "GCC Patches <gcc-patches@gcc.gnu.org>,\n\tAlexandre Oliva <aoliva@redhat.com>",
        "Subject": "[PATCH 8/9] [IEPM] Introduce debug hook for inline entry point\n\tmarkers",
        "Date": "Thu, 31 Aug 2017 22:14:59 -0300",
        "Message-Id": "<20170901011500.15345-8-aoliva@redhat.com>",
        "In-Reply-To": "<orr2vrns5k.fsf@lxoliva.fsfla.org>",
        "References": "<orr2vrns5k.fsf@lxoliva.fsfla.org>"
    },
    "content": "The inline_entry hook will be given a definition in a later patch.\n\nfor  gcc/ChangeLog\n\n\t* debug.h (gcc_debug_hooks): Add inline_entry.\n\t* dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.\n\t* debug.c (do_nothing_debug_hooks): Likewise.\n\t* sdbout.c (sdb_debug_hooks): Likewise.\n\t* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.\n\t* dwarf2out.c (dwarf2_debug_hooks): Likewise.\n\t(dwarf2_lineno_debug_hooks): Likewise.\n---\n gcc/dbxout.c    | 2 ++\n gcc/debug.c     | 1 +\n gcc/debug.h     | 3 +++\n gcc/dwarf2out.c | 2 ++\n gcc/sdbout.c    | 1 +\n gcc/vmsdbgout.c | 1 +\n 6 files changed, 10 insertions(+)",
    "diff": "diff --git a/gcc/dbxout.c b/gcc/dbxout.c\nindex 3d9268c3..f1c80c5 100644\n--- a/gcc/dbxout.c\n+++ b/gcc/dbxout.c\n@@ -377,6 +377,7 @@ const struct gcc_debug_hooks dbx_debug_hooks =\n   debug_nothing_rtx_code_label,\t         /* label */\n   dbxout_handle_pch,\t\t         /* handle_pch */\n   debug_nothing_rtx_insn,\t         /* var_location */\n+  debug_nothing_tree,\t         \t /* inline_entry */\n   debug_nothing_tree,\t\t\t /* size_function */\n   debug_nothing_void,                    /* switch_text_section */\n   debug_nothing_tree_tree,\t\t /* set_name */\n@@ -417,6 +418,7 @@ const struct gcc_debug_hooks xcoff_debug_hooks =\n   debug_nothing_rtx_code_label,\t         /* label */\n   dbxout_handle_pch,\t\t         /* handle_pch */\n   debug_nothing_rtx_insn,\t         /* var_location */\n+  debug_nothing_tree,\t         \t /* inline_entry */\n   debug_nothing_tree,\t\t\t /* size_function */\n   debug_nothing_void,                    /* switch_text_section */\n   debug_nothing_tree_tree,\t         /* set_name */\ndiff --git a/gcc/debug.c b/gcc/debug.c\nindex d68c30ff..5deec2c 100644\n--- a/gcc/debug.c\n+++ b/gcc/debug.c\n@@ -53,6 +53,7 @@ const struct gcc_debug_hooks do_nothing_debug_hooks =\n   debug_nothing_rtx_code_label,\t         /* label */\n   debug_nothing_int,\t\t         /* handle_pch */\n   debug_nothing_rtx_insn,\t         /* var_location */\n+  debug_nothing_tree,\t         \t /* inline_entry */\n   debug_nothing_tree,\t\t\t /* size_function */\n   debug_nothing_void,                    /* switch_text_section */\n   debug_nothing_tree_tree,\t\t /* set_name */\ndiff --git a/gcc/debug.h b/gcc/debug.h\nindex bfb7221..78bb401 100644\n--- a/gcc/debug.h\n+++ b/gcc/debug.h\n@@ -168,6 +168,9 @@ struct gcc_debug_hooks\n   /* Called from final_scan_insn for any NOTE_INSN_VAR_LOCATION note.  */\n   void (* var_location) (rtx_insn *);\n \n+  /* Called from final_scan_insn for any NOTE_INSN_INLINE_ENTRY note.  */\n+  void (* inline_entry) (tree block);\n+\n   /* Called from finalize_size_functions for size functions so that their body\n      can be encoded in the debug info to describe the layout of variable-length\n      structures.  */\ndiff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c\nindex ff97715..839b153 100644\n--- a/gcc/dwarf2out.c\n+++ b/gcc/dwarf2out.c\n@@ -2766,6 +2766,7 @@ const struct gcc_debug_hooks dwarf2_debug_hooks =\n   debug_nothing_rtx_code_label,\t/* label */\n   debug_nothing_int,\t\t/* handle_pch */\n   dwarf2out_var_location,\n+  debug_nothing_tree,\t\t/* inline_entry */\n   dwarf2out_size_function,\t/* size_function */\n   dwarf2out_switch_text_section,\n   dwarf2out_set_name,\n@@ -2804,6 +2805,7 @@ const struct gcc_debug_hooks dwarf2_lineno_debug_hooks =\n   debug_nothing_rtx_code_label,\t         /* label */\n   debug_nothing_int,\t\t         /* handle_pch */\n   debug_nothing_rtx_insn,\t         /* var_location */\n+  debug_nothing_tree,\t         \t /* inline_entry */\n   debug_nothing_tree,\t\t\t /* size_function */\n   debug_nothing_void,                    /* switch_text_section */\n   debug_nothing_tree_tree,\t\t /* set_name */\ndiff --git a/gcc/sdbout.c b/gcc/sdbout.c\nindex a67f9d6..e21a65d 100644\n--- a/gcc/sdbout.c\n+++ b/gcc/sdbout.c\n@@ -307,6 +307,7 @@ const struct gcc_debug_hooks sdb_debug_hooks =\n   sdbout_label,\t\t\t         /* label */\n   debug_nothing_int,\t\t         /* handle_pch */\n   debug_nothing_rtx_insn,\t         /* var_location */\n+  debug_nothing_tree,\t         \t /* inline_entry */\n   debug_nothing_tree,\t\t\t /* size_function */\n   debug_nothing_void,                    /* switch_text_section */\n   debug_nothing_tree_tree,\t\t /* set_name */\ndiff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c\nindex 42300e2..557b76e 100644\n--- a/gcc/vmsdbgout.c\n+++ b/gcc/vmsdbgout.c\n@@ -203,6 +203,7 @@ const struct gcc_debug_hooks vmsdbg_debug_hooks\n    debug_nothing_rtx_code_label,  /* label */\n    debug_nothing_int,\t\t  /* handle_pch */\n    debug_nothing_rtx_insn,\t  /* var_location */\n+   debug_nothing_tree,\t          /* inline_entry */\n    debug_nothing_tree,\t\t  /* size_function */\n    debug_nothing_void,            /* switch_text_section */\n    debug_nothing_tree_tree,\t  /* set_name */\n",
    "prefixes": [
        "8/9",
        "IEPM"
    ]
}