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

[Bug libgcj/29477] [SJLJ EH] JNI broken with certain libs



------- Comment #5 from mtrudel at gmx dot ch  2007-02-24 09:04 -------
The problem is that the new SJLJ backtrace algorithm depends on the typical
function entry sequence "pushl %ebp; movl %esp, %ebp". But while they're always
in our compiled Java code, they are mostly optimized away in JNI libs.
Microsoft Visual C++ mostly removes them in optimization mode -Og (and -Ox
which includes -Og), GCC seems to sometimes remove them in -O2 -O3 and -Os
mode. I think -fno-omit-frame-pointer keeps them for GCC, but I didn't test it.

I think this won't be fixed and we just wait until DWARF EH is finally
available for mingw. Should be soon since it already exists but has not yet
been approved/committed.


-- 

mtrudel at gmx dot ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[MinGW] JNI broken with     |[SJLJ EH] JNI broken with
                   |certain libs                |certain libs


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


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