Commit 83b2a5f4 by Alexey Brodkin Committed by Claudiu Zissulescu

[ARC] Fix stack usage info for naked functions.

gcc/
2018-04-09  Alexey Brodkin <abrodkin@synopsys.com>

	* config/arc/arc.c (arc_expand_prologue): Set stack usage info
	also for naked functions.

From-SVN: r259238
parent f7ace5d5
2018-04-09 Alexey Brodkin <abrodkin@synopsys.com>
* config/arc/arc.c (arc_expand_prologue): Set stack usage info
also for naked functions.
2018-04-09 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (add_shift): New pattern.
......
......@@ -3149,7 +3149,11 @@ arc_expand_prologue (void)
/* Naked functions don't have prologue. */
if (ARC_NAKED_P (fn_type))
return;
{
if (flag_stack_usage_info)
current_function_static_stack_size = 0;
return;
}
/* Compute total frame size. */
size = arc_compute_frame_size ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment