2018-05-30 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Add
comment about the memset case.
From-SVN: r260931
+2018-05-30 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Add
+ comment about the memset case.
+
2018-05-30 Bob Duff <duff@adacore.com>
* exp_ch5.adb (Expand_Formal_Container_Element_Loop): Remove the code
else if (atomic_access_required_p (Name (gnat_node), &sync))
gnu_result = build_atomic_store (gnu_lhs, gnu_rhs, sync);
- /* Or else, use memset when the conditions are met. */
+ /* Or else, use memset when the conditions are met. This has already
+ been validated by Aggr_Assignment_OK_For_Backend in the front-end
+ and the RHS is thus guaranteed to be of the appropriate form. */
else if (use_memset_p)
{
tree value