-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>
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;
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;
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;