r256045 - in /trunk: gcc/ChangeLog gcc/lto-stre...

vries@gcc.gnu.org vries@gcc.gnu.org
Sat Dec 30 17:02:00 GMT 2017


Author: vries
Date: Sat Dec 30 17:02:00 2017
New Revision: 256045

URL: https://gcc.gnu.org/viewcvs?rev=256045&root=gcc&view=rev
Log:
Prune removed funcs from offload table

2017-12-30  Tom de Vries  <tom@codesourcery.com>

	PR libgomp/83046
	* omp-expand.c (expand_omp_target): If in_lto_p, mark offload_funcs with
	DECL_PRESERVE_P.
	* lto-streamer-out.c (prune_offload_funcs): New function.  Remove
	offload_funcs entries that no longer have a corresponding cgraph_node.
	Mark the remaining ones as DECL_PRESERVE_P.
	(output_lto): Call prune_offload_funcs.

	* testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
	* testsuite/libgomp.c-c++-common/pr83046.c: New test.

Added:
    trunk/libgomp/testsuite/libgomp.c-c++-common/pr83046.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/pr83046.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-streamer-out.c
    trunk/gcc/omp-expand.c
    trunk/libgomp/ChangeLog



More information about the Gcc-cvs mailing list