This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/22304] gfortran silently changes values in equilvanence'd variables
- From: "albertm at uphs dot upenn dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2005 17:26:14 -0000
- Subject: [Bug fortran/22304] gfortran silently changes values in equilvanence'd variables
- References: <20050705050725.22304.albertm@uphs.upenn.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From albertm at uphs dot upenn dot edu 2005-07-06 17:26 -------
(In reply to comment #3)
One more bit of speculation. I still think there is an issue with
marking "->used" in gfc_equiv structures. The following change will
make the test case "work", but since I only vaguely understand the
intention of the code, I wouldn't recommoned its use:
*** trans-common.c 2005-07-06 13:17:28.029531913 -0400
--- trans-common.c.orig 2005-07-05 21:09:38.882901773 -0400
***************
*** 695,701 ****
{
add_condition (n, eq, other);
eq->used = 1;
- other->used = 1; /*FIXME or HELPME, this is mostly a guess*/
found = TRUE;
/* If this symbol is the first in the chain we may find other
matches. Otherwise we can skip to the next equivalence. */
--- 695,700 ----
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22304