This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [FORTRAN PATCH] Avoid another useless NON_LVALUE_EXPR
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 4 Jan 2007 21:37:30 -0800
- Subject: Re: [FORTRAN PATCH] Avoid another useless NON_LVALUE_EXPR
- References: <2077.68.35.10.103.1167954337.squirrel@mail.eyesopen.com>
On Thu, Jan 04, 2007 at 04:45:37PM -0700, Roger Sayle wrote:
> Another trivial tweak to avoid fold-const.c constructing a NON_LVALUE_EXPR
> caused by the gfortran front-end folding a multiplication by one. I'm
> actually fairly close to deprecating GCC's NON_LVALUE_EXPR tree code by
> increasing the C front-end's use of "struct c_expr", but in the meantime
> this makes gfortran's -fdump-tree-original output slightly more readable.
>
> Tested on x86_64-unknown-linux-gnu with a full "make bootstrap", including
> gfortran, and regression tested with a top-level "make -k check" with no
> new failures.
>
> Ok for mainline?
>
> 2007-01-04 Roger Sayle <roger@eyesopen.com>
>
> * trans-array.c (gfc_conv_loop_setup): Test whether the loop
> stride is one, to avoid fold_build2 introducing a useless
> NON_LVALUE_EXPR node.
>
OK.
--
Steve