[Bug middle-end/94004] [8/9/10 Regression] missing -Walloca on calls to alloca due to -Wno-system-headers

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 4 15:17:00 GMT 2020


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #2)
> Bisection points to r254630 which doesn't look related to -Walloca:

It is related, in particular the
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/gimple.c?limit_changes=0&r1=254630&r2=254629&pathrev=254630
hunk.
        * gimple.c (gimple_build_call_from_tree): Set call location.
which sets the location on the __builtin_alloca call newly to one with sysp =
true flag.


More information about the Gcc-bugs mailing list