This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48955] [4.6/4.7 Regression] Wrong result for array assignment due to missing temporary


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

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-05-11 19:00:06 UTC ---
Hmm... I wonder if this does the trick?  It fixes the test case,
and passes all regression tests... Paul, what do you think?

Index: dependency.c
===================================================================
--- dependency.c        (Revision 173389)
+++ dependency.c        (Arbeitskopie)
@@ -1822,7 +1822,6 @@ gfc_dep_resolver (gfc_ref *lref, gfc_ref *rref, gf
                  /* Inhibit loop reversal if dependence not compatible.  */
                  if (reverse && reverse[n] != GFC_REVERSE_NOT_SET
                        && this_dep != GFC_DEP_EQUAL
-                       && this_dep != GFC_DEP_BACKWARD
                        && this_dep != GFC_DEP_NODEP)
                    {
                      reverse[n] = GFC_CANNOT_REVERSE;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]