From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12272 invoked by alias); 11 Oct 2006 08:02:33 -0000 Received: (qmail 12007 invoked by alias); 11 Oct 2006 08:02:22 -0000 Date: Wed, 11 Oct 2006 08:02:00 -0000 Message-ID: <20061011080222.12006.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29391] LBOUND(TRANSPOSE(I)) doesn't work In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paulthomas2 at wanadoo dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00872.txt.bz2 List-Id: ------- Comment #8 from paulthomas2 at wanadoo dot fr 2006-10-11 08:02 ------- Subject: Re: LBOUND(TRANSPOSE(I)) doesn't work FX, >I get all intrinsics that work through temporaries working right: > > > Great! >So I only have PRODUCT, SUM, MATMUL, PACK and UNPACK to work on. > > > > I wonder if doing the same in trans-intrinsic.c (gfc_conv_intrinsic_function) might not be the magic bullet? You could write a little function to normalise the bounds of se->expr, putting the code in the se->post, and call it from lines 3198 and 3589. You had better check the performance hit, if any, that results from touching gfc_trans_create_temp_array - run the Polyhedron suite, for example, with and without the patch. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29391