summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch8.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-08 07:46:22 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-08 07:46:22 +0000
commit89eef040b552f84261ebe0c1d4b060bce6d73d15 (patch)
tree6d6a2a6184ed688b0a87365ae4a2948303b33441 /gcc/ada/sem_ch8.ads
parent6e6e833e8aad145b94b00dcd920f143dde4892a8 (diff)
downloadgcc-89eef040b552f84261ebe0c1d4b060bce6d73d15.tar.gz
2013-07-08 Robert Dewar <dewar@adacore.com>
* sem_ch8.adb, sem_ch8.ads: Minor reformatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_ch8.ads')
-rw-r--r--gcc/ada/sem_ch8.ads14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ada/sem_ch8.ads b/gcc/ada/sem_ch8.ads
index 6a5c89c07d4..99d2b1485d4 100644
--- a/gcc/ada/sem_ch8.ads
+++ b/gcc/ada/sem_ch8.ads
@@ -148,7 +148,8 @@ package Sem_Ch8 is
-- with-clause on system. N is absent when the function is called to find
-- the visibility of implicit operators.
- function Save_Scope_Stack (Handle_Use : Boolean := True) return Elist_Id;
+ function Save_Scope_Stack
+ (Handle_Use : Boolean := True) return Elist_Id;
procedure Restore_Scope_Stack
(List : Elist_Id;
Handle_Use : Boolean := True);
@@ -156,10 +157,13 @@ package Sem_Ch8 is
-- be compiled in the course of the compilation of another unit U2. This
-- happens whenever Rtsfind is called. U1, the unit retrieved by Rtsfind,
-- must be compiled in its own context, and the current scope stack
- -- containing U2 and local scopes must be made unreachable. On return, the
- -- contents of the scope stack must be made accessible again. The flag
- -- Handle_Use indicates whether local use clauses must be removed or
- -- installed. In the case of inlining of instance bodies, the visibility
+ -- containing U2 and local scopes must be made unreachable. This is
+ -- achieved using a call to Save_Scope_Stack. On return, the contents
+ -- of the scope stack must be made accessible again with a call to
+ -- Restore_Scope_Stack.
+ --
+ -- The flag Handle_Use indicates whether local use clauses must be removed
+ -- or installed. In the case of inlining of instance bodies, the visibility
-- handling is done fully in Inline_Instance_Body, and use clauses are
-- handled there. Save_Scope_Stack returns the list of entities which have
-- been temporarily removed from visibility; that list must be passed to