[Ada] Add a gnatbind option to generate C code
authorArnaud Charlet <charlet@adacore.com>
Wed, 3 Jul 2019 08:14:00 +0000 (08:14 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 3 Jul 2019 08:14:00 +0000 (08:14 +0000)
commit97edd4267e6fef2da066feafc39c107f2687ee37
treec4db6474b9676fdbe1cf19491771c2c04c6b4a64
parent81c10c3f91cb42ecf1b32de800f09282bed31553
[Ada] Add a gnatbind option to generate C code

2019-07-03  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* bindgen.adb (Gen_Main): Disable generation of reference to
Ada_Main_Program_Name for CCG.
* bindusg.adb (Display): Add -G to the command-line usage for
gnatbind.
* opt.ads (Generate_C_Code): Update comment.
* switch-b.adb (Scan_Binder_Switches): Add handling for -G.

From-SVN: r272965
gcc/ada/ChangeLog
gcc/ada/bindgen.adb
gcc/ada/bindusg.adb
gcc/ada/opt.ads
gcc/ada/switch-b.adb