debug.adb: Eliminate numeric switches for binder/gnatmake
authorRobert Dewar <dewar@adacore.com>
Wed, 15 Feb 2006 09:36:45 +0000 (10:36 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 15 Feb 2006 09:36:45 +0000 (10:36 +0100)
commit61dddae4e72e300597afeff4b081114a25598c5f
tree21c6aed88c4d5ed4dfbc700b0cbb33b914758de6
parent86ac5e79ab137815e463c0b46495551c641e33d8
debug.adb: Eliminate numeric switches for binder/gnatmake

2006-02-13  Robert Dewar  <dewar@adacore.com>
    Vincent Celier  <celier@adacore.com>

* debug.adb: Eliminate numeric switches for binder/gnatmake

* switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
switches for the compiler.
(Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
(Scan_Make_Switches): When failing with an illegal switch, output an
error message with the full switch.
Eliminate numeric switches for binder/gnatmake

* switch.ads, switch.adb (Bad_Switch): New procedure

* switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
Remove 0-9 as debug flag character possibilities
-d is now controlling the primary stack size when its value is a
positive. Also add checks against invalid values, and support for kb,
mb. Ditto for -D switch.

From-SVN: r111053
gcc/ada/debug.adb
gcc/ada/switch-b.adb
gcc/ada/switch-m.adb
gcc/ada/switch.adb
gcc/ada/switch.ads