aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/bindo.adb
diff options
context:
space:
mode:
authorHristian Kirtchev <kirtchev@adacore.com>2019-07-11 08:02:30 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-07-11 08:02:30 +0000
commit220dc4b2825745db538915298d0c79f2f12ce5e0 (patch)
treee2b01a2e4288ab54e6cb89087a28bd2691dc393f /gcc/ada/bindo.adb
parentd4ba738c67e5579d5a0dff07f20b36f3df9529d5 (diff)
downloadgcc-220dc4b2825745db538915298d0c79f2f12ce5e0.zip
gcc-220dc4b2825745db538915298d0c79f2f12ce5e0.tar.gz
gcc-220dc4b2825745db538915298d0c79f2f12ce5e0.tar.bz2
[Ada] Elaboration order v4.0 and output of dependencies
This patch adds a missing case to the mechanism that outputs the elaboration order dependencies of units. ------------ -- Source -- ------------ -- pack.ads package Pack is procedure Force_Body; end Pack; -- pack.adb package body Pack is procedure Force_Body is null; end Pack; -- main.adb with Pack; procedure Main is begin null; end Main; ---------------------------- -- Compilation and output -- ---------------------------- $ gnatmake -q main.adb -bargs -e ELABORATION ORDER DEPENDENCIES unit "pack (spec)" must be elaborated before unit "main (body)" reason: unit "main (body)" has with clause for unit "pack (spec)" unit "pack (spec)" must be elaborated before unit "pack (body)" reason: spec must be elaborated before body 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com> gcc/ada/ * bindo.adb: Remove the documentation of switch -d_N because it is no longer in use. * bindo-graphs.ads, bindo-graphs.adb (Is_Spec_Before_Body_Edge): New routine. * bindo-writers.adb (Write_Dependency_Edge): Add the missing case of a spec-before-body edge. From-SVN: r273394
Diffstat (limited to 'gcc/ada/bindo.adb')
-rw-r--r--gcc/ada/bindo.adb6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/ada/bindo.adb b/gcc/ada/bindo.adb
index d5830ca..249ce972 100644
--- a/gcc/ada/bindo.adb
+++ b/gcc/ada/bindo.adb
@@ -347,13 +347,9 @@ package body Bindo is
-- GNATbind outputs the library graph in textual format to standard
-- output.
--
- -- -d_N New bindo order
- --
- -- GNATbind utilizes the new bindo elaboration order
- --
-- -d_P Output cycle paths
--
- -- GNATbind output the cycle paths in text format to standard output
+ -- GNATbind outputs the cycle paths in text format to standard output
--
-- -d_S Output elaboration-order status information
--