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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ilya Leoshkevich <i...@gcc.gnu.org>:

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

commit r14-7012-gba4cfef0a45dd50e16ca7bee158bc630fa646ee7
Author: Ilya Leoshkevich <i...@linux.ibm.com>
Date:   Mon Jan 8 10:11:59 2024 +0100

    asan: Do not call asan_function_start () without the current function
[PR113251]

    Using ASAN on i686-linux with -fPIC causes an ICE, because when
    pc_thunks are generated, there is no current function anymore, but
    asan_function_start () expects one.

    Fix by not calling asan_function_start () without one.

    A narrower fix would be to temporarily disable ASAN around pc_thunk
    generation.  However, the issue looks generic enough, and may affect
    less often tested configurations, so go for a broader fix.

    Fixes: e66dc37b299c ("asan: Align .LASANPC on function boundary")
    Suggested-by: Jakub Jelinek <ja...@redhat.com>
    Signed-off-by: Ilya Leoshkevich <i...@linux.ibm.com>

    gcc/ChangeLog:

            PR sanitizer/113251
            * varasm.cc (assemble_function_label_raw): Do not call
            asan_function_start () without the current function.

Reply via email to