diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-08-26 17:23:37 +0000 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gcc.gnu.org> | 2016-08-26 17:23:37 +0000 |
commit | 7695d1e3e2b79d3a1cb27d88665f66dcd1524322 (patch) | |
tree | e97d5e147fd9d75060cd0e4ae0d1c5cb0028999c | |
parent | d0b0fbd9fce2f30a82558bf2308b3a7b56c2f364 (diff) | |
download | gcc-7695d1e3e2b79d3a1cb27d88665f66dcd1524322.zip gcc-7695d1e3e2b79d3a1cb27d88665f66dcd1524322.tar.gz gcc-7695d1e3e2b79d3a1cb27d88665f66dcd1524322.tar.bz2 |
xtensa: report stack usage
This enables options -fstack-usage and -Wstack-usage.
2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
gcc/
* config/xtensa/xtensa.c (xtensa_expand_prologue): Update
current_function_static_stack_size variable with the static
stack frame size of the current function when
flag_stack_usage_info is enabled.
From-SVN: r239785
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72dc183..b229c4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-08-26 Max Filippov <jcmvbkbc@gmail.com> + + * config/xtensa/xtensa.c (xtensa_expand_prologue): Update + current_function_static_stack_size variable with the static + stack frame size of the current function when + flag_stack_usage_info is enabled. + 2016-08-26 Nathan Sidwell <nathan@acm.org> * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 64d089b..917ea94 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2678,6 +2678,9 @@ xtensa_expand_prologue (void) total_size = compute_frame_size (get_frame_size ()); + if (flag_stack_usage_info) + current_function_static_stack_size = total_size; + if (TARGET_WINDOWED_ABI) { if (total_size < (1 << (12+3))) |