From 5daed84a544a8e2bd3017ad77975abd9831953b7 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 26 Mar 2011 09:34:40 +0000 Subject: inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without a previous spec declared in... * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without a previous spec declared in the same unit. * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined subprograms at the end of the unit instead of at the beginning. * gcc-interface/utils.c (create_subprog_decl): Check that the entity isn't public for the special handling of non-inline functions nested inside inline external functions. From-SVN: r171551 --- gcc/ada/gcc-interface/utils.c | 1 + 1 file changed, 1 insertion(+) (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 181e22a..2cfd1ce 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -1790,6 +1790,7 @@ create_subprog_decl (tree subprog_name, tree asm_name, We could inline the nested function as well but it's probably better to err on the side of too little inlining. */ if (!inline_flag + && !public_flag && current_function_decl && DECL_DECLARED_INLINE_P (current_function_decl) && DECL_EXTERNAL (current_function_decl)) -- cgit v1.1