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: More questions about _GLOBAL



Per Bothner <per@bothner.com> writes:
> > The optimization I'm trying to do is this: if none of a class's
> > constructors are reachable, I prune foo.bar.baz.class$ from the
> > output. Unfortunately, the __GLOBAL_foo.bar.baz symbol will call
> > _Jv_RegisterClass(foo.bar.baz.class$), which then SEGV's.

> I think this is easiest handled at compile time, rather than
> link time.  We could add a flag
>    --forname-findable=CLASSX,CLASSY,...
> This tells the compiler to suppress the _Jv_RegisterClass call for
> a class, unless it is one of the ones listed.

Yeah, unfortunately I'm running this on stuff within libgcj.a -- so
people would have to recompile libgcj every time the set of stuff they
need changes. That's also why I can't rely on compiler changes to do
my work -- I have to do everything in the post-compile, pre-link
stage.

  - a


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