------- Comment #9 from pault at gcc dot gnu dot org  2007-04-27 17:27 -------
(In reply to comment #8)
The patch below seems too simple to be true - it fixes the problem, I guess it
will regtest but we will have to see what it does to performance.  If you look
at it, it is potentially rather horrifying; cf 4.2.0

Paul

Index: gcc/fortran/trans-array.c
===================================================================
*** gcc/fortran/trans-array.c   (revision 124192)
--- gcc/fortran/trans-array.c   (working copy)
*************** gfc_conv_resolve_dependencies (gfc_loopi
*** 3000,3006 ****
          lref = dest->expr->ref;
          rref = ss->expr->ref;

!         nDepend = gfc_dep_resolver (lref, rref);
  #if 0
          /* TODO : loop shifting.  */
          if (nDepend == 1)
--- 3000,3006 ----
          lref = dest->expr->ref;
          rref = ss->expr->ref;

!         nDepend |= gfc_dep_resolver (lref, rref);
  #if 0
          /* TODO : loop shifting.  */
          if (nDepend == 1)


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-04-26 20:50:32         |2007-04-27 17:27:20
               date|                            |


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

Reply via email to