aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2011-12-12 13:06:59 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2011-12-12 13:06:59 +0100
commitb913199ea39e5027a5f4176f245fe7fef1951dcd (patch)
treec1e16e7248e0c9ff47cd8c99f940a305cc7a64b2 /gcc/ada/sem.adb
parentf0f3286a5a9af9c4b0d0af7a567c4f465f8fc382 (diff)
downloadgcc-b913199ea39e5027a5f4176f245fe7fef1951dcd.zip
gcc-b913199ea39e5027a5f4176f245fe7fef1951dcd.tar.gz
gcc-b913199ea39e5027a5f4176f245fe7fef1951dcd.tar.bz2
[multiple changes]
2011-12-12 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Expression_Function): If the function is not a completion, pre-analyze the expression now to prevent spurious visibility on later entities. The body is inserted at the end of the current declaration list or package to prevent early freezing, but the visibility is established at the point of definition. 2011-12-12 Bob Duff <duff@adacore.com> * sem.adb, sem.ads: Add debugging routines. 2011-12-12 Tristan Gingold <gingold@adacore.com> * gnatls.adb: (gnatls): Also add the objects dir in search list. From-SVN: r182235
Diffstat (limited to 'gcc/ada/sem.adb')
-rw-r--r--gcc/ada/sem.adb20
1 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ada/sem.adb b/gcc/ada/sem.adb
index ce6d88b..fc8f74c 100644
--- a/gcc/ada/sem.adb
+++ b/gcc/ada/sem.adb
@@ -1555,6 +1555,24 @@ package body Sem is
end if;
end Semantics;
+ --------
+ -- ss --
+ --------
+
+ function ss (Index : Int) return Scope_Stack_Entry is
+ begin
+ return Scope_Stack.Table (Index);
+ end ss;
+
+ ---------
+ -- sst --
+ ---------
+
+ function sst return Scope_Stack_Entry is
+ begin
+ return ss (Scope_Stack.Last);
+ end sst;
+
------------------------
-- Walk_Library_Items --
------------------------
@@ -1602,7 +1620,7 @@ package body Sem is
-- an instance spec, do the body last.
procedure Do_Withed_Unit (Withed_Unit : Node_Id);
- -- Apply Do_Unit_And_Dependents to a unit in a context clause.
+ -- Apply Do_Unit_And_Dependents to a unit in a context clause
procedure Process_Bodies_In_Context (Comp : Node_Id);
-- The main unit and its spec may depend on bodies that contain generics