diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/targparm.adb | 8 | ||||
-rw-r--r-- | gcc/ada/targparm.ads | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ada/targparm.adb b/gcc/ada/targparm.adb index 6e753ea..d470145 100644 --- a/gcc/ada/targparm.adb +++ b/gcc/ada/targparm.adb @@ -660,6 +660,14 @@ package body Targparm is Opt.Task_Dispatching_Policy_Sloc := System_Location; goto Line_Loop_Continue; + -- Allow "pragma Style_Checks (On);" and "pragma Style_Checks (Off);" + -- to make it possible to have long "pragma Restrictions" line. + + elsif Looking_At_Skip ("pragma Style_Checks (On);") or else + Looking_At_Skip ("pragma Style_Checks (Off);") + then + goto Line_Loop_Continue; + -- No other configuration pragmas are permitted elsif Looking_At ("pragma ") then diff --git a/gcc/ada/targparm.ads b/gcc/ada/targparm.ads index 01ee492..2127252 100644 --- a/gcc/ada/targparm.ads +++ b/gcc/ada/targparm.ads @@ -110,6 +110,10 @@ package Targparm is -- If a pragma Profile with a valid profile argument appears, then -- the appropriate restrictions and policy flags are set. + -- pragma Style_Checks is allowed with "On" or "Off" as an argument, in + -- order to make the conditions on pragma Restrictions documented in the + -- next paragraph easier to manage. + -- The only other pragma allowed is a pragma Restrictions that specifies -- a restriction that will be imposed on all units in the partition. Note -- that in this context, only one restriction can be specified in a single |