From patchwork Mon Sep 24 17:16:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Koenig X-Patchwork-Id: 974019 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-486261-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=netcologne.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="hdUiyTdO"; dkim=pass (2048-bit key; unprotected) header.d=netcologne.de header.i=@netcologne.de header.b="S9bRJev8"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42JrTl5Y0Fz9s8T for ; Tue, 25 Sep 2018 03:16:41 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=I2/qp2JOYal01kCBhMFSec3VFDJd3c9hG3vLX8KsQzxnn72Kow soZf6D6gOoeFmE4ebpYDVNkB5GtUhtF/ydDsNMytq4JNLMBAqWirqLc0jwopCD9B TIY5sPe8t+D31o3bRZtUSaleltcBfX7YlJoTeX51pTggZCnfELSl6uAZ8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=KsUHWdw74E5QZEyYXwMST6evToo=; b=hdUiyTdO+SX750yUUat0 ByLZax4ZoCAXvkhc9x1+spQmf8PFzv/0UhkyumjK2sqwROTv2OLGH/2bbjP/SPnZ pJecTx2naoAoqwbNI2nswP3LcnfLrhsP5HcjKOPPU45yqBcj+IyX+U8uRf5XwhpK 21OgbgFEwqQ3qP2DhokfjGA= Received: (qmail 58984 invoked by alias); 24 Sep 2018 17:16:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 58898 invoked by uid 89); 24 Sep 2018 17:16:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: cc-smtpout3.netcologne.de Received: from cc-smtpout3.netcologne.de (HELO cc-smtpout3.netcologne.de) (89.1.8.213) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Sep 2018 17:16:22 +0000 Received: from cc-smtpin1.netcologne.de (cc-smtpin1.netcologne.de [89.1.8.201]) by cc-smtpout3.netcologne.de (Postfix) with ESMTP id E9D5812689; Mon, 24 Sep 2018 19:16:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=netcologne.de; s=nc1116a; t=1537809379; bh=wlp55AF7dTQuOGws5t5iej1ENpGa2Kp1Hmp6C9cpqt0=; h=To:From:Subject:Message-ID:Date:From; b=S9bRJev8FrDA7vuNYXmo84x7d4KCJ/zqAR2H8qLu8OB0RrepkK5qtd2okPF+2imlu njbbSzLoAyPe2es/8n01Aakx0hz5l+CXjfG1R3xv2vx4H+bIiX3jtOzVE6Yfy3/klH PZaPQzjsu54j2X7phBdFiYPpojoYMCMmN6uGZRrMRWFJpF0XeaVUwH7P4dVP1YoWBj YfDpwZVeJxwrW/dmayGzbsYnLupbTG1LzYBreIRY6pR9wNvgTCVGK2iSuo4d/oAeR8 n0bp2qILJpu2u3hyq/AHFPg55jdZ4n/m1EI8pS39COqs8BJxZ43/bE3xJcDBWpklIk IZmj03WVyr1Uw== Received: from localhost (localhost [127.0.0.1]) by cc-smtpin1.netcologne.de (Postfix) with ESMTP id E6A3411EAC; Mon, 24 Sep 2018 19:16:19 +0200 (CEST) Received: from [78.35.147.137] (helo=cc-smtpin1.netcologne.de) by localhost with ESMTP (eXpurgate 4.6.0) (envelope-from ) id 5ba91be3-5f8a-7f0000012729-7f000001c560-1 for ; Mon, 24 Sep 2018 19:16:19 +0200 Received: from [192.168.178.68] (xdsl-78-35-147-137.netcologne.de [78.35.147.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin1.netcologne.de (Postfix) with ESMTPSA; Mon, 24 Sep 2018 19:16:18 +0200 (CEST) To: "fortran@gcc.gnu.org" , gcc-patches From: Thomas Koenig Subject: [patch, fortran, committed] Another fallout from the INTENT(OUT) patch Message-ID: Date: Mon, 24 Sep 2018 19:16:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 Hello world, another obvious and simple one-line fix for fallout from the INTENT(OUT) clobber patch. Committed as r264539, after regression-testing. It seems our testsuite is not testing as many combinations in the language as I thought :-) Regards Thomas 2018-09-24 Thomas Koenig PR fortran/87397 * gfc_conv_procedure_call: Do not add clobber on INTENT(OUT) for variables in an associate statement. 2018-09-24 Thomas Koenig PR fortran/87401 * gfortran.dg/intent_out_12.f90: New test. Index: trans-expr.c =================================================================== --- trans-expr.c (Revision 264538) +++ trans-expr.c (Arbeitskopie) @@ -5282,6 +5282,7 @@ gfc_conv_procedure_call (gfc_se * se, gfc_symbol * && !e->symtree->n.sym->attr.dummy /* FIXME - PR 87395 and PR 41453 */ && e->symtree->n.sym->attr.save == SAVE_NONE + && !e->symtree->n.sym->attr.associate_var && e->ts.type != BT_CHARACTER && e->ts.type != BT_DERIVED && e->ts.type != BT_CLASS && !sym->attr.elemental;