summaryrefslogtreecommitdiff
path: root/gcc/ada/gnatbind.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-22 06:47:22 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-22 06:47:22 +0000
commit72b22c6af1c127720ab93aaaf9b3489bab8f68c0 (patch)
tree1cd8c0f73bacd28f7da6592854ffd98057e0c9ee /gcc/ada/gnatbind.adb
parent6f67f57cfa754f08110c5e55de90b7fcc274aa07 (diff)
downloadgcc-72b22c6af1c127720ab93aaaf9b3489bab8f68c0.tar.gz
2010-06-22 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is found, check if it's path has aready been found, whatever its index. 2010-06-22 Robert Dewar <dewar@adacore.com> * atree.adb, gnatbind.adb: Minor reformatting. Minor code reorganization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161131 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gnatbind.adb')
-rw-r--r--gcc/ada/gnatbind.adb9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ada/gnatbind.adb b/gcc/ada/gnatbind.adb
index cc06ce39706..9d7ac41b32f 100644
--- a/gcc/ada/gnatbind.adb
+++ b/gcc/ada/gnatbind.adb
@@ -826,7 +826,7 @@ begin
-- sources) if -R was used.
if List_Closure then
- declare
+ List_Closure_Display : declare
Source : File_Name_Type;
function Put_In_Sources (S : File_Name_Type) return Boolean;
@@ -852,6 +852,8 @@ begin
return True;
end Put_In_Sources;
+ -- Start of processing for List_Closure_Display
+
begin
Closure_Sources.Init;
@@ -862,7 +864,6 @@ begin
end if;
for J in reverse Elab_Order.First .. Elab_Order.Last loop
-
Source := Units.Table (Elab_Order.Table (J)).Sfile;
-- Do not include the sources of the runtime and do not
@@ -875,7 +876,7 @@ begin
Write_Str (" ");
end if;
- Write_Str (Get_Name_String (Source));
+ Write_Str (Get_Name_String (Source));
Write_Eol;
end if;
end loop;
@@ -908,7 +909,7 @@ begin
if not Zero_Formatting then
Write_Eol;
end if;
- end;
+ end List_Closure_Display;
end if;
end if;
end if;