diff options
Diffstat (limited to 'gcc/config/arm/thumb.c')
-rwxr-xr-x | gcc/config/arm/thumb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/arm/thumb.c b/gcc/config/arm/thumb.c index 8953376..c5ff67c 100755 --- a/gcc/config/arm/thumb.c +++ b/gcc/config/arm/thumb.c @@ -957,7 +957,8 @@ thumb_unexpanded_epilogue() int leaf_function = leaf_function_p(); int had_to_push_lr; - if (return_used_this_function) + if (arm_naked_function_p(current_function_decl) + || return_used_this_function) return ""; for (regno = 0; regno < 8; regno++) |