diff options
author | Pat Bernardi <bernardi@adacore.com> | 2020-11-01 18:51:08 +0100 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2020-11-01 18:51:08 +0100 |
commit | 3784f161a383ead7d5fe9a5b68e4d07eccd82d49 (patch) | |
tree | 1e8e15bfa7c286e0e3d66166ff843cc0cb22beb2 /gcc | |
parent | 895fdc1f4c9ff1dfb18b80af838aa353363edb40 (diff) | |
download | gcc-3784f161a383ead7d5fe9a5b68e4d07eccd82d49.zip gcc-3784f161a383ead7d5fe9a5b68e4d07eccd82d49.tar.gz gcc-3784f161a383ead7d5fe9a5b68e4d07eccd82d49.tar.bz2 |
i386: Set the stack usage to 0 for naked functions
gcc/ChangeLog
* config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
for naked functions.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index f5f25eb..8aa9516 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -8142,7 +8142,11 @@ ix86_expand_prologue (void) rtx static_chain = NULL_RTX; if (ix86_function_naked (current_function_decl)) - return; + { + if (flag_stack_usage_info) + current_function_static_stack_size = 0; + return; + } ix86_finalize_stack_frame_flags (); |