> -fstack-usage raises a "stack usage computation not supported for this target"
> warning when it encounters a naked function because the prologue returns early
> for naked function on i386. This patch sets the stack usage to zero for naked
> function, following the fix done for Arm by Eric Botcazou:
>
> https://gcc.gnu.org/pipermail/gcc-patches/2016-May/448258.html
>
> Bootstrapped and tested on x86_64-linux. If approved, I'll need a maintainer 
> to
> commit on my behalf.
>
> Thanks,
>
> Pat Bernardi
> Senior Software Engineer, AdaCore
>
>
> 2020-10-29  Pat Bernardi  <berna...@adacore.com>
>
> gcc/ChangeLog
>
> * config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
> for naked functions.

OK.

Thanks,
Uros.

Reply via email to