GCC 4.6.0 Status Report (2011-01-26)

Paul Richard Thomas paul.richard.thomas@gmail.com
Wed Feb 9 05:41:00 GMT 2011


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



More information about the Fortran mailing list