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 #12 from Paul Thomas <pault at gcc dot gnu.org> 2011-05-26 18:19:40 UTC ---
Author: pault
Date: Thu May 26 18:19:36 2011
New Revision: 174302

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174302
Log:
2011-05-26  Paul Thomas  <pault@gcc.gnu.org>
        Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/48955
    * trans-expr.c (gfc_trans_assignment_1): GFC_REVERSE_NOT_SET
    changed to GFC_ENABLE_REVERSE.
    * trans-array.c (gfc_init_loopinfo): GFC_CANNOT_REVERSE changed
    to GFC_INHIBIT_REVERSE.
    * gfortran.h : Enum gfc_reverse is now GFC_ENABLE_REVERSE,
    GFC_FORWARD_SET, GFC_REVERSE_SET and GFC_INHIBIT_REVERSE.
    * dependency.c (gfc_dep_resolver): Change names for elements of
    gfc_reverse as necessary. Change the logic so that forward
    dependences are remembered as well as backward ones. When both
    have appeared, force a temporary.

2011-05-26  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/48955
    * gfortran.dg/dependency_40.f90 : New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/dependency_40.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/dependency.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


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