diff options
author | bosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-20 06:22:43 +0000 |
---|---|---|
committer | bosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-20 06:22:43 +0000 |
commit | 4c2698ed6802669784e51f97b390e7f836457407 (patch) | |
tree | 0fb5f707e1f7868b6ca9dde005027d1520338a01 /gcc/ada/prj-env.adb | |
parent | 3affb0ca724651a96e35f3c823e64d123c0cac7d (diff) | |
download | gcc-4c2698ed6802669784e51f97b390e7f836457407.tar.gz |
* bindgen.adb: Minor reformatting
* cstand.adb: Minor reformatting
* fmap.adb: Minor reformatting
Change name from Add for Add_To_File_Map (Add is much too generic)
Change Path_Name_Of to Mapped_Path_Name
Change File_Name_Of to Mapped_File_Name
Fix copyright dates in header
* fmap.ads:
Change name from Add for Add_To_File_Map (Add is much too generic)
Change Path_Name_Of to Mapped_Path_Name
Change File_Name_Of to Mapped_File_Name
Fix copyright dates in header
* fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
Add use clause for Fmap.
* make.adb: Minor reformatting
* osint.adb: Minor reformatting. Change of names in Fmap.
Add use clause for Fmap.
* prj-env.adb: Minor reformatting
* prj-env.ads: Minor reformatting
* switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
error found (there were odd exceptions to this general rule in
-gnatec/-gnatem processing)
* raise.c (__gnat_eh_personality): Exception handling personality
routine for Ada. Still in rough state, inspired from the C++ version
and still containing a bunch of debugging artifacts.
(parse_lsda_header, get_ttype_entry): Local (static) helpers, also
inspired from the C++ library.
* raise.c (eh_personality): Add comments. Part of work for the GCC 3
exception handling integration.
* Makefile.in: Remove use of 5smastop.adb which is obsolete.
(HIE_SOURCES): Add s-secsta.ad{s,b}.
(HIE_OBJS): Add s-fat*.o
(RAVEN_SOURCES): Remove files that are no longer required. Add
interrupt handling files.
(RAVEN_MOD): Removed, no longer needed.
* a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
Add 2001 to copyright date
* g-regpat.adb: Change pragma Inline_Always to Inline. There is no
need to force universal inlining for these cases.
* s-taprob.adb: Minor clean ups so that this unit can be used in
Ravenscar HI.
* exp_ch7.adb: Allow use of secondary stack in HI mode.
Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
* prj-tree.ads (Project_Node_Record): Add comments for components
Pkg_Id and Case_Insensitive.
* g-socket.adb: Minor reformatting. Found while reading code.
* prj-tree.ads: Minor reformatting
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/prj-env.adb')
-rw-r--r-- | gcc/ada/prj-env.adb | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/gcc/ada/prj-env.adb b/gcc/ada/prj-env.adb index e52165d167a..fd5109bb05c 100644 --- a/gcc/ada/prj-env.adb +++ b/gcc/ada/prj-env.adb @@ -804,6 +804,10 @@ package body Prj.Env is -- Put the mapping of the spec or body contained in Data in the file -- (3 lines). + --------- + -- Put -- + --------- + procedure Put (S : String) is Last : Natural; @@ -813,9 +817,12 @@ package body Prj.Env is if Last /= S'Length then Osint.Fail ("Disk full"); end if; - end Put; + -------------- + -- Put_Data -- + -------------- + procedure Put_Data (Spec : Boolean) is begin Put (Get_Name_String (The_Unit_Data.Name)); @@ -833,6 +840,8 @@ package body Prj.Env is Put (S => (1 => ASCII.LF)); end Put_Data; + -- Start of processing for Create_Mapping_File + begin GNAT.OS_Lib.Create_Temp_File (File, Name => Name); @@ -938,7 +947,7 @@ package body Prj.Env is for Current in reverse Units.First .. Units.Last loop Unit := Units.Table (Current); - -- If it is a unit of the same project + -- Case of unit of the same project if Unit.File_Names (Body_Part).Project = Project then declare @@ -946,7 +955,7 @@ package body Prj.Env is Unit.File_Names (Body_Part).Name; begin - -- If there is a body + -- Case of a body present if Current_Name /= No_Name then if Current_Verbosity = High then @@ -987,7 +996,7 @@ package body Prj.Env is end; end if; - -- If it is a unit of the same project + -- Case of a unit of the same project if Units.Table (Current).File_Names (Specification).Project = Project @@ -997,7 +1006,7 @@ package body Prj.Env is Unit.File_Names (Specification).Name; begin - -- If there is a spec + -- Case of spec present if Current_Name /= No_Name then if Current_Verbosity = High then @@ -1007,8 +1016,7 @@ package body Prj.Env is Write_Eol; end if; - -- If it has the same name as the original name, - -- return the original name + -- If name same as the original name, return original name if Unit.Name = The_Original_Name or else Current_Name = The_Original_Name @@ -1020,7 +1028,7 @@ package body Prj.Env is return Get_Name_String (Current_Name); -- If it has the same name as the extended spec name, - -- return the extended spec name + -- return the extended spec name. elsif Current_Name = The_Spec_Name then if Current_Verbosity = High then |