aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/doc
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2022-07-18 07:43:54 +0000
committerMarc Poulhiès <poulhies@adacore.com>2022-09-05 09:21:01 +0200
commit72c5ce77a028e57048c8666a7b782e3b921ee28c (patch)
tree82113a85dabbb10dac79065686ceed7d2eda1f6d /gcc/ada/doc
parent2322afe68dcee22842e6feb60aed262c584ec48a (diff)
downloadgcc-72c5ce77a028e57048c8666a7b782e3b921ee28c.zip
gcc-72c5ce77a028e57048c8666a7b782e3b921ee28c.tar.gz
gcc-72c5ce77a028e57048c8666a7b782e3b921ee28c.tar.bz2
[Ada] New gnatbind switch -k
This switch can be used to disable the effect of -F when using -n explicitly or implicitly. gcc/ada/ * bindgen.adb (Gen_Elab_Calls): Check for Check_Elaboration_Flags. * bindusg.adb (Display): Add -k. * opt.ads (Check_Elaboration_Flags): New. * switch-b.adb (Scan_Binder_Switches): Add processing of -k. * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Add documentation for -k and -K. * gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc/ada/doc')
-rw-r--r--gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
index 5442d55..37b6e95 100644
--- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
+++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
@@ -6534,6 +6534,22 @@ be presented in subsequent sections.
ALI file named in the ``gnatbind`` command line.
+ .. index:: -k (gnatbind)
+
+:switch:`-k`
+ Disable checking of elaboration flags. When using :switch:`-n`
+ either explicitly or implicitly, :switch:`-F` is also implied,
+ unless :switch:`-k` is used. This switch should be used with care
+ and you should ensure manually that elaboration routines are not called
+ twice unintentionally.
+
+
+ .. index:: -K (gnatbind)
+
+:switch:`-K`
+ Give list of linker options specified for link.
+
+
.. index:: -l (gnatbind)
:switch:`-l`