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


Andrew Haley writes:

>  > > 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.

Primarily to make the patch as unintrusive as possible: the code used

	#pragma weak foo

before, and it's probably very safe to assume that every platform that
supports this also supports #pragma weak foo = bar.  #pragma weak is used
in several places in GCC, and the deprecation doesn't really hold anymore,
with the introduction of #pragma GCC.

	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]