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

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

https://gcc.gnu.org/g:07b397d7720c062d91669d49fbfb644fb3eb81d8

commit r11-10684-g07b397d7720c062d91669d49fbfb644fb3eb81d8
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Nov 24 11:29:54 2022 +0100

    asan: Fix up error recovery for too large frames [PR107317]

    asan_emit_stack_protection and functions it calls have various asserts that
    verify sanity of the stack protection instrumentation.  But, that
    verification can easily fail if we've diagnosed a frame offset overflow.
    asan_emit_stack_protection just emits some extra code in the prologue,
    if we've reported errors, we aren't producing assembly, so it doesn't
    really matter if we don't include the protection code, compilation
    is going to fail anyway.

    2022-11-24  Jakub Jelinek  <ja...@redhat.com>

            PR middle-end/107317
            * asan.c: Include diagnostic-core.h.
            (asan_emit_stack_protection): Return NULL early if seen_error ().

            * gcc.dg/asan/pr107317.c: New test.

    (cherry picked from commit b6330a7685476fc30b8ae9bbf3fca1a9b0d4be95)

Reply via email to