diff options
Diffstat (limited to 'gcc/ada/switch-c.adb')
-rw-r--r-- | gcc/ada/switch-c.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb index 1e94ade..10f5f77 100644 --- a/gcc/ada/switch-c.adb +++ b/gcc/ada/switch-c.adb @@ -1581,8 +1581,10 @@ package body Switch.C is elsif Switch_Chars (Ptr .. Ptr + 3) = "2012" then Ada_Version := Ada_2012; - elsif Switch_Chars (Ptr .. Ptr + 3) = "2020" then - Ada_Version := Ada_2020; + elsif Switch_Chars (Ptr .. Ptr + 3) = "2020" + or else Switch_Chars (Ptr .. Ptr + 3) = "2022" + then + Ada_Version := Ada_2022; else Bad_Switch ("-gnat" & Switch_Chars (Ptr .. Ptr + 3)); |