Commit 84952a4e by Mikael Morin

trans-array.c (gfc_set_vector_loop_bounds): Get loop from ss.

	* trans-array.c (gfc_set_vector_loop_bounds): Get loop from ss.
	Remove loop argument.
	(gfc_add_loop_ss_code): Update call.

From-SVN: r180885
parent 4615abe8
2011-11-03 Mikael Morin <mikael@gcc.gnu.org>
* trans-array.c (gfc_set_vector_loop_bounds): Get loop from ss.
Remove loop argument.
(gfc_add_loop_ss_code): Update call.
2011-11-03 Mikael Morin <mikael@gcc.gnu.org>
* trans.h (struct gfc_ss): New field loop.
* trans-array.c (set_ss_loop): New function.
(gfc_add_ss_to_loop): Call set_ss_loop.
......
......@@ -2162,8 +2162,9 @@ finish:
loop bounds. */
static void
set_vector_loop_bounds (gfc_loopinfo * loop, gfc_ss * ss)
set_vector_loop_bounds (gfc_ss * ss)
{
gfc_loopinfo *loop;
gfc_array_info *info;
gfc_se se;
tree tmp;
......@@ -2173,6 +2174,7 @@ set_vector_loop_bounds (gfc_loopinfo * loop, gfc_ss * ss)
int dim;
info = &ss->info->data.array;
loop = ss->loop;
for (n = 0; n < loop->dimen; n++)
{
......@@ -2271,7 +2273,7 @@ gfc_add_loop_ss_code (gfc_loopinfo * loop, gfc_ss * ss, bool subscript,
if (info->subscript[n])
gfc_add_loop_ss_code (loop, info->subscript[n], true, where);
set_vector_loop_bounds (loop, ss);
set_vector_loop_bounds (ss);
break;
case GFC_SS_VECTOR:
......
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