This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC][AArch64] function prologue analyzer in linux kernel
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: gcc at gcc dot gnu dot org, AKASHI Takahiro <takahiro dot akashi at linaro dot org>, Will Deacon <will dot deacon at arm dot com>, "Richard Earnshaw (lists)" <Richard dot Earnshaw at arm dot com>
- Date: Tue, 12 Jan 2016 09:18:37 +0100
- Subject: Re: [RFC][AArch64] function prologue analyzer in linux kernel
- Authentication-results: sourceware.org; auth=none
- References: <567BA582 dot 4060707 at linaro dot org> <56949911 dot 7000902 at linaro dot org> <CA+=Sn1k4sd9-pjxFBxQGO_dX+ABV7cG2amaxNCBDNG_y3C18RA at mail dot gmail dot com>
> -fstack-usage does not work when there are VLAs or alloca's. So there
> is no way to figure that part out without analysis of the actual
> assembly code.
No, -fstack-usage always works, i.e. its output can always be relied upon;
when it cannot compute the maximum stack usage, it prints "unbounded".
--
Eric Botcazou