+2018-01-31 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/84116
+ * openmp.c (gfc_match_omp_clauses): If all the linear
+ gfc_match_omp_variable_list calls failed, don't gfc_free_omp_namelist
+ nor set *head = NULL. Formatting fixes.
+
2018-01-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/84088
else if (gfc_match_omp_variable_list (" val (",
&c->lists[OMP_LIST_LINEAR],
false, NULL, &head)
- == MATCH_YES)
+ == MATCH_YES)
linear_op = OMP_LINEAR_VAL;
else if (gfc_match_omp_variable_list (" uval (",
&c->lists[OMP_LIST_LINEAR],
false, NULL, &head)
- == MATCH_YES)
+ == MATCH_YES)
linear_op = OMP_LINEAR_UVAL;
else if (gfc_match_omp_variable_list ("",
&c->lists[OMP_LIST_LINEAR],
false, &end_colon, &head)
- == MATCH_YES)
+ == MATCH_YES)
linear_op = OMP_LINEAR_DEFAULT;
else
{
- gfc_free_omp_namelist (*head);
gfc_current_locus = old_loc;
- *head = NULL;
break;
}
if (linear_op != OMP_LINEAR_DEFAULT)