This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44978] derived types are resolved more than once
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 10 Aug 2013 14:31:52 +0000
- Subject: [Bug fortran/44978] derived types are resolved more than once
- Auto-submitted: auto-generated
- References: <bug-44978-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44978
--- Comment #12 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 30630
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30630&action=edit
Janus' patch with void functions
(In reply to janus from comment #11)
> IMHO it is probably not worth the hassle. I wouldn't like to do this without
> having a concrete reason for it (and with a clean testsuite I don't see any).
>
The reason is:
the sym->resolved flag is an internal detail that should not be externally
visible; it shouldn't change the return value.
>
> Well, the advantage of my original patch is obviously that it not only
> avoids the double errors, but it also prevents us from doing double the work
> in resolving the symbols, so it might even give a performance improvement
> for large codes, in particular with heavy OOP (not sure if it's anywhere
> close to being significant, though).
All right, the only one solution left that I see is the one making the
functions void. See the attached patch (comments welcome).
I ran the testsuite partially on it and it was clean, but I don't have the time
to finish that right now. It looked as slow as usual by the way. ;-)