Commit cabcf079 by Ian Lance Taylor

Don't always align reload stack slots to BIGGEST_ALIGNMENT

From-SVN: r13609
parent 4757e6a4
...@@ -2465,7 +2465,8 @@ alter_reg (i, from_reg) ...@@ -2465,7 +2465,8 @@ alter_reg (i, from_reg)
if (from_reg == -1) if (from_reg == -1)
{ {
/* No known place to spill from => no slot to reuse. */ /* No known place to spill from => no slot to reuse. */
x = assign_stack_local (GET_MODE (regno_reg_rtx[i]), total_size, -1); x = assign_stack_local (GET_MODE (regno_reg_rtx[i]), total_size,
inherent_size == total_size ? 0 : -1);
if (BYTES_BIG_ENDIAN) if (BYTES_BIG_ENDIAN)
/* Cancel the big-endian correction done in assign_stack_local. /* Cancel the big-endian correction done in assign_stack_local.
Get the address of the beginning of the slot. Get the address of the beginning of the slot.
...@@ -2497,7 +2498,8 @@ alter_reg (i, from_reg) ...@@ -2497,7 +2498,8 @@ alter_reg (i, from_reg)
total_size = spill_stack_slot_width[from_reg]; total_size = spill_stack_slot_width[from_reg];
} }
/* Make a slot with that size. */ /* Make a slot with that size. */
x = assign_stack_local (mode, total_size, -1); x = assign_stack_local (mode, total_size,
inherent_size == total_size ? 0 : -1);
stack_slot = x; stack_slot = x;
if (BYTES_BIG_ENDIAN) if (BYTES_BIG_ENDIAN)
{ {
......
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