Commit 0ef5cd0a by Arnaud Charlet Committed by Arnaud Charlet

exp_aggr.adb (Component_Not_OK_For_Backend): Refine previous change to take into…

exp_aggr.adb (Component_Not_OK_For_Backend): Refine previous change to take into account Per_Object_Constraint field rather...

2016-04-21  Arnaud Charlet  <charlet@adacore.com>

	* exp_aggr.adb (Component_Not_OK_For_Backend): Refine previous
	change to take into account Per_Object_Constraint field rather
	than special casing strings.
	* exp_ch6.adb: Fix typo in Replace_Returns.

From-SVN: r235314
parent 2d6aa715
2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
2016-04-21 Arnaud Charlet <charlet@adacore.com>
* sem_ch5.adb: Minor reformatting.
* exp_aggr.adb (Component_Not_OK_For_Backend): Refine previous
change to take into account Per_Object_Constraint field rather
than special casing strings.
* exp_ch6.adb: Fix typo in Replace_Returns.
2016-04-21 Eric Botcazou <ebotcazou@adacore.com>
2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch2.adb (Expand_Current_Value): Make an appropriate
character literal if the entity is of a character type.
* sem_ch5.adb: Minor reformatting.
2016-04-21 Arnaud Charlet <charlet@adacore.com>
......
......@@ -6024,7 +6024,8 @@ package body Exp_Aggr is
return True;
elsif Modify_Tree_For_C
and then Ekind (Etype (Expr_Q)) = E_String_Literal_Subtype
and then Nkind (C) in N_Entity
and then Has_Per_Object_Constraint (C)
then
Static_Components := False;
return True;
......
......@@ -739,7 +739,7 @@ package body Exp_Ch6 is
begin
Part := First (Elsif_Parts (Stmt));
while Present (Part) loop
Replace_Returns (Part, Then_Statements (Part));
Replace_Returns (Param_Id, Then_Statements (Part));
Next (Part);
end loop;
end;
......@@ -806,6 +806,11 @@ package body Exp_Ch6 is
Make_Handled_Sequence_Of_Statements (Loc,
Statements => Stmts));
-- If the function is a generic instance, so is the new procedure.
-- Set flag accordingly so that the proper renaming declarations are
-- generated.
Set_Is_Generic_Instance (Proc_Id, Is_Generic_Instance (Func_Id));
return New_Body;
end Build_Procedure_Body_Form;
......
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