r259955 - in /branches/gomp-5_0-branch: gcc/Cha...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Fri May 4 18:32:00 GMT 2018


Author: jakub
Date: Fri May  4 18:32:38 2018
New Revision: 259955

URL: https://gcc.gnu.org/viewcvs?rev=259955&root=gcc&view=rev
Log:
	* tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_NONTEMPORAL.
	* tree.c (omp_clause_num_ops, omp_clause_code_name): Add nontemporal
	clause entries.
	(walk_tree_1): Handle OMP_CLAUSE_NONTEMPORAL.
	* gimplify.c (enum gimplify_omp_var_data): Add GOVD_NONTEMPORAL.
	(gimplify_scan_omp_clauses): Handle cancel and simd
	OMP_CLAUSE_IF_MODIFIERs.  Handle OMP_CLAUSE_NONTEMPORAL.
	(gimplify_adjust_omp_clauses_1): Ignore GOVD_NONTEMPORAL.
	(gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_NONTEMPORAL.
	* omp-grid.c (grid_eliminate_combined_simd_part): Formatting fix.
	Fix comment typos.
	* tree-nested.c (convert_local_omp_clauses): Handle
	OMP_CLAUSE_NONTEMPORAL.
	(convert_nonlocal_omp_clauses): Likewise.  Remove useless test.
	* tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_NONTEMPORAL.
	Handle cancel and simd OMP_CLAUSE_IF_MODIFIERs.
	* omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_NONTEMPORAL.
gcc/c-family/
	* c-omp.c (c_omp_split_clauses): Handle OMP_CLAUSE_NONTEMPORAL.  Handle
	splitting OMP_CLAUSE_IF also to OMP_SIMD.
	* c-pragma.h (enum pragma_omp_clause): Add
	PRAGMA_OMP_CLAUSE_NONTEMPORAL.
gcc/c/
	* c-parser.c (c_parser_omp_clause_name): Handle nontemporal clause.
	(c_parser_omp_clause_if): Handle cancel and simd modifiers.
	(c_parser_omp_clause_nontemporal): New function.
	(c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_NONTEMPORAL.
	(OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses.
	* c-typeck.c (c_finish_omp_cancel): Diagnose if clause with modifier
	other than cancel.
	(c_finish_omp_clauses): Handle OMP_CLAUSE_NONTEMPORAL.
gcc/cp/
	* parser.c (cp_parser_omp_clause_name): Handle nontemporal clause.
	(cp_parser_omp_clause_if): Handle cancel and simd modifiers.
	(cp_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_NONTEMPORAL.
	(OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses.
	* semantics.c (finish_omp_clauses): Diagnose if clause with modifier
	other than cancel.
	(finish_omp_cancel): Handle OMP_CLAUSE_NONTEMPORAL.
	* pt.c (tsubst_omp_clauses): Likewise.
gcc/testsuite/
	* c-c++-common/gomp/if-1.c (foo): Add some further tests.
	* c-c++-common/gomp/if-2.c (foo): Likewise.  Expect slightly different
	diagnostics wording in one case.
	* c-c++-common/gomp/if-3.c: New test.
	* c-c++-common/gomp/nontemporal-1.c: New test.
libgomp/
	* testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
	in some cases.

Added:
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/if-3.c
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/nontemporal-1.c
Modified:
    branches/gomp-5_0-branch/gcc/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c-family/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c-family/c-omp.c
    branches/gomp-5_0-branch/gcc/c-family/c-pragma.h
    branches/gomp-5_0-branch/gcc/c/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c/c-parser.c
    branches/gomp-5_0-branch/gcc/c/c-typeck.c
    branches/gomp-5_0-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/cp/parser.c
    branches/gomp-5_0-branch/gcc/cp/pt.c
    branches/gomp-5_0-branch/gcc/cp/semantics.c
    branches/gomp-5_0-branch/gcc/gimplify.c
    branches/gomp-5_0-branch/gcc/omp-grid.c
    branches/gomp-5_0-branch/gcc/omp-low.c
    branches/gomp-5_0-branch/gcc/testsuite/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/if-1.c
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/if-2.c
    branches/gomp-5_0-branch/gcc/tree-core.h
    branches/gomp-5_0-branch/gcc/tree-nested.c
    branches/gomp-5_0-branch/gcc/tree-pretty-print.c
    branches/gomp-5_0-branch/gcc/tree.c
    branches/gomp-5_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-5_0-branch/libgomp/testsuite/libgomp.c/cancel-for-2.c



More information about the Gcc-cvs mailing list