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 * sem_ch5.adb: Minor reformatting.
character literal if the entity is of a character type.
2016-04-21 Arnaud Charlet <charlet@adacore.com> 2016-04-21 Arnaud Charlet <charlet@adacore.com>
......
...@@ -6024,7 +6024,8 @@ package body Exp_Aggr is ...@@ -6024,7 +6024,8 @@ package body Exp_Aggr is
return True; return True;
elsif Modify_Tree_For_C 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 then
Static_Components := False; Static_Components := False;
return True; return True;
......
...@@ -739,7 +739,7 @@ package body Exp_Ch6 is ...@@ -739,7 +739,7 @@ package body Exp_Ch6 is
begin begin
Part := First (Elsif_Parts (Stmt)); Part := First (Elsif_Parts (Stmt));
while Present (Part) loop while Present (Part) loop
Replace_Returns (Part, Then_Statements (Part)); Replace_Returns (Param_Id, Then_Statements (Part));
Next (Part); Next (Part);
end loop; end loop;
end; end;
...@@ -806,6 +806,11 @@ package body Exp_Ch6 is ...@@ -806,6 +806,11 @@ package body Exp_Ch6 is
Make_Handled_Sequence_Of_Statements (Loc, Make_Handled_Sequence_Of_Statements (Loc,
Statements => Stmts)); 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; return New_Body;
end Build_Procedure_Body_Form; 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