diff options
author | Patrick Bernardi <bernardi@adacore.com> | 2023-11-29 07:14:03 -0500 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-12-19 15:27:49 +0100 |
commit | 3e137ec2ef7cbfb9c7129a0e4feb416ac2e960a0 (patch) | |
tree | 61ff48a136ab6bb964bea01bf6e8dec4ae452e17 /gcc/btfout.cc | |
parent | e691cda5198619359003d6d30b2e0e6fc1dae3e4 (diff) | |
download | gcc-3e137ec2ef7cbfb9c7129a0e4feb416ac2e960a0.zip gcc-3e137ec2ef7cbfb9c7129a0e4feb416ac2e960a0.tar.gz gcc-3e137ec2ef7cbfb9c7129a0e4feb416ac2e960a0.tar.bz2 |
ada: gnatbind: Do not generate Ada.Command_Line references when not used
It was previously assumed that configurable runtimes could not return exit
statuses, however this assumption no longer holds. Instead, only import
the required symbols from Ada.Command_Line's support packages if
Ada.Command_Line is in the closure of the partition when a configurable
runtime is used.
gcc/ada/
* bindgen.adb (Command_Line_Used): New object.
(Gen_Main): Only generate references to symbols used by
Ada.Command_Line if the package is used by the partition.
(Gen_Output_File_Ada): Ditto.
(Resolve_Binder_Options): Check if Ada.Command_Line is in the
closure of the partition.
Diffstat (limited to 'gcc/btfout.cc')
0 files changed, 0 insertions, 0 deletions