From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26296 invoked by alias); 12 Jul 2010 07:49:53 -0000 Received: (qmail 26277 invoked by uid 22791); 12 Jul 2010 07:49:52 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx01.qsc.de (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Jul 2010 07:49:48 +0000 Received: from [192.168.178.22] (port-92-204-32-196.dynamic.qsc.de [92.204.32.196]) by mx01.qsc.de (Postfix) with ESMTP id C701E3CECA; Mon, 12 Jul 2010 09:49:34 +0200 (CEST) Message-ID: <4C3AC918.5080701@net-b.de> Date: Mon, 12 Jul 2010 07:49:00 -0000 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5 MIME-Version: 1.0 To: Paul Richard Thomas CC: fortran@gcc.gnu.org, gcc-patches Subject: Re: [Patch, fortran] PR4773 - [4.6 Regression] Unnecessary temporaries increase the runtime for channel.f90 by ~70% References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg00941.txt.bz2 On 07/09/2010 05:04 PM, Paul Richard Thomas wrote: > Bootstrapped and regtested on RHEL5.3/i686 - OK for trunk and.....? > I was wondering whether one should add a test case (-Warray-temporaries). OK for the trunk - and for the branches, for which the array-temporary fix has been applied to. Tobias > 2010-07-09 Paul Thomas > > PR fortran/44773 > * trans-expr.c (arrayfunc_assign_needs_temporary): No temporary > if the lhs has never been host associated, as well as not being > use associated, a pointer or a target. > * resolve.c (resolve_variable): Mark variables that are host > associated. > * gfortran.h: Add the host_assoc bit to the symbol_attribute > structure. >