From 13a6dfe3a1268265006628e58ec94d7d4222328d Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 11 Dec 2018 11:08:45 +0000 Subject: [Ada] Almost always inline init. procedure of small and simple records 2018-12-11 Eric Botcazou gcc/ada/ * fe.h (Debug_Generated_Code): Declare. * gcc-interface/gigi.h (enum inline_status_t): Rename is_disabled to is_default, is_enabled to is_requested and add is_prescribed. * gcc-interface/decl.c (inline_status_for_subprog): New function. (gnat_to_gnu_entity) : Use it to get the inlining status of the subprogram. * gcc-interface/trans.c (gigi): Adjust to above renaming. (build_raise_check): Likewise. (Compilation_Unit_to_gnu): Likewise. (gnat_to_gnu): Likewise. * gcc-interface/utils.c (create_subprog_decl): Likewise. Deal with is_prescribed status by setting DECL_DISREGARD_INLINE_LIMITS. Do not set the DECL_NO_INLINE_WARNING_P flag if Debug_Generated_Code is true. From-SVN: r266976 --- gcc/ada/fe.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ada/fe.h') diff --git a/gcc/ada/fe.h b/gcc/ada/fe.h index d4c4265..c85d69c 100644 --- a/gcc/ada/fe.h +++ b/gcc/ada/fe.h @@ -185,6 +185,7 @@ extern Boolean In_Same_Source_Unit (Node_Id, Node_Id); /* opt: */ #define Back_End_Inlining opt__back_end_inlining +#define Debug_Generated_Code opt__debug_generated_code #define Exception_Extra_Info opt__exception_extra_info #define Exception_Locations_Suppressed opt__exception_locations_suppressed #define Exception_Mechanism opt__exception_mechanism @@ -200,6 +201,7 @@ typedef enum { } Exception_Mechanism_Type; extern Boolean Back_End_Inlining; +extern Boolean Debug_Generated_Code; extern Boolean Exception_Extra_Info; extern Boolean Exception_Locations_Suppressed; extern Exception_Mechanism_Type Exception_Mechanism; -- cgit v1.1