From d3544ca3cc99335afd11751fde4f41dc7c7444c5 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sun, 3 Apr 2016 10:54:17 -0700 Subject: fix naked function attribute --- gcc/config/arm/thumb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc') 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++) -- cgit v1.2.3