2020-06-16 Javier Miranda <miranda@adacore.com>
gcc/ada/
* restrict.adb (Global_No_Tasking): Adding
Targparm.Restrictions_On_Target Fixes regressions with zfp.
with Sinfo; use Sinfo;
with Sinput; use Sinput;
with Stand; use Stand;
+with Targparm; use Targparm;
with Uname; use Uname;
package body Restrict is
function Global_No_Tasking return Boolean is
begin
- return Global_Restriction_No_Tasking;
+ return Global_Restriction_No_Tasking
+ or else Targparm.Restrictions_On_Target.Set (No_Tasking);
end Global_No_Tasking;
-------------------------------