diff options
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 0131952..22298a0 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -981,6 +981,11 @@ inlinable_function_p (fn, id, nolimit) DECL_INLINE set. */ 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 function to be of MAX_INLINE_INSNS_SINGLE size. Make special allowance for extern inline functions, though. */ |