===================================================================
@@ -1090,6 +1090,9 @@
tree attrs = TYPE_ATTRIBUTES (TREE_TYPE (current_function_decl));
bool all = lookup_attribute ("saveall", attrs) != NULL_TREE;
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = frame_size;
+
if (fkind != SUBROUTINE)
{
expand_interrupt_handler_prologue (spreg, fkind, all);
===================================================================
@@ -456,6 +456,9 @@
ft32_compute_frame ();
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = cfun->machine->size_for_adjusting_sp;
+
if (!must_link () && (cfun->machine->callee_saved_reg_size == 4))
{
insn =
===================================================================
@@ -896,6 +896,12 @@
/* Leave room for locals. */
h8300_emit_stack_adjustment (-1, round_frame_size (get_frame_size ()), true);
+
+ if (flag_stack_usage_info)
+ current_function_static_stack_size
+ = round_frame_size (get_frame_size ())
+ + (__builtin_popcount (saved_regs) * UNITS_PER_WORD)
+ + (frame_pointer_needed ? UNITS_PER_WORD : 0);
}
/* Return nonzero if we can use "rts" for the function currently being
===================================================================
@@ -2072,6 +2072,9 @@
}
}
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = cfun->machine->total_size;
+
emit_insn (gen_blockage ());
}
===================================================================
@@ -4123,6 +4123,9 @@
&& !m32c_function_needs_enter ())
cfun->machine->use_rts = 1;
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = frame_size;
+
if (frame_size > 254)
{
extra_frame_size = frame_size - 254;
===================================================================
@@ -1665,6 +1665,9 @@
if (! current_frame_info.initialized)
m32r_compute_frame_size (get_frame_size ());
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = current_frame_info.total_size;
+
gmask = current_frame_info.gmask;
/* These cases shouldn't happen. Catch them now. */
===================================================================
@@ -81,6 +81,14 @@
# define SIZE 254
#elif defined (__nios2__)
# define SIZE 252
+#elif defined (__v850__)
+#define SIZE 260
+#elif defined (__mn10300__)
+#define SIZE 252
+#elif defined (__H8300SX__) || defined (__H8300S__) || defined (__H8300H__) || defined (__H8300__)
+#define SIZE 252
+#elif defined (__M32R__)
+#define SIZE 252
#else
# define SIZE 256
#endif