Commit 4437ea95 by Arnaud Charlet

[multiple changes]

2014-01-24  Robert Dewar  <dewar@adacore.com>

	* sem_prag.adb (Analyze_Input_Output): Add missing error check
	for junk operand.
	* sem_util.adb (Is_Refined_State): Add defense against junk
	tree from error.

2014-01-24  Pascal Obry  <obry@adacore.com>

	* projects.texi: Removes Build_Slaves attribute documentation.

From-SVN: r207027
parent 8e914068
2014-01-24 Robert Dewar <dewar@adacore.com>
* sem_prag.adb (Analyze_Input_Output): Add missing error check
for junk operand.
* sem_util.adb (Is_Refined_State): Add defense against junk
tree from error.
2014-01-24 Pascal Obry <obry@adacore.com>
* projects.texi: Removes Build_Slaves attribute documentation.
2014-01-23 Robert Dewar <dewar@adacore.com> 2014-01-23 Robert Dewar <dewar@adacore.com>
* opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
......
...@@ -4963,10 +4963,7 @@ invoking @code{gnatpp} for the source. ...@@ -4963,10 +4963,7 @@ invoking @code{gnatpp} for the source.
@itemize @bullet @itemize @bullet
@item @b{Build_Slaves}: list
Value is the list of machine names that are to be used in distributed
compilation.
@item @b{Root_Dir}: single @item @b{Root_Dir}: single
......
...@@ -783,9 +783,9 @@ package body Sem_Prag is ...@@ -783,9 +783,9 @@ package body Sem_Prag is
Item_Id := Entity_Of (Item); Item_Id := Entity_Of (Item);
if Present (Item_Id) then
Record_Possible_Body_Reference (Item, Item_Id); Record_Possible_Body_Reference (Item, Item_Id);
if Present (Item_Id) then
if Ekind_In (Item_Id, E_Abstract_State, if Ekind_In (Item_Id, E_Abstract_State,
E_In_Parameter, E_In_Parameter,
E_In_Out_Parameter, E_In_Out_Parameter,
......
...@@ -3723,6 +3723,12 @@ package body Sem_Util is ...@@ -3723,6 +3723,12 @@ package body Sem_Util is
else else
Item_Id := Entity_Of (Item); Item_Id := Entity_Of (Item);
-- Defend against junk
if No (Item_Id) then
return False;
end if;
return return
Ekind (Item_Id) = E_Abstract_State Ekind (Item_Id) = E_Abstract_State
and then Has_Visible_Refinement (Item_Id); and then Has_Visible_Refinement (Item_Id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment