gcc/libgomp/testsuite/libgomp.c-c++-common
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
..
atomic-18.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
cancel-parallel-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
cancel-taskgroup-1.c
cancel-taskgroup-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
cancel-taskgroup-3.c re PR libgomp/87995 (libgomp.c/../libgomp.c-c++-common/cancel-taskgroup-3.c fails consistently after r265930) 2018-12-08 09:58:24 +01:00
cancel-taskgroup-4.c omp-low.c (check_omp_nesting_restrictions): Allow cancel or cancellation point with taskgroup clause inside of taskloop. 2018-12-02 13:48:42 +01:00
depend-iterator-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
depend-iterator-2.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
depend-mutexinout-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
depend-mutexinout-2.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
depobj-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
display-affinity-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-1.h [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-2.h builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-3.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-4.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-5.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-6.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
for-7.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-8.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-9.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-10.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-11.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-12.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-13.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-14.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-15.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
for-16.c omp-builtins.def (BUILT_IN_GOMP_LOOP_NONMONOTONIC_RUNTIME_START, [...]): Fix up function types - remove one argument. 2018-12-12 23:47:55 +01:00
function-not-offloaded-aux.c [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
function-not-offloaded.c [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
loop-13.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
loop-14.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
loop-15.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
master-combined-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
monotonic-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
monotonic-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
nonmonotonic-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
nonmonotonic-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
ordered-4.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pause-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pause-2.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pr45784.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr64824.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr64868.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-3.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-4.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-5.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-6.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-7.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-8.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-9.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr66199-10.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pr66199-11.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pr66199-12.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pr66199-13.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pr66199-14.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
pr69389.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
pr81875.c
pr83046.c Prune removed funcs from offload table 2017-12-30 17:02:00 +00:00
simd-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
simd-14.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
simd-15.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
simd-16.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
simd-17.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
target-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
target-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
target-10.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
target-13.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
task-reduction-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-2.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-3.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-4.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-5.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-6.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-7.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-8.c task-reduction-8.c (bar): Add in_reduction clause for s[0]. 2018-11-08 20:38:21 +01:00
task-reduction-9.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-11.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-12.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task-reduction-13.c workshare-reduction-1.c: New test. 2018-11-09 14:02:50 +01:00
task-reduction-14.c workshare-reduction-1.c: New test. 2018-11-09 14:02:50 +01:00
taskgroup-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
taskloop-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
taskloop-2.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
taskloop-3.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
taskloop-4.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
taskloop-reduction-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
taskloop-reduction-2.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
taskloop-reduction-3.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
taskloop-reduction-4.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
taskwait-depend-1.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
udr-1.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
variable-not-offloaded.c [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00