diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-06-13 12:25:01 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-06-13 16:47:59 +0200 |
commit | e0ca8bf0b0d8049c7e9f7fe53f7ed942fac61453 (patch) | |
tree | b4477194e58e9ca5b0c296caa24da39e5a2e845a /src/options.adb | |
parent | 8eb418a695000718920c2ef5294c185a2ef40cca (diff) | |
download | ghdl-e0ca8bf0b0d8049c7e9f7fe53f7ed942fac61453.tar.gz ghdl-e0ca8bf0b0d8049c7e9f7fe53f7ed942fac61453.tar.bz2 ghdl-e0ca8bf0b0d8049c7e9f7fe53f7ed942fac61453.zip |
vhdl: --std93c is now an alias for --std=93 -frelaxed
This simplifies the definition of --std=93c
Diffstat (limited to 'src/options.adb')
-rw-r--r-- | src/options.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/options.adb b/src/options.adb index a68f949a4..bf97e4533 100644 --- a/src/options.adb +++ b/src/options.adb @@ -89,6 +89,8 @@ package body Options is pragma Assert (Opt'First = 1); begin if Opt'Last > 5 and then Opt (1 .. 6) = "--std=" then + Flag_Relaxed_Rules := False; + Flag_Relaxed_Files87 := False; if Opt'Length = 8 then if Opt (7 .. 8) = "87" then Vhdl_Std := Vhdl_87; @@ -105,7 +107,9 @@ package body Options is return Option_Err; end if; elsif Opt'Length = 9 and then Opt (7 .. 9) = "93c" then - Vhdl_Std := Vhdl_93c; + Vhdl_Std := Vhdl_93; + Flag_Relaxed_Rules := True; + Flag_Relaxed_Files87 := True; else Error_Msg_Option ("unknown language standard"); return Option_Err; |