diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-10-27 14:22:25 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-10-27 14:22:25 +0100 |
commit | 0c0c6f49d575f70b8fbd64a5d033d65ee24f9ad2 (patch) | |
tree | 19a3adc4ab8d0fc718d9a6dc0de8064797138b72 /gcc/ada/prj-part.adb | |
parent | fdfcc663025bcdca7562b2d16211a0588e484927 (diff) | |
download | gcc-0c0c6f49d575f70b8fbd64a5d033d65ee24f9ad2.zip gcc-0c0c6f49d575f70b8fbd64a5d033d65ee24f9ad2.tar.gz gcc-0c0c6f49d575f70b8fbd64a5d033d65ee24f9ad2.tar.bz2 |
[multiple changes]
2009-10-27 Thomas Quinot <quinot@adacore.com>
* sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
visible entities when the formal package doesn't have a box.
* checks.adb: Minor reformatting.
2009-10-27 Vincent Celier <celier@adacore.com>
* prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
set Project to Empty_Node.
2009-10-27 Robert Dewar <dewar@adacore.com>
* gnatbind.adb: Minor reformatting
From-SVN: r153593
Diffstat (limited to 'gcc/ada/prj-part.adb')
-rw-r--r-- | gcc/ada/prj-part.adb | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/gcc/ada/prj-part.adb b/gcc/ada/prj-part.adb index 1ed78ab..7702f54 100644 --- a/gcc/ada/prj-part.adb +++ b/gcc/ada/prj-part.adb @@ -485,19 +485,27 @@ package body Prj.Part is return; end if; - Parse_Single_Project - (In_Tree => In_Tree, - Project => Project, - Extends_All => Dummy, - Path_Name => Path_Name, - Extended => False, - From_Extended => None, - In_Limited => False, - Packages_To_Check => Packages_To_Check, - Depth => 0, - Current_Dir => Current_Directory, - Is_Config_File => Is_Config_File, - Flags => Flags); + begin + Parse_Single_Project + (In_Tree => In_Tree, + Project => Project, + Extends_All => Dummy, + Path_Name => Path_Name, + Extended => False, + From_Extended => None, + In_Limited => False, + Packages_To_Check => Packages_To_Check, + Depth => 0, + Current_Dir => Current_Directory, + Is_Config_File => Is_Config_File, + Flags => Flags); + + exception + when Types.Unrecoverable_Error => + -- Unrecoverable_Error is raised when a line is too long. + -- A meaningful error message will be displayed later. + Project := Empty_Node; + end; -- If Project is an extending-all project, create the eventual -- virtual extending projects and check that there are no illegally |