[Bug fortran/24524] Fortran dependency checking should reverse loops

Paul Richard Thomas paul.richard.thomas@gmail.com
Fri Jul 23 14:29:00 GMT 2010


I'll apply the patch to 4.5 when I am back from vacation.

Cheers

Paul

> New Revision: 162462
>        PR fortran/24524
>        * trans-array.c (gfc_init_loopinfo): Initialize the reverse
>        field.
>        gfc_trans_scalarized_loop_end: If reverse set in dimension n,
>        reverse the scalarization loop.
>        gfc_conv_resolve_dependencies: Pass the reverse field of the
>        loopinfo to gfc_dep_resolver.
>        trans-expr.c (gfc_trans_assignment_1): Enable loop reversal for
>        assignment by resetting loop.reverse.
>        gfortran.h : Add the gfc_reverse enum.
>        trans.h : Add the reverse field to gfc_loopinfo.
>        dependency.c (gfc_check_dependency): Pass null to the new arg
>        of gfc_dep_resolver.
>        (gfc_check_section_vs_section): Check for reverse dependencies.
>        (gfc_dep_resolver): Add reverse argument and deal with the loop
>        reversal logic.
>        dependency.h : Modify prototype for gfc_dep_resolver to include
>        gfc_reverse *.



More information about the Gcc-patches mailing list