From patchwork Thu Aug 22 23:52:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Kargl X-Patchwork-Id: 1151898 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-507560-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=troutmask.apl.washington.edu Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="y2DyEDA2"; 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 46F1Yy420qz9sN6 for ; Fri, 23 Aug 2019 09:53:08 +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:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=ThSlb0U6JNTuT0SbvN/yDuEhHhViEvEJNeyMEF+r3yH MEZWFgjygXf7uJp+N/QmELgch6/XaSvFj+Z9Ax6m3O0EZFUj37mrVImsj+c3jiAN MclsIMuqmMtP+w45qntFNodboBvH/M/e4U86Yv/9snnsG58Btk5yl2ZHKMrB5Hzc = 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:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=8Xee0RJtUyVQzG7yGu0GTTLLoR4=; b=y2DyEDA2c/t9jsdji L7qGpSiLoPyEXqbwBSwto7R+tMf1TN2TRc62aSmnuWCi7gGN680kwARrHrBuJheq Yfl4ywe4zAu22MXKNsHLSH7uX/i1E5AWvHtPVluQiFj6fB8MrztZpQ5XBq1DxWed dNVfk0aGOBeAxr0h4S6JnQBF/g= Received: (qmail 92462 invoked by alias); 22 Aug 2019 23:52:56 -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 92446 invoked by uid 89); 22 Aug 2019 23:52:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, UPPERCASE_50_75 autolearn=ham version=3.3.1 spammy=kargl@gcc.gnu.org, sk:kargl@g, U*kargl, sk:karglg X-HELO: troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Aug 2019 23:52:54 +0000 Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x7MNqrVO006119 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 22 Aug 2019 16:52:53 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x7MNqrbS006118; Thu, 22 Aug 2019 16:52:53 -0700 (PDT) (envelope-from sgk) Date: Thu, 22 Aug 2019 16:52:53 -0700 From: Steve Kargl To: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [Committed,Fortran] errmsg is intent(inout) Message-ID: <20190822235253.GA6113@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) F2018 states that ERRMSG in co_broadcast, co_max, co_min, co_reduce, and co_sum is INTENT(INOUT). The committed patch makes this so. 2019-08-22 Steven G. Kargl * intrinsic.c (add_subroutines): ERRMSG is INTENT(INOUT) in co_broadcast, co_max, co_min, co_reduce, and co_sum. Index: gcc/fortran/intrinsic.c =================================================================== --- gcc/fortran/intrinsic.c (revision 274827) +++ gcc/fortran/intrinsic.c (working copy) @@ -3691,7 +3691,7 @@ add_subroutines (void) a, BT_REAL, dr, REQUIRED, INTENT_INOUT, "source_image", BT_INTEGER, di, REQUIRED, INTENT_IN, stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT, - errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT); + errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT); add_sym_4s ("co_max", GFC_ISYM_CO_MAX, CLASS_IMPURE, BT_UNKNOWN, 0, GFC_STD_F2018, @@ -3699,7 +3699,7 @@ add_subroutines (void) a, BT_REAL, dr, REQUIRED, INTENT_INOUT, result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN, stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT, - errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT); + errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT); add_sym_4s ("co_min", GFC_ISYM_CO_MIN, CLASS_IMPURE, BT_UNKNOWN, 0, GFC_STD_F2018, @@ -3707,7 +3707,7 @@ add_subroutines (void) a, BT_REAL, dr, REQUIRED, INTENT_INOUT, result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN, stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT, - errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT); + errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT); add_sym_4s ("co_sum", GFC_ISYM_CO_SUM, CLASS_IMPURE, BT_UNKNOWN, 0, GFC_STD_F2018, @@ -3715,7 +3715,7 @@ add_subroutines (void) a, BT_REAL, dr, REQUIRED, INTENT_INOUT, result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN, stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT, - errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT); + errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT); add_sym_5s ("co_reduce", GFC_ISYM_CO_REDUCE, CLASS_IMPURE, BT_UNKNOWN, 0, GFC_STD_F2018, @@ -3724,7 +3724,7 @@ add_subroutines (void) "operator", BT_INTEGER, di, REQUIRED, INTENT_IN, result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN, stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT, - errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT); + errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT); /* The following subroutine is internally used for coarray libray functions.