From: Eric Botcazou Date: Fri, 20 May 2016 20:51:18 +0000 (+0000) Subject: arm.c (arm_expand_prologue): Set the stack usage to 0 for naked functions. X-Git-Tag: releases/gcc-4.9.4~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f941da93138d9d9e63b68759773d511cae08ff7d;p=thirdparty%2Fgcc.git arm.c (arm_expand_prologue): Set the stack usage to 0 for naked functions. * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0 for naked functions. (thumb1_expand_prologue): Likewise. From-SVN: r236542 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 739e638374aa..fe3d796eefd2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-20 Eric Botcazou + + * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0 + for naked functions. + (thumb1_expand_prologue): Likewise. + 2016-05-20 Uros Bizjak * sched-deps.c (sched_analyze_2) : Also diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 3844275d3930..7fc7f0464ea0 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -20685,7 +20685,11 @@ arm_expand_prologue (void) /* Naked functions don't have prologues. */ if (IS_NAKED (func_type)) - return; + { + if (flag_stack_usage_info) + current_function_static_stack_size = 0; + return; + } /* Make a copy of c_f_p_a_s as we may need to modify it locally. */ args_to_push = crtl->args.pretend_args_size; @@ -26709,7 +26713,11 @@ thumb1_expand_prologue (void) /* Naked functions don't have prologues. */ if (IS_NAKED (func_type)) - return; + { + if (flag_stack_usage_info) + current_function_static_stack_size = 0; + return; + } if (IS_INTERRUPT (func_type)) {