From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10898 invoked by alias); 4 May 2010 23:08:59 -0000 Received: (qmail 10533 invoked by uid 48); 4 May 2010 23:08:46 -0000 Date: Tue, 04 May 2010 23:08:00 -0000 Message-ID: <20100504230846.10532.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/43829] Scalarization of reductions In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mikael at gcc dot gnu dot org" 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-05/txt/msg00385.txt.bz2 ------- Comment #8 from mikael at gcc dot gnu dot org 2010-05-04 23:08 ------- Created an attachment (id=20558) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20558&action=view) draft patch This uses the scalarizer to inline. The gfc_loopinfo is modified twice, first after walking args for passing through the scalarizer with the same shape as other arrays, and then before the expression evaluation (it is restored). There is still a problem with vector subscript but other tests should work fine. And there are probably regressions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43829