projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895fdc1
)
i386: Set the stack usage to 0 for naked functions
author
Pat Bernardi
<bernardi@adacore.com>
Sun, 1 Nov 2020 17:51:08 +0000
(18:51 +0100)
committer
Uros Bizjak
<ubizjak@gmail.com>
Sun, 1 Nov 2020 17:51:08 +0000
(18:51 +0100)
gcc/ChangeLog
* config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
for naked functions.
gcc/config/i386/i386.c
patch
|
blob
|
history
diff --git
a/gcc/config/i386/i386.c
b/gcc/config/i386/i386.c
index f5f25eb95c946d92f1b35b57cf1cdc2f7f2e17e0..8aa9516edea66a27e8b810b2fbf4964c9161a943 100644
(file)
--- 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 ();