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]

libjava/defineclass.cc won't build on Solaris/sparc


The problem appears to be that INTERPRETER is not defined, so the
declaration of the global variable `character' is omitted, but there
are references to this variable outside the #ifdef INTERPRETER.

I'm not sure whether it would be better to move the functions that
reference character into the ifdef, or to move the declaration (and
the initializer?) out of the ifdef.  Also, it would be advisable to
use attribute((noinline)) to prevent inlining, since now that we have
out-of-order inlining, moving a function after another doesn't prevent
it from being inlined.

Please advise on the best fix for this problem.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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