aboutsummaryrefslogtreecommitdiff
path: root/gcc/memmodel.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2020-07-21 01:15:36 +0200
committerHans-Peter Nilsson <hp@bitrange.com>2020-07-21 01:17:26 +0200
commite21a33c232038574c67cb2a9222c4d5fbe33f7d3 (patch)
treeb01f7867bce03f8b7ad395543012a9a5166ad62e /gcc/memmodel.h
parent932fbc868ad429167a3d4d5625aa9d6dc0b4506b (diff)
downloadgcc-e21a33c232038574c67cb2a9222c4d5fbe33f7d3.zip
gcc-e21a33c232038574c67cb2a9222c4d5fbe33f7d3.tar.gz
gcc-e21a33c232038574c67cb2a9222c4d5fbe33f7d3.tar.bz2
mmix: support -fstack-usage
MMIX has two stacks; the regular one using register $254 as a convention and the register-stack, pushed and popped by call instructions (usually). The decision to only report the stack usage of the regular stack (and not of the register stack) may be updated, perhaps the sum is better. This initial decision is helped a little bit by the order of passes: the size of the register-stack is calculated only later (in the machine-dependent reorg pass), long after finalization of the stack-usage info (in the prologue/epilogue pass). No regressions for mmix-knuth-mmixware (but a whole lot more PASSes), committed. gcc: * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total allocated size and set current_function_static_stack_size, if flag_stack_usage_info.
Diffstat (limited to 'gcc/memmodel.h')
0 files changed, 0 insertions, 0 deletions