Commit 00b9bf8b by Mikael Morin

array.c (match_subscript): Skip whitespaces before setting locus.

	* array.c (match_subscript): Skip whitespaces before setting locus.
	* matchexp.c (match_level_1): Ditto.

From-SVN: r180910
parent aa6ad95c
2011-11-04 Mikael Morin <mikael@gcc.gnu.org> 2011-11-04 Mikael Morin <mikael@gcc.gnu.org>
* array.c (match_subscript): Skip whitespaces before setting locus.
* matchexp.c (match_level_1): Ditto.
2011-11-04 Mikael Morin <mikael@gcc.gnu.org>
* trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Set loop's * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Set loop's
temporary rank to the loop rank. Mark ss chains for multiple loop temporary rank to the loop rank. Mark ss chains for multiple loop
if necessary. Use gfc_trans_scalarized_loop_boundary to end one loop if necessary. Use gfc_trans_scalarized_loop_boundary to end one loop
......
...@@ -70,6 +70,7 @@ match_subscript (gfc_array_ref *ar, int init, bool match_star) ...@@ -70,6 +70,7 @@ match_subscript (gfc_array_ref *ar, int init, bool match_star)
i = ar->dimen + ar->codimen; i = ar->dimen + ar->codimen;
gfc_gobble_whitespace ();
ar->c_where[i] = gfc_current_locus; ar->c_where[i] = gfc_current_locus;
ar->start[i] = ar->end[i] = ar->stride[i] = NULL; ar->start[i] = ar->end[i] = ar->stride[i] = NULL;
......
...@@ -201,6 +201,7 @@ match_level_1 (gfc_expr **result) ...@@ -201,6 +201,7 @@ match_level_1 (gfc_expr **result)
locus where; locus where;
match m; match m;
gfc_gobble_whitespace ();
where = gfc_current_locus; where = gfc_current_locus;
uop = NULL; uop = NULL;
m = match_defined_operator (&uop); m = match_defined_operator (&uop);
......
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