With the introduction of Jorvik support into the light-tasking runtime comes
the requirement to detect voliations of runtime restrictions (for example
Max_Entry_Queue_Length) where previously they could be hard coded in the
runtime. This means we now need the binder to populate
System.System.Restrictions.Run_Time_Restrictions when the standard library
is suppressed.
gcc/ada/
* bindgen.adb (Gen_Adainit): Generate restrictions when standard
library is suppressed.
(Gen_Output_File_Ada): Ditto.
(Gen_Restrictions): Ditto.
WBI (" null;");
end if;
+ Gen_Restrictions;
+
-- Generate the default-sized secondary stack pool if the secondary
-- stack is used by the program.
-- Generate with of System.Restrictions to initialize
-- Run_Time_Restrictions.
- if System_Restrictions_Used
- and not Suppress_Standard_Library_On_Target
- then
+ if System_Restrictions_Used then
WBI ("");
WBI ("with System.Restrictions;");
end if;
Count : Integer;
begin
- if Suppress_Standard_Library_On_Target
- or not System_Restrictions_Used
- then
+ if not System_Restrictions_Used then
return;
end if;