Improve diagnostic messages of "#pragma omp cancel", "#pragma omp cancellation point...
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 29 Jun 2016 09:08:04 +0000 (11:08 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 29 Jun 2016 09:08:04 +0000 (11:08 +0200)
commit54d19c3b7fb38097973a57b6e822e15cbcbd031d
tree607bd431945a31016513565efdb3f36e5a571dfb
parentf9d8d99478f3b02e55a69b166a70646c87a7f5cd
Improve diagnostic messages of "#pragma omp cancel", "#pragma omp cancellation point" parsing

gcc/c/
* c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
Move pragma context checking into...
(c_parser_omp_cancellation_point): ... here, and improve
diagnostic messages.
* c-typeck.c (c_finish_omp_cancel)
(c_finish_omp_cancellation_point): Improve diagnostic messages.
gcc/cp/
* parser.c (cp_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
Move pragma context checking into...
(cp_parser_omp_cancellation_point): ... here, and improve
diagnostic messages.
* semantics.c (finish_omp_cancel, finish_omp_cancellation_point):
Improve diagnostic messages.
gcc/testsuite/
* c-c++-common/gomp/cancel-1.c: Extend.

From-SVN: r237843
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/cancel-1.c