Fix column information for omp_clauses in Fortran code
authorFrederik Harwath <frederik@codesourcery.com>
Mon, 9 Dec 2019 16:30:25 +0000 (16:30 +0000)
committerFrederik Harwath <frederik@gcc.gnu.org>
Mon, 9 Dec 2019 16:30:25 +0000 (16:30 +0000)
commit9b4c16f2c93a089d81c9e6f3ea6d1abc36fd1ad1
treec0c15ebbebb8fae74affdf821fa13903914e08c9
parent28dd61b782453624f0d10e6ace73b5e20506a4a6
Fix column information for omp_clauses in Fortran code

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
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c