From: Viljar Indus <[email protected]>

This section of code date backs to the time when the frontend
was handling pragma Inline_Always. Technically this is no longer needed.

gcc/ada/ChangeLog:

        * sem_ch12.adb (Analyze_Package_Instantiation): Remove
        forced inlining in configurable run times.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/sem_ch12.adb | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb
index fb0d06e348c..ebdc9ba3670 100644
--- a/gcc/ada/sem_ch12.adb
+++ b/gcc/ada/sem_ch12.adb
@@ -5403,16 +5403,6 @@ package body Sem_Ch12 is
                  and then Nkind (Parent (N)) /= N_Compilation_Unit
                then
                   Inline_Now := True;
-
-               --  In configurable_run_time mode we force the inlining of
-               --  predefined subprograms marked Inline_Always, to minimize
-               --  the use of the run-time library.
-
-               elsif In_Predefined_Unit (Gen_Decl)
-                 and then Configurable_Run_Time_Mode
-                 and then Nkind (Parent (N)) /= N_Compilation_Unit
-               then
-                  Inline_Now := True;
                end if;
 
                --  If the current scope is itself an instance within a child
-- 
2.53.0

Reply via email to