https://gcc.gnu.org/g:dd9ab70700111b5a1c7e7964b672d4ffd3e24463

commit r17-1305-gdd9ab70700111b5a1c7e7964b672d4ffd3e24463
Author: Viljar Indus <[email protected]>
Date:   Mon May 11 11:44:11 2026 +0300

    ada: Remove forced inlining of generics for configurable run times
    
    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.

Diff:
---
 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 fb0d06e348c6..ebdc9ba36706 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

Reply via email to