From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30159 invoked by alias); 12 Feb 2018 21:50:26 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 30139 invoked by uid 89); 12 Feb 2018 21:50:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: cc-smtpout2.netcologne.de Received: from cc-smtpout2.netcologne.de (HELO cc-smtpout2.netcologne.de) (89.1.8.212) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Feb 2018 21:50:24 +0000 Received: from cc-smtpin3.netcologne.de (cc-smtpin3.netcologne.de [89.1.8.203]) by cc-smtpout2.netcologne.de (Postfix) with ESMTP id C96911281D; Mon, 12 Feb 2018 22:50:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin3.netcologne.de (Postfix) with ESMTP id C43E811DDB; Mon, 12 Feb 2018 22:50:21 +0100 (CET) Received: from [78.35.153.101] (helo=cc-smtpin3.netcologne.de) by localhost with ESMTP (eXpurgate 4.1.9) (envelope-from ) id 5a820c1d-02b7-7f0000012729-7f000001ab9c-1 for ; Mon, 12 Feb 2018 22:50:21 +0100 Received: from [192.168.178.20] (xdsl-78-35-153-101.netcologne.de [78.35.153.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin3.netcologne.de (Postfix) with ESMTPSA; Mon, 12 Feb 2018 22:50:16 +0100 (CET) Subject: Re: [patch, libfortran] Use flexible array members for array descriptor To: Jakub Jelinek Cc: Richard Biener , Janne Blomqvist , "fortran@gcc.gnu.org" , gcc-patches References: <633fa818-05fb-a2e8-3ac1-c74a59df3233@netcologne.de> <20180212200952.GH5867@tucnak> From: Thomas Koenig Message-ID: <9f80b935-d344-1cdf-37a6-9006ea0a6c0f@netcologne.de> Date: Mon, 12 Feb 2018 21:50:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180212200952.GH5867@tucnak> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-02/txt/msg00075.txt.bz2 Hi Jakub, > Or if we have some easy way to find out what objects will need local > variables with descriptors (those need the non-flexible array member stuff) > and others (e.g. dummy arguments etc.) where we could use just the flexible > array members. Descriptors are used for passing arguments to procedures, for allocatable variables and for pointers. Pointers and allocatable variables can also be passed to procedures. So, not so easy (unfortunately). Regards Thomas