aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/sdemtk.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2009-10-05 19:29:36 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2009-10-05 19:29:36 +0000
commit293593b15fbf08603d6fa038e8e4614b41166c9f (patch)
tree538112e0a1f89859a9a1b75f907ce39732ba1a11 /gcc/config/mips/sdemtk.h
parent7cf078dceaaf3fac20ae6cad5077f9cec6256c8f (diff)
downloadgcc-293593b15fbf08603d6fa038e8e4614b41166c9f.zip
gcc-293593b15fbf08603d6fa038e8e4614b41166c9f.tar.gz
gcc-293593b15fbf08603d6fa038e8e4614b41166c9f.tar.bz2
mips.h (DWARF_FRAME_RETURN_COLUMN): Replace GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
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. From-SVN: r152465
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 27dab06..a9bb85e 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)