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: Who defines _Jv_InitClass()?


On Wed, 9 Jun 2004 17:20:32 +0530, Ranjit Mathew <rmathew@gmail.com> wrote:
> 
> On Wed, 9 Jun 2004 7:41:14 -0400, Joe Kulig <kulandthegang@cox.net> wrote:
> >
> > It is defined as an inline friend function in java/lang/Class.h
> 
> As I said earlier, it should be emitted as
> "java::lang::Class::_Jv_InitClass", not the bare
> "_Jv_InitClass" - I wanted  to know who defines
> the latter.

Sorry Joe - my C++/GCC ignorance shows through!

The "friend" and 'extern "C"' bits *together* seem
to be preventing C++ mangling.

And the "#pragma interface" and "#pragma implementation"
*together* seem to be effecting a backup copy of the
otherwise inlined function to be emitted.

Hmmm...

Now back to bugging Mark Mitchell about this... ;-)

Ranjit.


> > Joe Kulig
> > kulandthegang AT cox DOT net
> >
> > ============================================================
> > From: Ranjit Mathew <rmathew@gmail.com>
> > Date: 2004/06/09 Wed AM 07:20:55 EDT
> > To: java@gcc.gnu.org
> > Subject: Who defines _Jv_InitClass()?
> >
> > Hi,
> >
> >     While working on:
> >
> >   http://gcc.gnu.org/ml/java/2004-06/msg00046.html
> >
> > I realised that I can't seem to find out precisely who
> > defines the implementation of _Jv_InitClass()!
> >
> > The closest match is in java/lang/Class.h, but that
> > method should be emitted as java::lang::_Jv_InitClass().
> >
> > What am I missing?
> >
> > Thanks,
> > Ranjit.
> >
> > --
> > Ranjit Mathew          Email: rmathew AT gmail DOT com
> >
> > Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/
> >
> > ============================================================
> >
> >
>


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