arm.c (arm_get_frame_offsets): Don't use fixed regs for stack alignment padding.

2012-07-24  Roland McGrath  <mcgrathr@google.com>

	* arm.c (arm_get_frame_offsets): Don't use fixed regs for 
	stack alignment padding.

From-SVN: r189807
This commit is contained in:
Roland McGrath 2012-07-24 11:53:14 +00:00 committed by Richard Earnshaw
parent 9fecd0058b
commit e2a6dd68af
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-07-24 Roland McGrath <mcgrathr@google.com>
* arm.c (arm_get_frame_offsets): Don't use fixed regs for
stack alignment padding.
2012-07-24 Uros Bizjak <ubizjak@gmail.com>
PR target/53961

View File

@ -16178,7 +16178,11 @@ arm_get_frame_offsets (void)
else
for (i = 4; i <= (TARGET_THUMB1 ? LAST_LO_REGNUM : 11); i++)
{
if ((offsets->saved_regs_mask & (1 << i)) == 0)
/* Avoid fixed registers; they may be changed at
arbitrary times so it's unsafe to restore them
during the epilogue. */
if (!fixed_regs[i]
&& (offsets->saved_regs_mask & (1 << i)) == 0)
{
reg = i;
break;