+2015-10-02 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/trans.c (find_loop_for): Use FOR_EACH_VEC_ELT_REVERSE.
+ (Loop_Statement_to_gnu): Use FOR_EACH_VEC_ELT.
+ (finalize_nrv): Use FOR_EACH_VEC_SAFE_ELT and initialize field.
+ (build_stmt_group): Add blank lines.
+
2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
* gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_11): Don't define.
2015-09-28 Tom de Vries <tom@codesourcery.com>
- * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_6): Define
+ * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_6): Define.
2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
gcc_assert (vec_safe_length (gnu_loop_stack) > 0);
- for (i = vec_safe_length (gnu_loop_stack) - 1;
- vec_safe_iterate (gnu_loop_stack, i, &iter);
- i--)
+ FOR_EACH_VEC_ELT_REVERSE (*gnu_loop_stack, i, iter)
if (var == iter->loop_var)
break;
- the front-end quickly generates useless or redundant checks
that can be entirely optimized away in the end. */
if (1 <= n_checks && n_checks <= 4)
- for (i = 0;
- vec_safe_iterate (gnu_loop_info->checks, i, &rci);
- i++)
+ FOR_EACH_VEC_ELT (*gnu_loop_info->checks, i, rci)
{
tree low_ok
= rci->low_bound
/* Prune the candidates that are referenced by other return values. */
data.nrv = nrv;
data.result = NULL_TREE;
+ data.gnat_ret = Empty;
data.visited = NULL;
- for (i = 0; vec_safe_iterate (other, i, &iter); i++)
+ FOR_EACH_VEC_SAFE_ELT (other, i, iter)
walk_tree_without_duplicates (&iter, prune_nrv_r, &data);
if (bitmap_empty_p (nrv))
return;
build_stmt_group (List_Id gnat_list, bool binding_p)
{
start_stmt_group ();
+
if (binding_p)
gnat_pushlevel ();
add_stmt_list (gnat_list);
+
if (binding_p)
gnat_poplevel ();