diff options
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index c035fe0..2b33621 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1905,14 +1905,12 @@ java_mark_decl_local (tree decl) { DECL_EXTERNAL (decl) = 0; -#ifdef ENABLE_CHECKING /* Double check that we didn't pass the function to the callgraph early. */ - if (TREE_CODE (decl) == FUNCTION_DECL) + if (flag_checking && TREE_CODE (decl) == FUNCTION_DECL) { struct cgraph_node *node = cgraph_node::get (decl); gcc_assert (!node || !node->definition); } -#endif gcc_assert (!DECL_RTL_SET_P (decl)); } |