diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2021-02-24 02:22:58 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2021-02-24 18:38:29 +0100 |
commit | 9e0d8a375bae07486c839228a520eaed9004a4f3 (patch) | |
tree | 88485221a465a271694fd79336b152ee6923b2ca /libcpp/include | |
parent | 70aa0e6eef9d65744f37adc2a3cffef1a8217dc1 (diff) | |
download | gcc-9e0d8a375bae07486c839228a520eaed9004a4f3.zip gcc-9e0d8a375bae07486c839228a520eaed9004a4f3.tar.gz gcc-9e0d8a375bae07486c839228a520eaed9004a4f3.tar.bz2 |
cris: support -fstack-usage
All the bits were there, used with a pre-existing
-mmax-stackframe=SIZE which unfortunately seems to lack
test-cases.
Note that the early-return for -mno-prologue-epilogue (what
some targets call -mnaked) is deliberately not clearing
current_function_static_stack_size, as I consider that
erroneous usage but don't really care to emit a better error
message.
For stack-usage-1.c, like most ILP32 targets, CRIS (at -O0)
needs 4 bytes for the return-address. The default size of
256 seems ill chosen but not worth fixing.
gcc:
* config/cris/cris.c (cris_expand_prologue): Set
current_function_static_stack_size, if flag_stack_usage_info.
gcc/testsuite:
* gcc.dg/stack-usage-1.c: Adjust for CRIS.
Diffstat (limited to 'libcpp/include')
0 files changed, 0 insertions, 0 deletions