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

Re: 3.0.1 PATCH: Support JNI_OnLoad on systems without weak definitions


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"));

> But I think this patch is ok.  Please check it in.

Done, thanks.  On the mainline, the code has moved from natFirstThread.cc
to prims.cc, but the patch applied cleanly.  I haven't bootstrapped on the
mainline, though, since it seems both to be quite fragile and I don't have
time for testing both mainline and branch right now.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


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