This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] add attribute Excluded_Source_Files


Tested on i686-linux, committed on trunk

Attribute Locally_Removed_Files has been restricted to extending projects
only, then has been allowed in all projects. So its name is not really
adapted. A new attribute Excluded_Source_Files is created. If this new
attribute is not declared, for compatibility, Locally_Removed_Files is
used, if declared.

The following project should build correctly, with the appended files in
the same directory:

prj.gpr:
project Prj is
   for Main use ("main.adb");
   for Excluded_Source_Files use ("pkg.adb");
end Prj;

main.adb:
procedure Main is
begin
   null;
end;

pkg.ads:
package Pkg is
end;

pkg.adb:
package body Pkg is
end;

2007-08-31  Vincent Celier  <celier@adacore.com>

	* prj-attr.adb: Add new attribute Excluded_Source_Files

	* prj-nmsc.adb: Use attribute Excluded_Source_Files before
	Locally_Removed_Files.

	* snames.ads, snames.adb: New standard name Excluded_Source_Files

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]