From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23581 invoked by alias); 4 Jul 2010 10:49:07 -0000 Received: (qmail 23513 invoked by uid 48); 4 Jul 2010 10:48:54 -0000 Date: Sun, 04 Jul 2010 10:49:00 -0000 Message-ID: <20100704104854.23512.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/44773] [4.6 Regression] Unnecessary temporaries increase the runtime for channel.f90 by ~70% In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg00364.txt.bz2 ------- Comment #8 from dominiq at lps dot ens dot fr 2010-07-04 10:48 ------- > Note: The function "ddx" is not declared as PURE - > and also cannot simply marked as pure as it host-associates the variables "I" > and "J" - thus a simple check for no host association would not work. There is no temporaries if ddx and ddy are declared pure (after adding intent(in) for array, and replacing I and J by say nI and nJ). So at least this works, require to change the code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44773