Commit 67536dcb by Robert Dewar Committed by Arnaud Charlet

sem_ch8.adb, [...]: Change name Write_Scopes to ws.

2010-08-10  Robert Dewar  <dewar@adacore.com>

	* sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
	* sem_util.adb: Minor reformatting.

From-SVN: r163067
parent a398224a
2010-08-10 Robert Dewar <dewar@adacore.com>
* sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
* sem_util.adb: Minor reformatting.
2010-08-10 Javier Miranda <miranda@adacore.com> 2010-08-10 Javier Miranda <miranda@adacore.com>
* sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++ * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
......
...@@ -511,11 +511,6 @@ package body Sem_Ch8 is ...@@ -511,11 +511,6 @@ package body Sem_Ch8 is
procedure Write_Info; procedure Write_Info;
-- Write debugging information on entities declared in current scope -- Write debugging information on entities declared in current scope
procedure Write_Scopes;
pragma Warnings (Off, Write_Scopes);
pragma Export (Ada, Write_Scopes);
-- Debugging information: dump all entities on scope stack
-------------------------------- --------------------------------
-- Analyze_Exception_Renaming -- -- Analyze_Exception_Renaming --
-------------------------------- --------------------------------
...@@ -7732,11 +7727,11 @@ package body Sem_Ch8 is ...@@ -7732,11 +7727,11 @@ package body Sem_Ch8 is
Write_Eol; Write_Eol;
end Write_Info; end Write_Info;
----------------- --------
-- Write_Scopes -- -- ws --
----------------- --------
procedure Write_Scopes is procedure ws is
S : Entity_Id; S : Entity_Id;
begin begin
for J in reverse 1 .. Scope_Stack.Last loop for J in reverse 1 .. Scope_Stack.Last loop
...@@ -7746,6 +7741,6 @@ package body Sem_Ch8 is ...@@ -7746,6 +7741,6 @@ package body Sem_Ch8 is
Write_Name (Chars (S)); Write_Name (Chars (S));
Write_Eol; Write_Eol;
end loop; end loop;
end Write_Scopes; end ws;
end Sem_Ch8; end Sem_Ch8;
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -131,27 +131,30 @@ package Sem_Ch8 is ...@@ -131,27 +131,30 @@ package Sem_Ch8 is
function Present_System_Aux (N : Node_Id := Empty) return Boolean; function Present_System_Aux (N : Node_Id := Empty) return Boolean;
-- Return True if the auxiliary system file has been successfully loaded. -- Return True if the auxiliary system file has been successfully loaded.
-- Otherwise attempt to load it, using the name supplied by a previous -- Otherwise attempt to load it, using the name supplied by a previous
-- Extend_System pragma, and report on the success of the load. -- Extend_System pragma, and report on the success of the load. If N is
-- If N is present, it is a selected component whose prefix is System, -- present, it is a selected component whose prefix is System, or else a
-- or else a with-clause on system. N is absent when the function is -- with-clause on system. N is absent when the function is called to find
-- called to find the visibility of implicit operators. -- the visibility of implicit operators.
procedure Restore_Scope_Stack (Handle_Use : Boolean := True); procedure Restore_Scope_Stack (Handle_Use : Boolean := True);
procedure Save_Scope_Stack (Handle_Use : Boolean := True); procedure Save_Scope_Stack (Handle_Use : Boolean := True);
-- These two procedures are called from Semantics, when a unit U1 is -- These two procedures are called from Semantics, when a unit U1 is to
-- to be compiled in the course of the compilation of another unit U2. -- be compiled in the course of the compilation of another unit U2. This
-- This happens whenever Rtsfind is called. U1, the unit retrieved by -- happens whenever Rtsfind is called. U1, the unit retrieved by Rtsfind,
-- Rtsfind, must be compiled in its own context, and the current scope -- must be compiled in its own context, and the current scope stack
-- stack containing U2 and local scopes must be made unreachable. On -- containing U2 and local scopes must be made unreachable. On return, the
-- return, the contents of the scope stack must be made accessible again. -- contents of the scope stack must be made accessible again. The flag
-- The flag Handle_Use indicates whether local use clauses must be -- Handle_Use indicates whether local use clauses must be removed or
-- removed/installed. In the case of inlining of instance bodies, the -- installed. In the case of inlining of instance bodies, the visibility
-- visibility handling is done fully in Inline_Instance_Body, and use -- handling is done fully in Inline_Instance_Body, and use clauses are
-- clauses are handled there. -- handled there.
procedure Set_Use (L : List_Id); procedure Set_Use (L : List_Id);
-- Find use clauses that are declarative items in a package declaration -- Find use clauses that are declarative items in a package declaration
-- and set the potentially use-visible flags of imported entities before -- and set the potentially use-visible flags of imported entities before
-- analyzing the corresponding package body. -- analyzing the corresponding package body.
procedure ws;
-- Debugging routine for use in gdb: dump all entities on scope stack
end Sem_Ch8; end Sem_Ch8;
...@@ -1598,7 +1598,7 @@ package body Sem_Util is ...@@ -1598,7 +1598,7 @@ package body Sem_Util is
Next_Elmt (ADT); Next_Elmt (ADT);
-- Skip secondary dispatch table referencing predefined -- Skip secondary dispatch table referencing predefined
-- primitives -- primitives.
pragma Assert (Has_Suffix (Node (ADT), 'Z')); pragma Assert (Has_Suffix (Node (ADT), 'Z'));
Next_Elmt (ADT); Next_Elmt (ADT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment