Go to file
Jakub Jelinek 098f4e989b openmp: Assorted depend/affinity/iterator related fixes [PR100859]
The depend-iterator-3.C testcases shows various bugs.

1) tsubst_omp_clauses didn't handle OMP_CLAUSE_AFFINITY (should be
   handled like OMP_CLAUSE_DEPEND)
2) because locators can be arbitrary lvalue expressions, we need
   to allow for C++ array section base (especially when array section
   is just an array reference) FIELD_DECLs, handle them as this->member,
   but don't need to privatize in any way
3) similarly for this as base
4) depend(inout: this) is invalid, but for different reason than the reported
   one, again this is an expression, but not lvalue expression, so that
   should be reported
5) the ctor/dtor cloning in the C++ FE (which is using walk_tree with
   copy_tree_body_r) didn't handle iterators correctly, walk_tree normally
   doesn't walk TREE_PURPOSE of TREE_LIST, and in the iterator case
   that TREE_VEC contains also a BLOCK that needs special handling during
   copy_tree_body_r

2021-06-03  Jakub Jelinek  <jakub@redhat.com>

	PR c++/100859
gcc/
	* tree-inline.c (copy_tree_body_r): Handle iterators on
	OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
gcc/c/
	* c-typeck.c (c_finish_omp_clauses): Move OMP_CLAUSE_AFFINITY
	after depend only cases.
gcc/cp/
	* semantics.c (handle_omp_array_sections_1): For
	OMP_CLAUSE_{AFFINITY,DEPEND} handle FIELD_DECL base using
	finish_non_static_data_member and allow this as base.
	(finish_omp_clauses): Move OMP_CLAUSE_AFFINITY
	after depend only cases.  Let this be diagnosed by !lvalue_p
	case for OMP_CLAUSE_{AFFINITY,DEPEND} and remove useless
	assert.
	* pt.c (tsubst_omp_clauses): Handle OMP_CLAUSE_AFFINITY.
gcc/testsuite/
	* g++.dg/gomp/depend-iterator-3.C: New test.
	* g++.dg/gomp/this-1.C: Don't expect any diagnostics for
	this as base expression of depend array section, expect a different
	error wording for this as depend locator and add testcases
	for affinity clauses.
2021-06-03 10:38:08 +02:00
INSTALL
c++tools Daily bump. 2021-05-26 00:16:41 +00:00
config Daily bump. 2021-05-19 00:16:45 +00:00
contrib Daily bump. 2021-05-26 00:16:41 +00:00
fixincludes
gcc openmp: Assorted depend/affinity/iterator related fixes [PR100859] 2021-06-03 10:38:08 +02:00
gnattools
gotools
include
intl
libada
libatomic
libbacktrace
libcc1
libcody
libcpp Daily bump. 2021-05-21 00:16:57 +00:00
libdecnumber
libffi
libgcc
libgfortran Revert "PR98301 Add missing changelog entries." 2021-05-23 14:08:08 +02:00
libgo libgo: update configure to current sources 2021-05-18 19:57:54 -07:00
libgomp Daily bump. 2021-05-29 00:16:29 +00:00
libiberty
libitm
libobjc
liboffloadmic Daily bump. 2021-05-26 00:16:41 +00:00
libphobos
libquadmath
libsanitizer Daily bump. 2021-05-22 00:16:29 +00:00
libssp
libstdc++-v3 Daily bump. 2021-06-03 00:16:23 +00:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Daily bump. 2021-06-03 00:16:23 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS MAINTAINERS: Add DCO section 2021-06-02 09:45:49 -04:00
Makefile.def sim: depend on gnulib 2021-05-18 17:45:19 -04:00
Makefile.in sim: depend on gnulib 2021-05-18 17:45:19 -04:00
Makefile.tpl
README
ar-lib
compile
config-ml.in
config.guess
config.rpath
config.sub
configure sim: leverage gnulib 2021-05-29 10:59:54 -04:00
configure.ac sim: leverage gnulib 2021-05-29 10:59:54 -04:00
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
symlink-tree
test-driver
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.