> I'll take a look. Thanks. The stack usage reported through current_function_static_stack_size by the back-end must comprise the amount of stack from just before the call to after the stack is established. For example on i386:
eric@polaris:> cat t.c int main (void) { return 0; } eric@polaris:> gcc/xgcc -Bgcc -S t.c -m32 -fstack-usage -fomit-frame-pointer eric@polaris:> cat t.s .file "t.c" .text .align 2 .globl main .type main, @function main: .LFB0: .cfi_startproc movl $0, %eax nop ret .cfi_endproc .LFE0: .size main, .-main eric@polaris:> cat t.su t.c:1:5:main 4 static -- Eric Botcazou