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] Further clean ups in gnatmake/project parsing


Remove all remaining global variables and tables in prj-nmsc.adb
The goal is to reduce the number of parameters passed around, as well
as eliminate global data (variables and tables) that only make sense
while processing a project, and can be removed even when we keep the
project afterward. This reduces memory footprint in applications like
GPS.

Also unify check for missing sources between gnatmake and gprbuild.
Both tools now use the same code to check whether a language declared
in a project is missing sources. In the case of gnatmake, we only want
to do this check for Ada. Instead of doing this conditionally based
on the mode (Ada_Only), we now use an explicit boolean for this feature
(Require_Sources_Other_Lang), which is clearer and more flexible.

Tested on x86_64-pc-linux-gnu, committed on trunk

2009-07-13  Emmanuel Briot  <briot@adacore.com>

	* prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
	prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
	variables and tables in prj-nmsc.adb.
	(Tree_Processing_Data): Renames Processing_Data, some new fields added
	(Project_Processing_Data): New record
	Simplify/unify check for missing sources.

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]