diff options
author | Cesar Philippidis <cesar@codesourcery.com> | 2018-12-09 04:48:26 -0800 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2018-12-09 13:48:26 +0100 |
commit | 65b5f496995864ec8d789f232ea25329fbf0bf62 (patch) | |
tree | efbbb9d02069970db68965c00676eb20b16a7273 /gcc/fortran/trans-openmp.c | |
parent | 4b195d270ca3fb13ffa0881cf0b4e92b25f7a560 (diff) | |
download | gcc-65b5f496995864ec8d789f232ea25329fbf0bf62.zip gcc-65b5f496995864ec8d789f232ea25329fbf0bf62.tar.gz gcc-65b5f496995864ec8d789f232ea25329fbf0bf62.tar.bz2 |
Correct the reported line number in C++ combined OpenACC directives
The C++ FE doesn't set the expr_location of the split acc loop in combined acc
parallel/kernels loop directives. This only happens for with combined
directives, otherwise cp_parser_omp_construct would be responsible for setting
the location. After fixing this bug, I was able to resolve a couple of long
standing diagnostics discrepancies between the C/C++ FEs in the test suite.
gcc/cp/
* parser.c (cp_parser_oacc_kernels_parallel): Adjust EXPR_LOCATION
on the combined acc loop.
gcc/testsuite/
* c-c++-common/goacc/combined-directives-3.c: New test.
* c-c++-common/goacc/loop-2-kernels.c (void K): Adjust test.
* c-c++-common/goacc/loop-2-parallel.c (void P): Adjust test.
* c-c++-common/goacc/loop-3.c (void p2): Adjust test.
Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
From-SVN: r266923
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions