diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-20 16:11:55 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-20 16:11:55 +0000 |
commit | 4b5a1388391bebfcd844c519061116146494c27f (patch) | |
tree | af45d961569d3c6683c0ec0e4010fefc8f22c174 /gcc/ada/ali.adb | |
parent | a2b8fc7d4baf2b1d1fc68220995909f48cc68a8b (diff) | |
download | gcc-4b5a1388391bebfcd844c519061116146494c27f.tar.gz |
2008-08-20 Vincent Celier <celier@adacore.com>
* ali.adb:
(Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
as the name may already have been entered in the table by the Project
Manager.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139331 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/ali.adb')
-rw-r--r-- | gcc/ada/ali.adb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/ali.adb b/gcc/ada/ali.adb index e00bc4646c3..efc0ac28293 100644 --- a/gcc/ada/ali.adb +++ b/gcc/ada/ali.adb @@ -1999,13 +1999,17 @@ package body ALI is if Nextc not in '0' .. '9' then Name_Len := 0; - while not At_End_Of_Field loop Name_Len := Name_Len + 1; Name_Buffer (Name_Len) := Getc; end loop; - Sdep.Table (Sdep.Last).Subunit_Name := Name_Enter; + -- Set the subunit name. Note that we use Name_Find rather + -- than Name_Enter here as the subunit name may already + -- have been put in the name table by the Project Manager. + + Sdep.Table (Sdep.Last).Subunit_Name := Name_Find; + Skip_Space; end if; |