[Patch, fortran] PR32103 - Module with equivalence draws "unsatisfied reference"

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Jun 14 20:08:00 GMT 2007


On Thu, Jun 14, 2007 at 07:53:37PM +0200, Toon Moene wrote:
> Paul Richard Thomas wrote:
> 
> >This problem came about because module equivelance groups with one or
> >more unused members were cleared.  This being so, the remaining
> >members referenced variables in the module, rather than members of a
> >union representing the equivalence.  Even if that were not the case,
> >the missing, unused members carry offset information that is essential
> >to obtain the correct alignment.
> >
> >The fix detects unused equivalence members, gives them a symtree with
> >a "unique name" that hides the symbol.  Whilst completely unused
> >equivalence groups are now cleared, the hidden symbols remain.  I was
> >unable to find a convenient, siple way of clearing the hidden symbols
> >and so decided to ignore them, since they get cleared up at the end of
> >compilation.
> 
> Do you (Paul) or we (the Fortran group) think this patch is worthwhile 
> to port back to the 4.2 branch, in spite of the fact that it isn't a 
> regression (it has always been wrong) ?
> 

(IMHO) If this is not a regression, then it should not be backported.
Of course, I'm only one voice in the choir.

-- 
Steve



More information about the Gcc-patches mailing list