[Ada] Better error message from GNATprove on illegal switch
authorYannick Moy <moy@adacore.com>
Tue, 11 Dec 2018 11:10:07 +0000 (11:10 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 11 Dec 2018 11:10:07 +0000 (11:10 +0000)
commit5fc26697366abd160c4e755b6fe25c778ac97784
tree1af5b93a7d1bc3ccf9cc3fd5f8d32f5ba45cafe1
parente64ac63149a6ec0ee9403079eea7df857ff59587
[Ada] Better error message from GNATprove on illegal switch

When a compilation switch is wrongly passed to GNATprove without the
leading hyphen, this patch issues a clear error message instead of the
obscure 'usage' message previously displayed.

There is no impact on compilation.

2018-12-11  Yannick Moy  <moy@adacore.com>

gcc/ada/

* gnat1drv.adb (Gnat1drv): Issue specific error message in
GNATprove mode when multiple file names on the command line.
* osint.adb, osint.ads (Dump_Command_Line_Source_File_Names):
New procedure to print file names on the command line.

From-SVN: r266989
gcc/ada/ChangeLog
gcc/ada/gnat1drv.adb
gcc/ada/osint.adb
gcc/ada/osint.ads