switch.adb (Bad_Switch): New procedure
authorVincent Celier <celier@adacore.com>
Tue, 15 Nov 2005 14:04:56 +0000 (15:04 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 15 Nov 2005 14:04:56 +0000 (15:04 +0100)
commitd4deddd7e92a3b559af36a8f832460ff00cc19fc
tree91a514cf2a4b28fae991ff1a1824a9d2f353fdc3
parent49c041e306a21fdf9d38d8d2b432d3573450693c
switch.adb (Bad_Switch): New procedure

2005-11-14  Vincent Celier  <celier@adacore.com>

* switch.adb (Bad_Switch): New procedure
(Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
message when in error.

* switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
Too_Many_Output_Files): Remove declarations, no longer used.
(Scan_Nat): New parameter Switch
(Scan_Pos): Ditto
(Bad_Switch): New procedure

* switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
to Osint.Fail. Do not handle any exception.

From-SVN: r107011
gcc/ada/switch-b.adb
gcc/ada/switch.adb
gcc/ada/switch.ads