Commit 43e7d60b by Mikael Morin

trans-array.c (gfc_set_vector_loop_bounds, [...]): Rename the former to the latter.

	* trans-array.c (gfc_set_vector_loop_bounds, set_vector_loop_bounds):
	Rename the former to the latter.  Change type and name of argument.
	Get previous argument from the new one.
	(gfc_add_loop_ss_code): Update call.

From-SVN: r180860
parent f44d2277
2011-11-03 Mikael Morin <mikael@gcc.gnu.org> 2011-11-03 Mikael Morin <mikael@gcc.gnu.org>
* trans-array.c (gfc_set_vector_loop_bounds, set_vector_loop_bounds):
Rename the former to the latter. Change type and name of argument.
Get previous argument from the new one.
(gfc_add_loop_ss_code): Update call.
2011-11-03 Mikael Morin <mikael@gcc.gnu.org>
* trans-array.h (gfc_trans_create_temp_array): Replace info argument * trans-array.h (gfc_trans_create_temp_array): Replace info argument
with ss argument. with ss argument.
* trans-array.c (gfc_trans_create_temp_array): Ditto. Get info from ss. * trans-array.c (gfc_trans_create_temp_array): Ditto. Get info from ss.
......
...@@ -2094,8 +2094,9 @@ finish: ...@@ -2094,8 +2094,9 @@ finish:
loop bounds. */ loop bounds. */
static void static void
gfc_set_vector_loop_bounds (gfc_loopinfo * loop, gfc_ss_info * info) set_vector_loop_bounds (gfc_loopinfo * loop, gfc_ss * ss)
{ {
gfc_ss_info *info;
gfc_se se; gfc_se se;
tree tmp; tree tmp;
tree desc; tree desc;
...@@ -2103,6 +2104,8 @@ gfc_set_vector_loop_bounds (gfc_loopinfo * loop, gfc_ss_info * info) ...@@ -2103,6 +2104,8 @@ gfc_set_vector_loop_bounds (gfc_loopinfo * loop, gfc_ss_info * info)
int n; int n;
int dim; int dim;
info = &ss->data.info;
for (n = 0; n < loop->dimen; n++) for (n = 0; n < loop->dimen; n++)
{ {
dim = info->dim[n]; dim = info->dim[n];
...@@ -2194,7 +2197,7 @@ gfc_add_loop_ss_code (gfc_loopinfo * loop, gfc_ss * ss, bool subscript, ...@@ -2194,7 +2197,7 @@ gfc_add_loop_ss_code (gfc_loopinfo * loop, gfc_ss * ss, bool subscript,
gfc_add_loop_ss_code (loop, ss->data.info.subscript[n], true, gfc_add_loop_ss_code (loop, ss->data.info.subscript[n], true,
where); where);
gfc_set_vector_loop_bounds (loop, &ss->data.info); set_vector_loop_bounds (loop, ss);
break; break;
case GFC_SS_VECTOR: 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