This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48955] [4.6/4.7 Regression] Wrong result for array assignment due to missing temporary
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 May 2011 19:05:58 +0000
- Subject: [Bug fortran/48955] [4.6/4.7 Regression] Wrong result for array assignment due to missing temporary
- Auto-submitted: auto-generated
- References: <bug-48955-4@http.gcc.gnu.org/bugzilla/>
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;