http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49957

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-04 
12:22:47 UTC ---
Author: rguenth
Date: Thu Aug  4 12:22:42 2011
New Revision: 177368

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177368
Log:
2011-08-04  Richard Guenther  <rguent...@suse.de>

    PR fortran/49957
    * trans-array.c (add_to_offset): New function.
    (gfc_conv_array_ref): Build the array index expression in optimally
    associated order.
    (gfc_walk_variable_expr): Adjust for the backward walk.

    * gfortran.dg/vect/O3-pr49957.f: New testcase.

Added:
    trunk/gcc/testsuite/gfortran.dg/vect/O3-pr49957.f
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to