This is the mail archive of the gcc-bugs@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]

Re: static data member problem


>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:

 > Jason Merrill <jason@cygnus.com> writes:
 >>>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:

 >>> I believe it is the same problem that affects platforms that lack
 >>> ELF weak-symbols: static data members of template classes have to
 >>> be explicitly instantiated on them :-(

 >> Yes, but it's not a bug.  Them's the facts of life on such targets, unless
 >> you have a clever idea...

 > I'm not object-file expert (I'm not even a beginner :-), but, since we 
 > have collect2 on all platforms (don't we?), couldn't we arrange that
 > g++ writes some notes in the object files that collect2 can use to
 > instantiate the missing symbols at link time?

That's called -frepo.  We could put the annotations in the object files,
but it would be more work.

Jason


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