From: Vincent Celier Date: Fri, 31 Oct 2014 11:47:11 +0000 (+0000) Subject: prj-proc.adb (Recursive_Process): Make sure that the project display name is never... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aed24d9d740b854c8048d58b9a768a100a25868f;p=gcc.git prj-proc.adb (Recursive_Process): Make sure that the project display name is never No_Name. 2014-10-31 Vincent Celier * prj-proc.adb (Recursive_Process): Make sure that the project display name is never No_Name. From-SVN: r216970 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 96f94e2f247..482f230e0d9 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2014-10-31 Vincent Celier + + * prj-proc.adb (Recursive_Process): Make sure that the project + display name is never No_Name. + 2014-10-31 Ed Schonberg * sem_attr.adb (Analyze_Access_Attribute): Do not emit error diff --git a/gcc/ada/prj-proc.adb b/gcc/ada/prj-proc.adb index 9eb281468e4..7fffc3210f5 100644 --- a/gcc/ada/prj-proc.adb +++ b/gcc/ada/prj-proc.adb @@ -2994,7 +2994,15 @@ package body Prj.Proc is Processed_Projects.Set (Name, Project); Project.Name := Name; - Project.Display_Name := Name_Node.Display_Name; + + -- Make sure that the project display name is never No_Name + + if Name_Node.Display_Name = No_Name then + Project.Display_Name := Name; + else + Project.Display_Name := Name_Node.Display_Name; + end if; + Get_Name_String (Name); -- If name starts with the virtual prefix, flag the project as