gcc/libgomp
Tom de Vries b0aba46ca6 [offloading] Error on missing symbols
When compiling an OpenMP or OpenACC program containing a reference in the
offloaded code to a symbol that has not been included in the offloaded code,
the offloading compiler may ICE in lto1.

Fix this by erroring out instead, mentioning the problematic symbol:
...
error: variable 'var' has been referenced in offloaded code but hasn't
  been marked to be included in the offloaded code
lto1: fatal error: errors during merging of translation units
compilation terminated.
...

Build x86_64 with nvptx accelerator and reg-tested libgomp.

Build x86_64 and reg-tested libgomp.

2018-12-14  Tom de Vries  <tdevries@suse.de>

	* lto-cgraph.c (verify_node_partition): New function.
	(input_overwrite_node, input_varpool_node): Use verify_node_partition.

	* testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
	* testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
	* testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.

From-SVN: r267134
2018-12-14 13:48:56 +00:00
..
config [libgomp, nvptx] Fix libgomp.c/target-5.c compilation 2018-12-13 18:04:05 +00:00
plugin
testsuite [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
acinclude.m4
aclocal.m4
affinity-fmt.c [libgomp, nvptx] Fix libgomp.c/target-5.c compilation 2018-12-13 18:04:05 +00:00
affinity.c
alloc.c
atomic.c
barrier.c
ChangeLog [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
ChangeLog.graphite
config.h.in
configure
configure.ac
configure.tgt
critical.c
env.c
error.c
fortran.c [libgomp, nvptx] Fix libgomp.c/target-5.c compilation 2018-12-13 18:04:05 +00:00
hashtab.h
icv-device.c
icv.c
iter_ull.c
iter.c
libgomp_f.h.in
libgomp_g.h
libgomp-plugin.c
libgomp-plugin.h
libgomp.h [libgomp, nvptx] Fix libgomp.c/target-5.c compilation 2018-12-13 18:04:05 +00:00
libgomp.map
libgomp.spec.in
libgomp.texi
lock.c
loop_ull.c
loop.c
Makefile.am
Makefile.in Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu. 2018-11-26 22:03:41 +01:00
oacc-async.c
oacc-cuda.c
oacc-host.c
oacc-init.c
oacc-int.h
oacc-mem.c
oacc-parallel.c [PR88288, OpenACC, libgomp] Adjust offsets for present data clauses 2018-11-30 21:39:49 +01:00
oacc-plugin.c
oacc-plugin.h
omp_lib.f90.in
omp_lib.h.in
omp.h.in
openacc_lib.h
openacc.f90
openacc.h
ordered.c
parallel.c
priority_queue.c
priority_queue.h
sections.c
secure_getenv.h
single.c
splay-tree.c
splay-tree.h
target.c Coalesce host to device transfers in libgomp: not for link pointer 2018-12-09 13:47:23 +01:00
task.c
taskloop.c
team.c
teams.c
work.c