This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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) ?


Kind regards,

--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Who's working on GNU Fortran: http://gcc.gnu.org/ml/gcc/2007-01/msg00059.html



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]