This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32147] Module file change due to order of writting out changes
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2007 22:15:03 -0000
- Subject: [Bug fortran/32147] Module file change due to order of writting out changes
- References: <bug-32147-14475@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from tobi at gcc dot gnu dot org 2007-10-04 22:15 -------
I thought this would fix it, but this gives internal errors. I'll investigate
further when I have time.
2007-10-04 Tobias Schlüter <tobi@gcc.gnu.org>
PR fortran/32147
* module.c (write_symbol0): Traverse tree in alphabetical order.
diff -r 06395d4340f4 gcc/fortran/module.c
--- a/gcc/fortran/module.c Thu Oct 04 23:16:32 2007 +0200
+++ b/gcc/fortran/module.c Fri Oct 05 00:13:29 2007 +0200
@@ -3918,7 +3918,6 @@ write_symbol0 (gfc_symtree *st)
return;
write_symbol0 (st->left);
- write_symbol0 (st->right);
sym = st->n.sym;
if (sym->module == NULL)
@@ -3940,6 +3939,8 @@ write_symbol0 (gfc_symtree *st)
write_symbol (p->integer, sym);
p->u.wsym.state = WRITTEN;
+
+ write_symbol0 (st->right);
}
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32147