summaryrefslogtreecommitdiff
path: root/gcc/config/mips/sdemtk.h
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-05 19:29:36 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-05 19:29:36 +0000
commit2ae168f494f52c0d537f80e4b75c8abf509c6d06 (patch)
tree538112e0a1f89859a9a1b75f907ce39732ba1a11 /gcc/config/mips/sdemtk.h
parentd94c13853accd0d733620f127edb7eb40e4b70b5 (diff)
downloadgcc-2ae168f494f52c0d537f80e4b75c8abf509c6d06.tar.gz
gcc/
* config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM. (INCOMING_RETURN_ADDR_RTX): Likewise. (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1 with AT_REGNUM. * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM. (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise. * config/mips/mips.c (mips16_build_call_stub): Replace GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM. (mips_print_operand_punctuation): Likewise. (mips_frame_set): Likewise. (mips16e_output_save_restore): Likewise. (mips_cfun_might_clobber_call_saved_reg_p): Likewise. (mips_save_reg_p): Likewise. (mips_return_addr): Likewise. (mips_set_return_address): Likewise. (mips_direct_save_slot_move_p): Likewise. (mips_output_function_prologue): Likewise. (mips_restore_reg): Likewise. (mips_expand_epilogue): Likewise. (mips_epilogue_uses): Likewise. * config/mips/mips.md (RETURN_ADD_REGNUM): Define. (*mov<mode>_ra): Use it instead of a hard-coded 31. (clear_hazard_<mode>): Likewise. (call_internal): Likewise. (call_internal_direct): Likewise. (call_direct_split): Likewise. (call_value_internal): Likewise. (call_value_split): Likewise. (call_value_internal_direct): Likewise. (call_value_direct_split): Likewise. (call_value_multiple_internal): Likewise. (call_value_multiple_split): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/sdemtk.h')
-rw-r--r--gcc/config/mips/sdemtk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/mips/sdemtk.h b/gcc/config/mips/sdemtk.h
index 27dab06f298..a9bb85e82b6 100644
--- a/gcc/config/mips/sdemtk.h
+++ b/gcc/config/mips/sdemtk.h
@@ -101,7 +101,7 @@ extern void mips_sync_icache (void *beg, unsigned long len);
/* MIPS16 code passes saved $ra in $v1 instead of $at. */ \
fprintf (FILE, "\tmove\t%s,%s\n", \
reg_names[GP_REG_FIRST + (TARGET_MIPS16 ? 3 : 1)], \
- reg_names[GP_REG_FIRST + 31]); \
+ reg_names[RETURN_ADDR_REGNUM]); \
fprintf (FILE, "\tjal\t_mcount\n"); \
mips_pop_asm_switch (&mips_noat); \
/* _mcount treats $2 as the static chain register. */ \
@@ -112,4 +112,4 @@ extern void mips_sync_icache (void *beg, unsigned long len);
/* ...nor does the call sequence preserve $31. */
#undef MIPS_SAVE_REG_FOR_PROFILING_P
-#define MIPS_SAVE_REG_FOR_PROFILING_P(REGNO) ((REGNO) == GP_REG_FIRST + 31)
+#define MIPS_SAVE_REG_FOR_PROFILING_P(REGNO) ((REGNO) == RETURN_ADDR_REGNUM)