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: gcj, shared libraries, and -Bsymbolic


Jakub Jelinek writes:
 > 
 > and at least in my understanding ODR should guarantee there is just
 > one foo()::i variable in the whole program.

And Java guarantees exactly the opposite!  Well, as long as two
identically named classes are loaded by different class loaders, each
has its own copy of static data.  Really, we can't win: it would be
sufficient to say that if you want to link C++ code you should use the
"g++" command, and if you want to link Java code you should use the
"gcj" command, at least until the new gcj ABI is well and truly
finished.

Andrew.


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