fix naked function attribute

This commit is contained in:
YamaArashi 2016-04-03 10:54:17 -07:00
parent 2f7c2797c8
commit d3544ca3cc

View File

@ -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++)