(only_leaf_regs_used): Check for global_regs.

From-SVN: r2130
This commit is contained in:
Jim Wilson 1992-09-15 18:03:48 -07:00
parent ff92a69118
commit 61a6dd99fd

View File

@ -2515,7 +2515,8 @@ only_leaf_regs_used ()
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 1;