aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2017-11-08 16:16:04 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2017-11-08 16:16:04 +0000
commit784ef0fb7cd3e6bdf8cdba51a14cd884f365cb59 (patch)
treefa1eedb877605c1e14d746c3929332492b91b73e /gcc
parent3e5400f4acc56a3e6a25ebeb5f7bfcf9d7d3646a (diff)
downloadgcc-784ef0fb7cd3e6bdf8cdba51a14cd884f365cb59.zip
gcc-784ef0fb7cd3e6bdf8cdba51a14cd884f365cb59.tar.gz
gcc-784ef0fb7cd3e6bdf8cdba51a14cd884f365cb59.tar.bz2
lib-xref.ads, [...] (Traverse_Declarations): Remove Inside_Stubs parameter.
2017-11-08 Piotr Trojanek <trojanek@adacore.com> * lib-xref.ads, lib-xref-spark_specific.adb (Traverse_Declarations): Remove Inside_Stubs parameter. From-SVN: r254540
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/lib-xref-spark_specific.adb11
-rw-r--r--gcc/ada/lib-xref.ads9
3 files changed, 12 insertions, 13 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 6b1d7ca..1a4a582 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,5 +1,10 @@
2017-11-08 Piotr Trojanek <trojanek@adacore.com>
+ * lib-xref.ads, lib-xref-spark_specific.adb (Traverse_Declarations):
+ Remove Inside_Stubs parameter.
+
+2017-11-08 Piotr Trojanek <trojanek@adacore.com>
+
* spark_xrefs.ads (SPARK_Xref_Record): Referenced object is now
represented by Entity_Id.
(SPARK_Scope_Record): Referenced scope (e.g. subprogram) is now
diff --git a/gcc/ada/lib-xref-spark_specific.adb b/gcc/ada/lib-xref-spark_specific.adb
index 1b31c6a..c43cbb1 100644
--- a/gcc/ada/lib-xref-spark_specific.adb
+++ b/gcc/ada/lib-xref-spark_specific.adb
@@ -230,14 +230,14 @@ package body SPARK_Specific is
return;
end if;
- Traverse_Scopes (CU => Cunit (Uspec), Inside_Stubs => True);
+ Traverse_Scopes (CU => Cunit (Uspec));
-- When two units are present for the same compilation unit, as it
-- happens for library-level instantiations of generics, then add all
-- scopes to the same SPARK file.
if Ubody /= No_Unit then
- Traverse_Scopes (CU => Cunit (Ubody), Inside_Stubs => True);
+ Traverse_Scopes (CU => Cunit (Ubody));
end if;
-- Make entry for new file in file table
@@ -1156,10 +1156,7 @@ package body SPARK_Specific is
-- Traverse_Compilation_Unit --
-------------------------------
- procedure Traverse_Compilation_Unit
- (CU : Node_Id;
- Inside_Stubs : Boolean)
- is
+ procedure Traverse_Compilation_Unit (CU : Node_Id) is
procedure Traverse_Block (N : Node_Id);
procedure Traverse_Declaration_Or_Statement (N : Node_Id);
procedure Traverse_Declarations_And_HSS (N : Node_Id);
@@ -1195,7 +1192,7 @@ package body SPARK_Specific is
N_Subprogram_Body_Stub,
N_Task_Body_Stub));
- return Inside_Stubs and then Present (Library_Unit (N));
+ return Present (Library_Unit (N));
end Traverse_Stub;
-- Start of processing for Traverse_Declaration_Or_Statement
diff --git a/gcc/ada/lib-xref.ads b/gcc/ada/lib-xref.ads
index f827eb4..85b42ef 100644
--- a/gcc/ada/lib-xref.ads
+++ b/gcc/ada/lib-xref.ads
@@ -647,12 +647,9 @@ package Lib.Xref is
generic
with procedure Process (N : Node_Id) is <>;
- procedure Traverse_Compilation_Unit
- (CU : Node_Id;
- Inside_Stubs : Boolean);
- -- Call Process on all declarations within compilation unit CU. If
- -- Inside_Stubs is True, then the body of stubs is also traversed.
- -- Generic declarations are ignored.
+ procedure Traverse_Compilation_Unit (CU : Node_Id);
+ -- Call Process on all declarations within compilation unit CU. Bodies
+ -- of stubs are also traversed, but generic declarations are ignored.
end SPARK_Specific;