From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) by sourceware.org (Postfix) with ESMTPS id 5C4073858CDB for ; Wed, 24 May 2023 19:48:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C4073858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orange.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=orange.fr Received: from [192.168.1.16] ([86.215.161.51]) by smtp.orange.fr with ESMTPA id 1uT8qh8AfstS91uT8qHkai; Wed, 24 May 2023 21:48:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1684957703; bh=2sg0u2OwKsvvWAt4qn5SC9skicou3VAdLilq6hrrI0c=; h=Date:Subject:To:References:From:In-Reply-To; b=WjYWJFpZLnXEn6i/IrlTaB0BUYmEunVIgMvpapV5HCJJ2nDmdTdMTyVgrGb52jz7a JyEKgiDOd+k1/7DnQTFATV3ofXnsMu+18C96klzqItIyY0NTY18jzfFOTRlqGJHrHQ raRw3GwoDh+mVAatTBUCZADm2VTib3sXUrcaYAjnk5weJR6FJZ4Jh7N60xiq23LVDb NDm/dQF6nMcNNHrw6nu/kFxZOIZ9U2RsJb21oDL2Ft/w8IakVYVi9tAN3rUpnHrrO2 fch/ilOhrOPs2g1udL5kafEgf4qgLfKKbKxkuSCQumrZ4fLDp5FJabDw9oviZ79PSG ekIZaZGt2U6tw== X-ME-Helo: [192.168.1.16] X-ME-Auth: bW9yaW4tbWlrYWVsQG9yYW5nZS5mcg== X-ME-Date: Wed, 24 May 2023 21:48:23 +0200 X-ME-IP: 86.215.161.51 Message-ID: Date: Wed, 24 May 2023 21:48:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] Fortran: checking and simplification of RESHAPE intrinsic [PR103794] Content-Language: fr To: Harald Anlauf , fortran , gcc-patches References: From: Mikael Morin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,JMQ_SPF_NEUTRAL,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Le 21/05/2023 à 22:48, Harald Anlauf via Fortran a écrit : > Dear all, > > checking and simplification of the RESHAPE intrinsic could fail in > various ways for sufficiently complicated arguments, like array > constructors. Debugging revealed that in these cases we determined > that the array arguments were constant but we did not properly > simplify and expand the constructors. > > A possible solution is the extend the test for constant arrays - > which already does an expansion for initialization expressions - > to also perform an expansion for small constructors in the > non-initialization case. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > OK, thanks.