Commit df8aa2b7 by Eric Botcazou Committed by Pierre-Marie de Rodat

[Ada] Minor comment addition

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
parent 5a0c86bd
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> 2018-05-30 Bob Duff <duff@adacore.com>
* exp_ch5.adb (Expand_Formal_Container_Element_Loop): Remove the code * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Remove the code
......
...@@ -7050,7 +7050,9 @@ gnat_to_gnu (Node_Id gnat_node) ...@@ -7050,7 +7050,9 @@ gnat_to_gnu (Node_Id gnat_node)
else if (atomic_access_required_p (Name (gnat_node), &sync)) else if (atomic_access_required_p (Name (gnat_node), &sync))
gnu_result = build_atomic_store (gnu_lhs, gnu_rhs, 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) else if (use_memset_p)
{ {
tree value tree value
......
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