gcc/libgomp/testsuite
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
lib
libgomp.c tree-nested.c (convert_nonlocal_omp_clauses, [...]): Handle OMP_CLAUSE_IN_REDUCTION... 2018-12-02 13:50:50 +01:00
libgomp.c-c++-common [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
libgomp.c++ re PR libgomp/88460 ([nvptx] FAIL: libgomp.c++/for-24.C (internal compiler error)) 2018-12-13 13:53:19 +01:00
libgomp.fortran re PR fortran/88463 (Rejects conforming source, OpenMP Parallel region Default(None) reference to module parameter array, separate source) 2018-12-12 23:49:35 +01:00
libgomp.graphite
libgomp.hsa.c
libgomp.oacc-c
libgomp.oacc-c-c++-common [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
libgomp.oacc-c++ [OpenACC] Support C++ "this" in OpenACC directives 2018-10-29 14:31:20 +00:00
libgomp.oacc-fortran Add libgomp.oacc-fortran/lib-16-2.f90 2018-11-30 21:38:57 +01:00
libgomp-test-support.exp.in
Makefile.am Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu. 2018-11-26 22:03:41 +01:00
Makefile.in Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu. 2018-11-26 22:03:41 +01:00