------- Comment #23 from mark at codesourcery dot com  2008-11-04 05:51 -------
Subject: Re:  [4.4 Regression] libgcj linkage failure: Incorrect
 library ABI version detected

aph at gcc dot gnu dot org wrote:

> It's quite likely that the Java FE should not be calling
> cgraph_build_static_cdtor(), but when that call is removed some test
> cases fail.  Rather than arguing what priority this should be, all we
> need is someone who actually understands cgraph_build_static_cdtor(),
> and can tell me when it should be called.

You shouldn't call that function.  Instead, you should set
DECL_STATIC_{CONSTRUCTOR,DESTRUCTOR}.  Then, cgraph will do the right
thing.  If necessary, you can also call decl_init_priority_insert.


-- 


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

Reply via email to