diff options
author | Geert Bosch <bosch@gcc.gnu.org> | 2001-12-17 22:19:32 +0100 |
---|---|---|
committer | Geert Bosch <bosch@gcc.gnu.org> | 2001-12-17 22:19:32 +0100 |
commit | 79503fdd334db52e65b8550cce54031eadda249a (patch) | |
tree | 405209476eafde3f87744b76bb4787227777129a /gcc/ada/prj.ads | |
parent | 855ff2e1e447affef1e407fe68b9e10d525f41f5 (diff) | |
download | gcc-79503fdd334db52e65b8550cce54031eadda249a.zip gcc-79503fdd334db52e65b8550cce54031eadda249a.tar.gz gcc-79503fdd334db52e65b8550cce54031eadda249a.tar.bz2 |
* make.adb:
(Switches_Of): New function
(Test_If_Relative_Path): New procedure
(Add_Switches): Use new function Switches_Of
(Collect_Arguments_And_Compile): Use new function Switches_Of.
When using a project file, test if there are any relative
search path. Fail if there are any.
(Gnatmake): Only add switches for the primary directory when not using
a project file. When using a project file, change directory to the
object directory of the main project file. When using a project file,
test if there are any relative search path. Fail if there are any.
When using a project file, fail if specified executable is relative
path with directory information, and prepend executable, if not
specified as an absolute path, with the exec directory. Make sure
that only one -o switch is transmitted to the linker.
* prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
* prj-nmsc.adb:
(Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
when using a non standard naming scheme.
(Check_Ada_Naming_Scheme): Make sure that error messages
do not raise exceptions.
(Is_Illegal_Append): Return True if there is no dot in the suffix.
(Language_Independent_Check): Check the exec directory.
* prj.adb (Project_Empty): Add new component Exec_Directory
* prj.ads:
(Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
(Project_Data): Add component Exec_Directory
* snames.adb: Updated to match snames.ads revision 1.215
* snames.ads: Added Exec_Dir
* make.adb: Minor reformatting
* prj-nmsc.adb: Minor reformatting
* snames.adb: Updated to match snames.ads
* snames.ads: Alphebetize entries for project file
* trans.c (process_freeze_entity): Do nothing if the entity is a
subprogram that was already elaborated.
* decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
and Esize if object is referenced via pointer.
From-SVN: r48127
Diffstat (limited to 'gcc/ada/prj.ads')
-rw-r--r-- | gcc/ada/prj.ads | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ada/prj.ads b/gcc/ada/prj.ads index eb02bf4..d121c2d 100644 --- a/gcc/ada/prj.ads +++ b/gcc/ada/prj.ads @@ -40,11 +40,11 @@ with Types; use Types; package Prj is - Default_Ada_Spec_Suffix : Name_Id := No_Name; + Default_Ada_Spec_Suffix : Name_Id; -- The Name_Id for the standard GNAT suffix for Ada spec source file -- name ".ads". Initialized by Prj.Initialize. - Default_Ada_Impl_Suffix : Name_Id := No_Name; + Default_Ada_Impl_Suffix : Name_Id; -- The Name_Id for the standard GNAT suffix for Ada body source file -- name ".adb". Initialized by Prj.Initialize. @@ -366,6 +366,11 @@ package Prj is -- The object directory of this project file. -- Set by Prj.Nmsc.Check_Naming_Scheme. + Exec_Directory : Name_Id := No_Name; + -- The exec directory of this project file. + -- Default is equal to Object_Directory. + -- Set by Prj.Nmsc.Check_Naming_Scheme. + Modifies : Project_Id := No_Project; -- The reference of the project file, if any, that this -- project file modifies. |