diff options
author | YamaArashi <shadow962@live.com> | 2016-04-03 10:54:17 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-03 10:54:17 -0700 |
commit | d3544ca3cc99335afd11751fde4f41dc7c7444c5 (patch) | |
tree | 7912236596a9200395e8ded672fc2f314e049ec3 /gcc | |
parent | 2f7c2797c876349f766521284418581fca4c3d02 (diff) |
fix naked function attribute
Diffstat (limited to 'gcc')
-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++) |