From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8715 invoked by alias); 27 Oct 2011 23:29:30 -0000 Received: (qmail 8672 invoked by uid 22791); 27 Oct 2011 23:29:29 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (140.186.70.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Oct 2011 23:29:15 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJZNp-0000f6-V5 for gcc-patches@gcc.gnu.org; Thu, 27 Oct 2011 19:29:14 -0400 Received: from smtp25.services.sfr.fr ([93.17.128.120]:47178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJZNS-0000Zw-Pj; Thu, 27 Oct 2011 19:28:50 -0400 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2512.sfr.fr (SMTP Server) with ESMTP id 86D207000073; Fri, 28 Oct 2011 01:28:46 +0200 (CEST) Received: from gimli.local (145.15.72.86.rev.sfr.net [86.72.15.145]) by msfrf2512.sfr.fr (SMTP Server) with ESMTP id 53FB4700008E; Fri, 28 Oct 2011 01:28:46 +0200 (CEST) X-SFR-UUID: 20111027232846344.53FB4700008E@msfrf2512.sfr.fr Content-Type: multipart/mixed; boundary="===============3167671394374901553==" MIME-Version: 1.0 From: Mikael Morin To: gfortran , GCC patches Message-ID: <20111027232846.18581.39150@gimli.local> In-Reply-To: <20111027232829.18581.89158@gimli.local> References: <20111027232818.18581.901@gimli.local> <20111027232829.18581.89158@gimli.local> Subject: [Patch, fortran] [03/66] inline sum and product: Prepare gfc_trans_preloop_setup Date: Thu, 27 Oct 2011 23:31:00 -0000 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 93.17.128.120 X-IsSubscribed: yes 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: 2011-10/txt/msg02528.txt.bz2 --===============3167671394374901553== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-length: 0 --===============3167671394374901553== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pr43829-3.CL" Content-length: 127 2011-10-19 Mikael Morin * trans-array.c (gfc_trans_preloop_setup): Factor loop index initialization. --===============3167671394374901553== Content-Type: text/x-diff; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pr43829-3.patch" Content-length: 589 diff --git a/trans-array.c b/trans-array.c index 91359e9..e3134f5 100644 --- a/trans-array.c +++ b/trans-array.c @@ -2863,16 +2863,15 @@ gfc_trans_preloop_setup (gfc_loopinfo * loop, int dim, int flag, continue; if (info->ref) - { - ar = &info->ref->u.ar; - i = loop->order[dim + 1]; - } + ar = &info->ref->u.ar; else - { - ar = NULL; - i = dim + 1; - } + ar = NULL; + + i = dim + 1; + /* For the time being, there is no loop reordering. */ + gcc_assert (i == loop->order[i]); + i = loop->order[i]; if (dim == info->dimen - 1) { --===============3167671394374901553==--