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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:847391913443069358986b398c2f86dac906d742

commit r13-8454-g847391913443069358986b398c2f86dac906d742
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Mar 13 09:19:05 2024 +0100

    asan: Fix ICE during instrumentation of returns_twice calls [PR112709]

    The following patch on top of the previously posted ubsan/gimple-iterator
    one handles asan the same.  While the case of returning by hidden reference
    is handled differently because of the first recently posted asan patch,
    this deals with instrumentation of the aggregates returned in registers
    case as well as instrumentation of loads from aggregate memory in the
    function arguments of returns_twice calls.

    2024-03-13  Jakub Jelinek  <ja...@redhat.com>

            PR sanitizer/112709
            * asan.cc (maybe_create_ssa_name, maybe_cast_to_ptrmode,
            build_check_stmt, maybe_instrument_call, asan_expand_mark_ifn): Use
            gsi_safe_insert_before instead of gsi_insert_before.

            * gcc.dg/asan/pr112709-2.c: New test.

    (cherry picked from commit 6586359e8e4c611dd96129b5d4f24023949ac3fc)

Reply via email to