From: Viljar Indus Date: Mon, 11 May 2026 08:44:11 +0000 (+0300) Subject: ada: Remove forced inlining of generics for configurable run times X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd9ab70700111b5a1c7e7964b672d4ffd3e24463;p=thirdparty%2Fgcc.git 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 --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