get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810061,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/810061/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/6220290.NY0sf8PeYM@polaris/",
    "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": "<6220290.NY0sf8PeYM@polaris>",
    "list_archive_url": null,
    "date": "2017-09-05T09:49:39",
    "name": "Fix PR ada/62235",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ee628d2688e900e52b117bb1aad4b851cab689e1",
    "submitter": {
        "id": 4365,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/4365/?format=api",
        "name": "Eric Botcazou",
        "email": "ebotcazou@adacore.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/6220290.NY0sf8PeYM@polaris/mbox/",
    "series": [
        {
            "id": 1537,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/1537/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=1537",
            "date": "2017-09-05T09:49:39",
            "name": "Fix PR ada/62235",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1537/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810061/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810061/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461471-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-461471-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=\"UaUA1HIT\"; 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 3xmhlS4sQMz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 19:49:55 +1000 (AEST)",
            "(qmail 109234 invoked by alias); 5 Sep 2017 09:49:48 -0000",
            "(qmail 109215 invoked by uid 89); 5 Sep 2017 09:49:47 -0000",
            "from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210)\n\tby sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with\n\tESMTP; Tue, 05 Sep 2017 09:49:42 +0000",
            "from localhost (localhost [127.0.0.1])\tby\n\tfiltered-smtp.eu.adacore.com (Postfix) with ESMTP id\n\t3B516822E8\tfor <gcc-patches@gcc.gnu.org>;\n\tTue,  5 Sep 2017 11:49:40 +0200 (CEST)",
            "from smtp.eu.adacore.com ([127.0.0.1])\tby localhost\n\t(smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port\n\t10024)\twith ESMTP id QDybl9M-EBH4 for <gcc-patches@gcc.gnu.org>;\n\tTue,  5 Sep 2017 11:49:40 +0200 (CEST)",
            "from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net\n\t[88.161.99.133])\t(using TLSv1.2 with cipher\n\tECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\t(No client\n\tcertificate requested)\tby smtp.eu.adacore.com (Postfix) with\n\tESMTPSA id 059AE822CE\tfor <gcc-patches@gcc.gnu.org>;\n\tTue,  5 Sep 2017 11:49:40 +0200 (CEST)"
        ],
        "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\n\t:content-transfer-encoding; q=dns; s=default; b=Q+Tvxy84hvnqCvkH\n\tqeyeBX+qU+bUg02qwT/9slK1iHBfgtMKN3WOJ+w1uqSsB4t7yq/AE/CdPbQ1SqsL\n\t1geYRH3N+6qfAXqQ2RcZdd4AVi3+8bS+cMFjWYS0rLRfJq2JfrNQFzWzadvw3bDt\n\tzVIxlsYtTVI87JFfJhKHjvXpPxg=",
        "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\n\t:content-transfer-encoding; s=default; bh=ia8OYkyalWw+GhAFvHnirA\n\t+Y4l8=; b=UaUA1HITm0FkWQ0VU7OKWciwbiGycWG1nd/mnpUSTWR/fEyNOAs+nO\n\tWKWC2Op81tJyIAD27V943tA5f5JOs1l7yYZydHP0Kmtij+8xDFaPR/qNpHlOfdIK\n\tNU22F1MqGx3btr046Vunnv5xxH0IHDDOjsrpBmMxawgDukPf6UG/0=",
        "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=-10.9 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=",
        "X-HELO": "smtp.eu.adacore.com",
        "From": "Eric Botcazou <ebotcazou@adacore.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "Fix PR ada/62235",
        "Date": "Tue, 05 Sep 2017 11:49:39 +0200",
        "Message-ID": "<6220290.NY0sf8PeYM@polaris>",
        "User-Agent": "KMail/4.14.10 (Linux/3.16.7-53-desktop; KDE/4.14.9; x86_64; ; )",
        "MIME-Version": "1.0",
        "Content-Type": "multipart/mixed; boundary=\"nextPart1650894.s8qGfuJ4sr\"",
        "Content-Transfer-Encoding": "7Bit"
    },
    "content": "Tested on x86_64-suse-linux, applied on mainline and 7 branch.\n\n\n2017-09-05  Eric Botcazou  <ebotcazou@adacore.com>\n\n\tPR ada/62235\n\t* gcc-interface/decl.c (gnat_to_gnu_entity): Skip regular processing\n\tfor Itypes that are E_Record_Subtype with a cloned subtype.\n\t<E_Record_Subtype>: Use the DECL of the cloned type directly, if any.\n\n\n2017-09-05  Eric Botcazou  <ebotcazou@adacore.com>\n\n\t* gnat.dg/incomplete5.ad[sb]: New test.\n\t* gnat.dg/incomplete5_pkg.ad[sb]: New helper.",
    "diff": "Index: gcc-interface/decl.c\n===================================================================\n--- gcc-interface/decl.c\t(revision 251700)\n+++ gcc-interface/decl.c\t(working copy)\n@@ -312,11 +312,14 @@ gnat_to_gnu_entity (Entity_Id gnat_entit\n \n   /* Since a use of an Itype is a definition, process it as such if it is in\n      the main unit, except for E_Access_Subtype because it's actually a use\n-     of its base type, see below.  */\n+     of its base type, and for E_Record_Subtype with cloned subtype because\n+     it's actually a use of the cloned subtype, see below.  */\n   if (!definition\n       && is_type\n       && Is_Itype (gnat_entity)\n-      && Ekind (gnat_entity) != E_Access_Subtype\n+      && !(kind == E_Access_Subtype\n+\t   || (kind == E_Record_Subtype\n+\t       && Present (Cloned_Subtype (gnat_entity))))\n       && !present_gnu_tree (gnat_entity)\n       && In_Extended_Main_Code_Unit (gnat_entity))\n     {\n@@ -3411,7 +3414,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entit\n \t{\n \t  gnu_decl = gnat_to_gnu_entity (Cloned_Subtype (gnat_entity),\n \t\t\t\t\t NULL_TREE, false);\n-\t  maybe_present = true;\n+\t  saved = true;\n \t  break;\n \t}\n \n",
    "prefixes": []
}