Disable RTL inliner for Java
Mon Jun 10 03:19:00 GMT 2002
Jason Merrill wrote:
>>>>>>"Bryce" == Bryce McKinlay <firstname.lastname@example.org> 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.
More information about the Gcc-patches