aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch3.adb
diff options
context:
space:
mode:
authorPatrick Bernardi <bernardi@adacore.com>2023-11-29 07:14:03 -0500
committerMarc Poulhiès <poulhies@adacore.com>2023-12-19 15:27:49 +0100
commit3e137ec2ef7cbfb9c7129a0e4feb416ac2e960a0 (patch)
tree61ff48a136ab6bb964bea01bf6e8dec4ae452e17 /gcc/ada/sem_ch3.adb
parente691cda5198619359003d6d30b2e0e6fc1dae3e4 (diff)
downloadgcc-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/ada/sem_ch3.adb')
0 files changed, 0 insertions, 0 deletions