public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/48955] [4.6/4.7 Regression] Wrong result for array assignment due to missing temporary
Date: Thu, 26 May 2011 20:57:00 -0000	[thread overview]
Message-ID: <bug-48955-4-vaDw4v5M8J@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48955-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #13 from Paul Thomas <pault at gcc dot gnu.org> 2011-05-26 20:49:11 UTC ---
Author: pault
Date: Thu May 26 20:49:07 2011
New Revision: 174308

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174308
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:
    branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/dependency_40.f90
Modified:
    branches/gcc-4_6-branch/gcc/fortran/ChangeLog
    branches/gcc-4_6-branch/gcc/fortran/dependency.c
    branches/gcc-4_6-branch/gcc/fortran/gfortran.h
    branches/gcc-4_6-branch/gcc/fortran/trans-array.c
    branches/gcc-4_6-branch/gcc/fortran/trans-expr.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


  parent reply	other threads:[~2011-05-26 20:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 20:53 [Bug fortran/48955] New: " burnus at gcc dot gnu.org
2011-05-10 21:28 ` [Bug fortran/48955] " burnus at gcc dot gnu.org
2011-05-11  9:30 ` burnus at gcc dot gnu.org
2011-05-11  9:36 ` pault at gcc dot gnu.org
2011-05-11 10:01 ` jakub at gcc dot gnu.org
2011-05-11 19:28 ` tkoenig at gcc dot gnu.org
2011-05-11 20:17 ` pault at gcc dot gnu.org
2011-05-16  7:44 ` burnus at gcc dot gnu.org
2011-05-16 13:17 ` paul.richard.thomas at gmail dot com
2011-05-16 18:42 ` tkoenig at netcologne dot de
2011-05-21 17:10 ` tkoenig at gcc dot gnu.org
2011-05-22 18:51 ` pault at gcc dot gnu.org
2011-05-23 20:18 ` tkoenig at gcc dot gnu.org
2011-05-24 10:33 ` paul.richard.thomas at gmail dot com
2011-05-26 18:22 ` pault at gcc dot gnu.org
2011-05-26 20:57 ` pault at gcc dot gnu.org [this message]
2011-05-26 21:26 ` pault at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48955-4-vaDw4v5M8J@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).