This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: GCC 4.6.0 Status Report (2011-01-26)
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Wed, 9 Feb 2011 06:41:36 +0100
- Subject: Re: GCC 4.6.0 Status Report (2011-01-26)
- References: <4D402676.1030209@net-b.de>
Dear Tobias,
> 44945 ?[4.6] -fwhole-file DECL issue (wrong-code)
> If the MODULE is in a different file but the module is USEd multiple times,
> not only one but multiple decls are generated, which is wrong.
> Quick solution 1: Make sure that a gsym is generated in trans*.c for the
> first USEd symbol, which is then reused to get a common backend decl.
> Solution 2: Save the information already early and thus prevent reading a
> module file multiple times.
> Solution 1 should be considered for 4.6 as Solution 2 is more complicated
> and invasive.
Are you working on this? I have studied the problem over the last day
or so and know when, how and where to intervene in order to implement
solution 1. I would be happy to give it a shot.
Cheers
Paul