The location of all OpenMP/OpenACC clauses on any given line in Fortran code
always points to the first clause on that line. Hence, the column information
is wrong for all clauses but the first one.
Use the correct location for each clause instead.
2019-12-09 Frederik Harwath <frederik@codesourcery.com>
/gcc/fortran/
* trans-openmp.c (gfc_trans_omp_reduction_list): Pass correct location for each
clause to build_omp_clause.
From-SVN: r279132
+2019-12-09 Frederik Harwath <frederik@codesourcery.com>
+
+ * trans-openmp.c (gfc_trans_omp_reduction_list): Pass correct location for each
+ clause to build_omp_clause.
+
2018-12-08 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/92780
tree t = gfc_trans_omp_variable (namelist->sym, false);
if (t != error_mark_node)
{
- tree node = build_omp_clause (gfc_get_location (&where),
+ tree node = build_omp_clause (gfc_get_location (&namelist->where),
OMP_CLAUSE_REDUCTION);
OMP_CLAUSE_DECL (node) = t;
if (mark_addressable)