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: Patch to enable libgcj.dll for MinGW


TJ Laurenzo writes:
 > > even though an inline body is provided.  If the C++ compiler can prove
 > > that an object is an instance of a and not one of its subclasses, it
 > > can inline the body.  If it can't prove that, it won't do the
 > > inlining.
 > Thanks for the correction.  So, for platforms that support it, the
 > optimization is indeed  semantically correct.

Right.

 > Can we decide what to do with it?  I am still in favor of removing
 > the code entirely, but if the decision is to go with a
 > "--disable-inline" option, I will code that up and submit the
 > patch.

I'd rather not have a new option.  It makes far more sense to disable
the optimization in a target-dependent way -- it's probably just as
simple as

#ifdef SUPPORTS_ONE_ONLY

I think -- but I'm not totally sure -- that this is the right ifdef.

Andrew.


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