Commit 61a6dd99 by Jim Wilson

(only_leaf_regs_used): Check for global_regs.

From-SVN: r2130
parent ff92a691
...@@ -2515,7 +2515,8 @@ only_leaf_regs_used () ...@@ -2515,7 +2515,8 @@ only_leaf_regs_used ()
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
{ {
if (regs_ever_live[i] > permitted_reg_in_leaf_functions[i]) if ((regs_ever_live[i] || global_regs[i])
&& ! permitted_reg_in_leaf_functions[i])
return 0; return 0;
} }
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment