Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/806301/?format=api
{ "id": 806301, "url": "http://patchwork.ozlabs.org/api/patches/806301/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/CAKwh3qjVFKyzehOZ5_qj0=8W83NWrShtuOru_rO98SHy8V77aw@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": "<CAKwh3qjVFKyzehOZ5_qj0=8W83NWrShtuOru_rO98SHy8V77aw@mail.gmail.com>", "list_archive_url": null, "date": "2017-08-27T20:05:14", "name": "[Fortran] PR 81770: [5/6/7 Regression] Bogus warning: Pointer in pointer assignment might outlive the pointer target", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0d5fce470db09e65ca2335417e817e42d53f59ac", "submitter": { "id": 4401, "url": "http://patchwork.ozlabs.org/api/people/4401/?format=api", "name": "Janus Weil", "email": "janus@gcc.gnu.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/CAKwh3qjVFKyzehOZ5_qj0=8W83NWrShtuOru_rO98SHy8V77aw@mail.gmail.com/mbox/", "series": [ { "id": 43, "url": "http://patchwork.ozlabs.org/api/series/43/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=43", "date": "2017-08-27T20:05:14", "name": "[Fortran] PR 81770: [5/6/7 Regression] Bogus warning: Pointer in pointer assignment might outlive the pointer target", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/43/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/806301/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/806301/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-return-460994-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-460994-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=\"eDEmoEXP\"; 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 3xgQqz1k9zz9s8V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 06:05:33 +1000 (AEST)", "(qmail 102782 invoked by alias); 27 Aug 2017 20:05:20 -0000", "(qmail 102756 invoked by uid 89); 27 Aug 2017 20:05:18 -0000", "from mail-yw0-f193.google.com (HELO mail-yw0-f193.google.com)\n\t(209.85.161.193) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tSun, 27 Aug 2017 20:05:17 +0000", "by mail-yw0-f193.google.com with SMTP id s143so2379070ywg.4;\n\tSun, 27 Aug 2017 13:05:17 -0700 (PDT)", "by 10.13.203.196 with HTTP; Sun, 27 Aug 2017 13:05:14 -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=BWkwIB/rMBAa9AG/AT8GAd8PUpgivwEiiNVF5mslT6S3Te\n\tvlYx9p/PSBHqeqJ0Bn3S34HlsLDhZ47JXqt7JZUo+lw4QrhuAqDQMZTC7N1veTyQ\n\t4UDu/iJ9E1SkCSsrxAW7lIzmsmQH3ezKqZ34wFHUxVvnm2QREewocTdRmtJf0=", "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=yi5LQlksNTDGqZCfwL4zwRxL3p8=; b=eDEmoEXP/Fxe9TUXEwmi\n\toJ9spAcB1Dh/361DEKXvb/tNPrdVuTa9JmD363Xp0i2VORijIqhR0Bvn9t0DKlEK\n\tlGPu3+0GTCkcsUX1sIfrTXxcEtCWw6YXqGvfeXIUmRtjecWLg53KwlVET2QVUTTX\n\tCzVRxCF1uZWZGdPVbr69oic=", "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.2 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_2,\n\tGIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=thrown,\n\tHx-languages-length:2030, sk:janus@g, janus@gcc.gnu.org", "X-Spam-User": "qpsmtpd, 2 recipients", "X-HELO": "mail-yw0-f193.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:sender:from:date:message-id:subject\n\t:to; bh=zUXNfgVFFXBp4oJYy62am4nymdt7OXEdX+XqhmoJ9uY=;\n\tb=mKxT/pet+A79UeJJhCQSSyMpRwUOzIFQk784AFXxwp22HmTMAU5aeHvOg9GnzJ8wn6\n\tH2NbdHwLVEGdq4xzsm6KHBMnWIG3MQAWV4YhPLKKAMst2z1gMm01K4x3d7DubRbV03Lt\n\tp1wy91FrBGULhT9J341Joer4TOyOqXmnorm6GehhZ693IiKD8R9dsH6HbhMAGTZ2IDNh\n\tqTdDNpb2Qcc7eYbkzmMXj0aSvcyMDYC+wWDFv6ElkfUGfdXqupkcLGY+C0lL9Xa1X0OQ\n\tT/qWxmADPkkuj3Ol05Jv74dV84mMPa8Jd4mnbrjs97mxlPdqNsLhvLRJer6N5AJGG82J\n\t3V7Q==", "X-Gm-Message-State": "AHYfb5jNIjuubQy2Q4BnRqX5uIEHOO3b2vTWV1uvZYaVmbiXsup4PuC2\tJ6qAMvnyLomEHD5IfopqeHV6e4LRgRnC", "X-Received": "by 10.37.125.199 with SMTP id y190mr4138837ybc.358.1503864315527;\n\tSun, 27 Aug 2017 13:05:15 -0700 (PDT)", "MIME-Version": "1.0", "From": "Janus Weil <janus@gcc.gnu.org>", "Date": "Sun, 27 Aug 2017 22:05:14 +0200", "Message-ID": "<CAKwh3qjVFKyzehOZ5_qj0=8W83NWrShtuOru_rO98SHy8V77aw@mail.gmail.com>", "Subject": "[Patch,\n\tFortran] PR 81770: [5/6/7 Regression] Bogus warning: Pointer in\n\tpointer assignment might outlive the pointer target", "To": "gfortran <fortran@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>", "Content-Type": "multipart/mixed; boundary=\"001a114e223851bb120557c1b209\"" }, "content": "Hi all,\n\nthe attached patch fixes a bogus warning. The purpose of the warning\nis to detect cases where a pointer lives longer than its target. If\nthe target itself is (1) a pointer or (2) a component of a DT pointer,\nwe do not know about the lifetime of the target at compile time and no\nwarning should be thrown. The existing check only handles case (1) and\nmy patch adds the handling of case (2).\n\nRegtestes cleanly on x86_64-linux-gnu. Ok for trunk and the release branches?\n\nCheers,\nJanus\n\n\n\n2017-08-27 Janus Weil <janus@gcc.gnu.org>\n\n PR fortran/81770\n * expr.c (gfc_check_pointer_assign): Improve the check whether pointer\n may outlive pointer target.\n\n\n2017-08-27 Janus Weil <janus@gcc.gnu.org>\n\n PR fortran/81770\n * gfortran.dg/warn_target_lifetime_4.f90: New testcase.", "diff": "Index: gcc/fortran/expr.c\n===================================================================\n--- gcc/fortran/expr.c\t(revision 251368)\n+++ gcc/fortran/expr.c\t(working copy)\n@@ -3806,7 +3806,8 @@ gfc_check_pointer_assign (gfc_expr *lvalue, gfc_ex\n if (warn_target_lifetime\n && rvalue->expr_type == EXPR_VARIABLE\n && !rvalue->symtree->n.sym->attr.save\n- && !attr.pointer && !rvalue->symtree->n.sym->attr.host_assoc\n+ && !rvalue->symtree->n.sym->attr.pointer && !attr.pointer\n+ && !rvalue->symtree->n.sym->attr.host_assoc\n && !rvalue->symtree->n.sym->attr.in_common\n && !rvalue->symtree->n.sym->attr.use_assoc\n && !rvalue->symtree->n.sym->attr.dummy)\n", "prefixes": [ "Fortran" ] }