https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97289

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:44e20dce597328f3cb00e997fa90b95a2b710d4c

commit r11-3669-g44e20dce597328f3cb00e997fa90b95a2b710d4c
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Oct 6 09:25:00 2020 +0200

    openmp: Fix ICE in omp_discover_declare_target_tgt_fn_r

    This ICEs because node->alias_target is (not yet) a FUNCTION_DECL, but
    IDENTIFIER_NODE.

    I guess we should retry the discovery before LTO streaming out, the reason
    to do it this early is that it can affect the gimplification and omp
lowering.

    2020-10-06  Jakub Jelinek  <ja...@redhat.com>

            PR middle-end/97289
            * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Only follow
            node->alias_target if it is a FUNCTION_DECL.

            * c-c++-common/gomp/pr97289.c: New test.

Reply via email to