summaryrefslogtreecommitdiff
path: root/translate/ghdldrv/ghdldrv.adb
diff options
context:
space:
mode:
authorgingold2005-10-16 07:56:34 +0000
committergingold2005-10-16 07:56:34 +0000
commitd98d41a7fcc178a5cedb155cabb7cde85b014f64 (patch)
tree36c03bb6cf2f6dc838a31f6f94d6b00b77c7c5f7 /translate/ghdldrv/ghdldrv.adb
parent70cc586c068c297bdd1fbb0285473246f8812655 (diff)
downloadghdl-d98d41a7fcc178a5cedb155cabb7cde85b014f64.tar.gz
ghdl-d98d41a7fcc178a5cedb155cabb7cde85b014f64.tar.bz2
ghdl-d98d41a7fcc178a5cedb155cabb7cde85b014f64.zip
updated for ghdl-0.20
Diffstat (limited to 'translate/ghdldrv/ghdldrv.adb')
-rw-r--r--translate/ghdldrv/ghdldrv.adb14
1 files changed, 8 insertions, 6 deletions
diff --git a/translate/ghdldrv/ghdldrv.adb b/translate/ghdldrv/ghdldrv.adb
index d863f61..6612fb3 100644
--- a/translate/ghdldrv/ghdldrv.adb
+++ b/translate/ghdldrv/ghdldrv.adb
@@ -637,12 +637,6 @@ package body Ghdldrv is
Add_Argument (Compiler_Args, Str);
Add_Argument (Linker_Args, Str);
Res := Option_Ok;
- elsif Option'Length >= 2
- and then (Option (2) = 'O' or Option (2) = 'f')
- then
- -- Optimization option.
- Add_Argument (Compiler_Args, new String'(Option));
- Res := Option_Ok;
elsif Option = "-Q" then
Flag_Not_Quiet := True;
Res := Option_Ok;
@@ -653,6 +647,14 @@ package body Ghdldrv is
elsif Flags.Parse_Option (Option) then
Add_Argument (Compiler_Args, new String'(Option));
Res := Option_Ok;
+ elsif Option'Length >= 2
+ and then (Option (2) = 'O' or Option (2) = 'f')
+ then
+ -- Optimization option.
+ -- This is put after Flags.Parse_Option, since it may catch -fxxx
+ -- options.
+ Add_Argument (Compiler_Args, new String'(Option));
+ Res := Option_Ok;
else
Decode_Option (Command_Lib (Cmd), Option, Arg, Res);
end if;