]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove forced inlining of generics for configurable run times
authorViljar Indus <indus@adacore.com>
Mon, 11 May 2026 08:44:11 +0000 (11:44 +0300)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 4 Jun 2026 08:42:17 +0000 (10:42 +0200)
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.

gcc/ada/sem_ch12.adb

index fb0d06e348c69ac17849e486b398f85572f67341..ebdc9ba36706081db93dcef86fa381a573ea346c 100644 (file)
@@ -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