Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/814828/?format=api
{ "id": 814828, "url": "http://patchwork.ozlabs.org/api/1.2/patches/814828/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20170918084804.GA20029@adacore.com/", "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": "<20170918084804.GA20029@adacore.com>", "list_archive_url": null, "date": "2017-09-18T08:48:04", "name": "[Ada] Allow generic package holding state", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "49372f330ea0b2e70a350f45adb3e21297b1abac", "submitter": { "id": 64226, "url": "http://patchwork.ozlabs.org/api/1.2/people/64226/?format=api", "name": "Pierre-Marie de Rodat", "email": "derodat@adacore.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20170918084804.GA20029@adacore.com/mbox/", "series": [ { "id": 3588, "url": "http://patchwork.ozlabs.org/api/1.2/series/3588/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=3588", "date": "2017-09-18T08:48:04", "name": "[Ada] Allow generic package holding state", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3588/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/814828/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/814828/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-return-462357-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-462357-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=\"yIpjTFHO\"; 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 3xwfmw4vmyz9s4s\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 18:48:47 +1000 (AEST)", "(qmail 23761 invoked by alias); 18 Sep 2017 08:48:37 -0000", "(qmail 3042 invoked by uid 89); 18 Sep 2017 08:48:23 -0000", "from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tMon, 18 Sep 2017 08:48:13 +0000", "from localhost (localhost.localdomain [127.0.0.1])\tby\n\tfiltered-rock.gnat.com (Postfix) with ESMTP id C2D59560E6;\n\tMon, 18 Sep 2017 04:48:04 -0400 (EDT)", "from rock.gnat.com ([127.0.0.1])\tby localhost (rock.gnat.com\n\t[127.0.0.1]) (amavisd-new, port 10024)\twith LMTP id\n\tHSB4g+i6E5PE; Mon, 18 Sep 2017 04:48:04 -0400 (EDT)", "from tron.gnat.com (tron.gnat.com [205.232.38.10])\tby\n\trock.gnat.com (Postfix) with ESMTP id B0933560D8;\n\tMon, 18 Sep 2017 04:48:04 -0400 (EDT)", "by tron.gnat.com (Postfix, from userid 4862)\tid ACF294FC;\n\tMon, 18 Sep 2017 04:48:04 -0400 (EDT)" ], "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:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; q=dns;\n\ts=default; b=SKMxL+Y5m6jUZZDlUjfJvbAXM8UqfVNtr0w3GgI8TytWoWh8gd\n\tSyeuyYcgvIrGo2JUA+m2torymz2R1xemIf64lpHHt+Zb32dxCYI/KrVzxYdp4s/w\n\txxONNhC6/3pLV/FIpNd4B6Kii7GHwSXvHMWjGY0iyCmjymhh0rm3fzTcs=", "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:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=KbFnHTc1f+TFNjE6+oyKE+2Ntkc=; b=yIpjTFHOMoOTf9Dlr/t3\n\t6Jpf3Pm9Q9qY9LGHuIcxZsMF9PFuRv2pDk4rVOFtPRpp9bT6BYUIDOYb8P53v5Xk\n\t45F0CgHIhYefga/skv1zxpLc33Y0LC/mLBX5sZv+SMpMGjzJ92k8w0N2tHX7knx4\n\tyAspJLzM5MfjWVxLlz81pMc=", "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.9 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3, RCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Present,\n\tHx-languages-length:1074, State", "X-HELO": "rock.gnat.com", "Date": "Mon, 18 Sep 2017 04:48:04 -0400", "From": "Pierre-Marie de Rodat <derodat@adacore.com>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Yannick Moy <moy@adacore.com>", "Subject": "[Ada] Allow generic package holding state", "Message-ID": "<20170918084804.GA20029@adacore.com>", "MIME-Version": "1.0", "Content-Type": "multipart/mixed; boundary=\"VS++wcV0S1rZb1Fb\"", "Content-Disposition": "inline", "User-Agent": "Mutt/1.5.23 (2014-03-12)", "X-IsSubscribed": "yes" }, "content": "SPARK RM 7.2.6(5) allows the hidden state of a generic package to be Part_Of\nthe state of the generic package. This was not properly supported. Now fixed.\n\nThe following code compiles without errors.\n\n$ gcc -c gen.ads\n\n 1. generic\n 2.\t J : Integer;\n 3. package Gen with\n 4. SPARK_Mode => On,\n 5. Abstract_State => State\n 6. is\n 7.\tG : Boolean;\n 8. private\n 9.\t H : Boolean with Part_Of => State;\n10. end Gen;\n\nTested on x86_64-pc-linux-gnu, committed on trunk\n\n2017-09-18 Yannick Moy <moy@adacore.com>\n\n\t* sem_util.adb (Find_Placement_In_State_Space): Allow generic package\n\tholding state.", "diff": "Index: sem_util.adb\n===================================================================\n--- sem_util.adb\t(revision 252907)\n+++ sem_util.adb\t(working copy)\n@@ -7922,7 +7922,7 @@\n \n Context := Scope (Item_Id);\n while Present (Context) and then Context /= Standard_Standard loop\n- if Ekind (Context) = E_Package then\n+ if Is_Package_Or_Generic_Package (Context) then\n Pack_Id := Context;\n \n -- A package body is a cut off point for the traversal as the item\n", "prefixes": [ "Ada" ] }