From 533d5a2d6c68cd9b301766f4398ed000d39ab7be Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 27 Oct 2014 11:42:01 +0000 Subject: * gcc-interface/utils.c (create_subprog_decl): Adjust condition. From-SVN: r216733 --- gcc/ada/gcc-interface/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ada/gcc-interface/utils.c') diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index ef1798e..e823a35 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -3021,7 +3021,7 @@ create_subprog_decl (tree subprog_name, tree asm_name, tree subprog_type, function in the current unit since it is private to the other unit. We could inline the nested function as well but it's probably better to err on the side of too little inlining. */ - if (inline_status != is_enabled + if ((inline_status == is_suppressed || inline_status == is_disabled) && !public_flag && current_function_decl && DECL_DECLARED_INLINE_P (current_function_decl) -- cgit v1.1