]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/sparc/sparc.c
Stack usage support
[thirdparty/gcc.git] / gcc / config / sparc / sparc.c
index 50b981e749fa5630583de1924372e2dd71fe9a39..ba034e6d921d01f3043d6a898ef2ccfd08849e60 100644 (file)
@@ -4402,6 +4402,9 @@ sparc_expand_prologue (void)
   /* Advertise that the data calculated just above are now valid.  */
   sparc_prologue_data_valid_p = true;
 
+  if (flag_stack_usage)
+    current_function_static_stack_size = actual_fsize;
+
   if (flag_stack_check == STATIC_BUILTIN_STACK_CHECK && actual_fsize)
     sparc_emit_probe_stack_range (STACK_CHECK_PROTECT, actual_fsize);