From 83b2a5f40d000704c1c4184b3c2d08fc00637a69 Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Mon, 9 Apr 2018 15:05:30 +0000 Subject: [PATCH] [ARC] Fix stack usage info for naked functions. gcc/ 2018-04-09 Alexey Brodkin * config/arc/arc.c (arc_expand_prologue): Set stack usage info also for naked functions. From-SVN: r259238 --- gcc/ChangeLog | 5 +++++ gcc/config/arc/arc.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2328fd78102..102acd7a576 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-09 Alexey Brodkin + + * config/arc/arc.c (arc_expand_prologue): Set stack usage info + also for naked functions. + 2018-04-09 Claudiu Zissulescu * config/arc/arc.md (add_shift): New pattern. diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 32fcb81880a..3cb4ba5b4dd 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -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 (); -- 2.30.2