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
This commit is contained in:
Eric Christopher 2002-02-07 23:43:23 +00:00
parent d3dac0ae11
commit b137f9fcd3
2 changed files with 39 additions and 22 deletions

View File

@ -1,3 +1,23 @@
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

View File

@ -2,41 +2,38 @@
Return spill offset of 40 and 20. Aligned to 16 bytes for n32. */
.section .init,"ax",@progbits
#ifdef __mips64
ld $31,40($sp)
daddu $sp,$sp,48
#else
#ifndef __mips16
lw $31,20($sp)
addu $sp,$sp,32
#else
#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
lw $31,20($sp)
addu $sp,$sp,32
#endif
#endif
#ifndef __mips16
j $31
#endif
.section .fini,"ax",@progbits
#ifdef __mips64
ld $31,40($sp)
daddu $sp,$sp,48
#else
#ifndef __mips16
lw $31,20($sp)
addu $sp,$sp,32
#else
#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
lw $31,20($sp)
addu $sp,$sp,32
#endif
#endif
#ifndef __mips16
j $31
#endif