From: Arnaud Charlet Date: Tue, 19 Jul 2022 14:58:44 +0000 (+0000) Subject: [Ada] Secondary stack and i-c* X-Git-Tag: basepoints/gcc-14~4792 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7449db0bf4a2c920538a7f947ccec2831802ded4;p=thirdparty%2Fgcc.git [Ada] Secondary stack and i-c* Extend the previous changes related to Ada.Tags trigerring a dependency on the secondary stack to various i-c* packages. gcc/ada/ * ali.adb (Scan_ALI): Special case i-c*.ali when setting Sec_Stack_Used. --- diff --git a/gcc/ada/ali.adb b/gcc/ada/ali.adb index bcc8822940eb..3febd4810489 100644 --- a/gcc/ada/ali.adb +++ b/gcc/ada/ali.adb @@ -2079,15 +2079,24 @@ package body ALI is -- Processing for SS elsif C = 'S' then - -- Special case: a-tags.ali by itself should not set + -- Special case: a-tags/i-c* by themselves should not set -- Sec_Stack_Used, only if other code uses the secondary -- stack should we set this flag. This ensures that we do -- not bring the secondary stack unnecessarily when using - -- Ada.Tags and not actually using the secondary stack. + -- one of these packages and not actually using the + -- secondary stack. - if Get_Name_String (F) /= "a-tags.ali" then - Opt.Sec_Stack_Used := True; - end if; + declare + File : constant String := Get_Name_String (F); + begin + if File /= "a-tags.ali" + and then File /= "i-c.ali" + and then File /= "i-cstrin.ali" + and then File /= "i-cpoint.ali" + then + Opt.Sec_Stack_Used := True; + end if; + end; -- Invalid switch starting with S