Commit 0bb7378d by Andrew Haley Committed by Andrew Haley

tree-inline.c (inlinable_function_p): Disable inlining for synchronized methods.

2003-04-10  Andrew Haley  <aph@redhat.com>

        * tree-inline.c (inlinable_function_p): Disable inlining for
        synchronized methods.

From-SVN: r65425
parent 009ed910
2003-04-10 Andrew Haley <aph@redhat.com>
* tree-inline.c (inlinable_function_p): Disable inlining for
synchronized methods.
2003-04-09 Steven Bosscher <steven@gcc.gnu.org> 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
* c-common.h (lang_statement_code_p): Remove declaration. * c-common.h (lang_statement_code_p): Remove declaration.
......
...@@ -981,6 +981,11 @@ inlinable_function_p (fn, id, nolimit) ...@@ -981,6 +981,11 @@ inlinable_function_p (fn, id, nolimit)
DECL_INLINE set. */ DECL_INLINE set. */
else if (! DECL_INLINE (fn) && !nolimit) else if (! DECL_INLINE (fn) && !nolimit)
; ;
#ifdef INLINER_FOR_JAVA
/* Synchronized methods can't be inlined. This is a bug. */
else if (METHOD_SYNCHRONIZED (fn))
;
#endif /* INLINER_FOR_JAVA */
/* We can't inline functions that are too big. Only allow a single /* We can't inline functions that are too big. Only allow a single
function to be of MAX_INLINE_INSNS_SINGLE size. Make special function to be of MAX_INLINE_INSNS_SINGLE size. Make special
allowance for extern inline functions, though. */ allowance for extern inline functions, though. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment