Commit b137f9fc by Eric Christopher

crtn.asm: Cleanup #ifdefs.

2002-02-07  Eric Christopher  <echristo@redhat.com>

	* config/mips/crtn.asm: Cleanup #ifdefs.

Add ChangeLog entry for previous patch that didn't seem to make it.

From-SVN: r49595
parent d3dac0ae
2002-02-07 Eric Christopher <echristo@redhat.com>
* config/mips/crtn.asm: Cleanup #ifdefs.
2002-02-07 Eric Christopher <echristo@redhat.com>
* config/mips/crti.asm: Add changes for mips16. mips16 uses
register 7 as RA instead of $31.
* config/mips/crtn.asm: Ditto.
* config/mips/mips.c (mips_move_2words): Add case for
TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
(compute_frame_size): Fix typo.
(save_restore_insns): Ditto. Make documentation about using
register $7 as return register more precise.
(mips_expand_epilogue): Fix comment. Add code to work around not
being able to add to the stack pointer directly.
* config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
epilogue.
2002-02-07 Tom Rix <trix@redhat.com>
* config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
......
......@@ -2,41 +2,38 @@
Return spill offset of 40 and 20. Aligned to 16 bytes for n32. */
.section .init,"ax",@progbits
#ifdef __mips16
/* The mips16 uses $7 for a return address. We use that here too. */
lw $7,20($sp)
addu $sp,$sp,32
j $7
#else
#ifdef __mips64
ld $31,40($sp)
daddu $sp,$sp,48
#else
#ifndef __mips16
lw $31,20($sp)
addu $sp,$sp,32
#else
/* The mips16 uses $7 for a return address. We use that here too. */
lw $7,20($sp)
addu $sp,$sp,32
j $7
#endif
#endif
#ifndef __mips16
j $31
#endif
.section .fini,"ax",@progbits
#ifdef __mips16
/* The mips16 uses $7 for a return address. We use that here too. */
lw $7,20($sp)
addu $sp,$sp,32
j $7
#else
#ifdef __mips64
ld $31,40($sp)
daddu $sp,$sp,48
#else
#ifndef __mips16
lw $31,20($sp)
addu $sp,$sp,32
#else
/* The mips16 uses $7 for a return address. We use that here too. */
lw $7,20($sp)
addu $sp,$sp,32
j $7
#endif
#endif
#ifndef __mips16
j $31
#endif
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