prj-part.ads, [...] (Parse): Add Target_Name parameter.
authorPascal Obry <obry@adacore.com>
Mon, 1 Aug 2011 15:57:17 +0000 (15:57 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 1 Aug 2011 15:57:17 +0000 (17:57 +0200)
commit1982d5a85436cb4798d3b58a6f306b33c996ff24
tree6924a2255be2eb95a5d6c5d398e92a5e2c5d0642
parent0d53d36b6e25fb2c306dc3d5a76b78e596795b6e
prj-part.ads, [...] (Parse): Add Target_Name parameter.

2011-08-01  Pascal Obry  <obry@adacore.com>

* prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
Target_Name to Get_Path call.
(Parse_Single_Project): Likewise.
(Post_Parse_Context_Clause): Likewise.
* prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
Call Initialise_Project_Path with the proper Target_Name.
(Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
search path.
(Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
with the proper Target_Name.
* prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
Part.Parse routine.
(Parse_Project_And_Apply_Config): Likewise.
* prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
This is fine as this part of the code is supporting only native
compilation.
* prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
is fine as this part of the code is supporting only native compilation.

From-SVN: r177054
gcc/ada/ChangeLog
gcc/ada/prj-conf.adb
gcc/ada/prj-env.adb
gcc/ada/prj-env.ads
gcc/ada/prj-makr.adb
gcc/ada/prj-pars.adb
gcc/ada/prj-part.adb
gcc/ada/prj-part.ads