arm.c (arm_compute_static_chain_stack_bytes): New function.
authorAndrew Jenner <andrew@codesourcery.com>
Wed, 30 Jul 2008 16:28:01 +0000 (16:28 +0000)
committerAndrew Jenner <andrewjenner@gcc.gnu.org>
Wed, 30 Jul 2008 16:28:01 +0000 (16:28 +0000)
commit35596784bce48f0115713211d8a50a8fcbf5765d
tree6fba9d2332e924a4748f8bebafcd41d640341793
parent5cc6fa4136cc864b40250c61bffda2f506249192
arm.c (arm_compute_static_chain_stack_bytes): New function.

* config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
function.
(arm_compute_initial_elimination_offset): Use it.
(arm_compute_save_reg_mask): Include static chain save slot when
calculating alignment.
(arm_get_frame_offsets): Ditto.
(thumb1_compute_save_reg_mask): Ensure we have a low register saved
that we can use to decrement the stack when the stack decrement
could be too big for an immediate value in a single insn.
(thumb1_expand_prologue): Avoid using r12 for stack decrement.

From-SVN: r138327
gcc/ChangeLog
gcc/config/arm/arm.c