This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: 3.0.1 PATCH: Support JNI_OnLoad on systems without weak definitions
Rainer Orth writes:
> Tom Tromey writes:
>
> > Rainer> Mon Jul 23 13:50:40 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
> > Rainer> * gnu/gcj/runtime/natFirstThread.cc (_JNI_OnLoad): New function.
> > Rainer> (JNI_OnLoad): Use it.
> > Rainer> (gnu::gcj::runtime::FirstThread::run): Check for _JNI_OnLoad, not
> > Rainer> NULL.
> >
> > I couldn't find any docs on `#pragma weak foo = bar'.
>
> It's the #pragma weak equivalent of
>
> void foo () __attribute__ ((weak, alias ("bar"));
If there's an equivalent attribute, why use a pragma? Pragmas are
depracated in gnu code.
Andrew.