From 2cbd94afd37c888ec80ec7ad3c902c9afaae4321 Mon Sep 17 00:00:00 2001 From: Richard Guenther <rguenther@suse.de> Date: Tue, 11 Sep 2012 09:35:18 +0000 Subject: [PATCH] graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes. 2012-09-11 Richard Guenther <rguenther@suse.de> * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes. (scopdet_basic_block_info): Likewise. (build_scops_1): Likewise. (limit_scops): Likewise. From-SVN: r191175 --- gcc/ChangeLog | 8 ++++++++ gcc/graphite-scop-detection.c | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6c73d4cb86e..509d35759c27 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2012-09-11 Richard Guenther <rguenther@suse.de> + + * graphite-scop-detection.c (move_sd_regions): Adjust for VEC + changes. + (scopdet_basic_block_info): Likewise. + (build_scops_1): Likewise. + (limit_scops): Likewise. + 2012-09-11 Richard Guenther <rguenther@suse.de> PR middle-end/54515 diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 48bbae94dce7..0ea9e6a473d9 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -143,7 +143,7 @@ move_sd_regions (VEC (sd_region, heap) **source, int i; FOR_EACH_VEC_ELT (sd_region, *source, i, s) - VEC_safe_push (sd_region, heap, *target, s); + VEC_safe_push (sd_region, heap, *target, *s); VEC_free (sd_region, heap, *source); } @@ -500,7 +500,7 @@ scopdet_basic_block_info (basic_block bb, loop_p outermost_loop, sd_region open_scop; open_scop.entry = bb; open_scop.exit = exit_e->dest; - VEC_safe_push (sd_region, heap, *scops, &open_scop); + VEC_safe_push (sd_region, heap, *scops, open_scop); VEC_free (sd_region, heap, regions); } } @@ -756,7 +756,7 @@ build_scops_1 (basic_block current, loop_p outermost_loop, else if (in_scop && (sinfo.exits || sinfo.difficult)) { open_scop.exit = current; - VEC_safe_push (sd_region, heap, *scops, &open_scop); + VEC_safe_push (sd_region, heap, *scops, open_scop); in_scop = false; } @@ -771,7 +771,7 @@ build_scops_1 (basic_block current, loop_p outermost_loop, { open_scop.exit = sinfo.exit; gcc_assert (open_scop.exit); - VEC_safe_push (sd_region, heap, *scops, &open_scop); + VEC_safe_push (sd_region, heap, *scops, open_scop); } result.exit = sinfo.exit; @@ -1205,7 +1205,7 @@ limit_scops (VEC (scop_p, heap) **scops) && contains_only_close_phi_nodes (open_scop.exit)) open_scop.exit = single_succ_edge (open_scop.exit)->dest; - VEC_safe_push (sd_region, heap, regions, &open_scop); + VEC_safe_push (sd_region, heap, regions, open_scop); } } -- GitLab