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]
Other format: [Raw text]

Re: Disable RTL inliner for Java


Jason Merrill wrote:

"Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:



This version of the patch allows the user to specify -finline-functions in
case they really want to use inlining.

That seems wrong; perhaps you want -finline? -finline-functions means
"treat all functions as inline candidates".

-finline means "pay attention to the inline keyword", ie consider functions marked DECL_INLINE for inlining. Java has no "inline" keyword, so all functions (or at least the local, non-virtual ones) are inline candidates. flag_inline_functions is the correct flag to set to get the inliner to do its stuff.

I guess we could make both flags work, but I don't really want to encourage use of the broken inliner, just make it available for the few cases where it helps. This is just a stop-gap until we get tree-level inlining for Java.

regards

Bryce.




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