https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046
--- Comment #18 from Tom de Vries <vries at gcc dot gnu.org> ---
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  <t...@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

Reply via email to