This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: RFC: Why are -lsupc++ -lstdc++ needed when linking java programs?


Andrew Haley wrote:

> The problem seems to be that some of the 'C++' files in libgcj require > the C++ runtime (at least for the mipsel-linux target), but it is not > being linked by the gcj driver.

Well, I don't think they require it.  However, it is undeniably being
called!

`__cxa_call_unexpected' isn't called from anywhere in libgcj in i386
Linux, at least not on my system.  So, you need to isolate the place
where it's being called, preferably with assembly language output from
the compiler.

The call to `__cxa_call_unexpected' is generated when
-fenforce-eh-specs is used.  Try building libgcj with -fno-enforce-eh-specs.

Andrew.


The problem was in the compiler backend.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12485

I anticipate that Richard Sandiford will be committing the patch soon.

David Daney.


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