https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104449
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Confirmed. With -fstack-check=generic, __builtin_alloca_with_align is marked > as being able to throw but asan decides to insert its annonations right > after the builtin call instead of on the branch after the function call. With any -fstack-check option to be exact: /* If we're checking the stack, `alloca' can throw. */ const int alloca_flags = ECF_MALLOC | ECF_LEAF | (flag_stack_check ? 0 : ECF_NOTHROW);