r273464 - in /trunk/gcc: ChangeLog gimplify.c o...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Sat Jul 13 06:25:00 GMT 2019


Author: jakub
Date: Sat Jul 13 06:25:04 2019
New Revision: 273464

URL: https://gcc.gnu.org/viewcvs?rev=273464&root=gcc&view=rev
Log:
	* gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
	(omp_notice_threadprivate_variable): Diagnose threadprivate variable
	uses inside of order(concurrent) constructs.
	(gimplify_scan_omp_clauses): Set ctx->order_concurrent if
	OMP_CLAUSE_ORDER is seen.
	* omp-low.c (struct omp_context): Add order_concurrent member.
	(scan_sharing_clauses): Set ctx->order_concurrent if
	OMP_CLAUSE_ORDER is seen.
	(check_omp_nesting_restrictions): Diagnose ordered or atomic inside
	of simd order(concurrent).  Diagnose constructs not allowed inside of
	for order(concurrent).
	(setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
	complaining about static double setjmp (double); or class static
	methods or non-global namespace setjmps.
	(omp_runtime_api_call): New function.
	(scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
	order(concurrent) loops.

	* c-c++-common/gomp/order-3.c: New test.
	* c-c++-common/gomp/order-4.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/gomp/order-3.c
    trunk/gcc/testsuite/c-c++-common/gomp/order-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list