bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when needed.
authorArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:22:19 +0000 (12:22 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:22:19 +0000 (12:22 +0200)
commit6644b368bec2f708896c6d668ac2af2c0a7e970b
treef742837ffba123bb1ecf7f36cd8d0c73bcdf183d
parentb51711b5450e44b790b1db376ed4b9768183ca05
bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when needed.

2007-04-20  Arnaud Charlet  <charlet@adacore.com>
    Vincent Celier  <celier@adacore.com>
    Robert Dewar  <dewar@adacore.com>

* bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
needed.
(Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
((destructor)) for adafinal, even when switch -a is used.
Do not issue pragma Linker_Destructor for adafinal when switch -a is
used.
(Gen_Object_Files_Options): Add formatting of Linker Options, when
Output_Linker_Option_List is set. Suppress this formatting when
Zero_Formatting is set.
Add case for CLI_Target.
(System_Restrictions_Used): New flag, used to avoid generating with of
System_Restrictions and initialization of the data unless there is
some use of System.Restrictions in the partition.
(Check_System_Restrictions_Used): New procedure

        * s-stalib.adb: Remove with of System.Restrictions. No longer needed
since we only with this unit in the binder file if it is used elsewhere
in the partition.

From-SVN: r125386
gcc/ada/bindgen.adb
gcc/ada/s-stalib.adb