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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>:

https://gcc.gnu.org/g:a2f4b4b76cdd0a4150e82e69fae4a70c54b523d2

commit r12-5903-ga2f4b4b76cdd0a4150e82e69fae4a70c54b523d2
Author: David Malcolm <dmalc...@redhat.com>
Date:   Fri Dec 10 09:28:48 2021 -0500

    jit: set DECL_CONTEXT of RESULT_DECL [PR103562]

    libgccjit was failing to set the DECL_CONTEXT of function RESULT_DECLs,
    leading to them failing to be properly handled by the inlining machinery.
    Fixed thusly.

    gcc/jit/ChangeLog:
            PR jit/103562
            * jit-playback.c (gcc::jit::playback::context::new_function): Set
            DECL_CONTEXT of the result_decl.

    gcc/testsuite/ChangeLog:
            PR jit/103562
            * jit.dg/all-non-failing-tests.h: Add comment about...
            * jit.dg/test-pr103562.c: New test.

    Signed-off-by: David Malcolm <dmalc...@redhat.com>

Reply via email to