Commit a0a89ed0 by Chris Demetriou Committed by Alexandre Oliva

mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2 words in new abis.

* config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
words in new abis.

From-SVN: r64364
parent 8d3f82aa
2003-03-14 Chris Demetriou <cgd@broadcom.com>, Alexandre Oliva <aoliva@redhat.com>
* config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
words in new abis.
2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr> 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/8396 PR optimization/8396
......
...@@ -2921,12 +2921,15 @@ typedef struct mips_args { ...@@ -2921,12 +2921,15 @@ typedef struct mips_args {
fprintf (FILE, "\t.set\tnoat\n"); \ fprintf (FILE, "\t.set\tnoat\n"); \
fprintf (FILE, "\tmove\t%s,%s\t\t# save current return address\n", \ fprintf (FILE, "\tmove\t%s,%s\t\t# save current return address\n", \
reg_names[GP_REG_FIRST + 1], reg_names[GP_REG_FIRST + 31]); \ reg_names[GP_REG_FIRST + 1], reg_names[GP_REG_FIRST + 31]); \
fprintf (FILE, \ if (mips_abi != ABI_N32 && mips_abi != ABI_64) \
"\t%s\t%s,%s,%d\t\t# _mcount pops 2 words from stack\n", \ { \
TARGET_64BIT ? "dsubu" : "subu", \ fprintf (FILE, \
reg_names[STACK_POINTER_REGNUM], \ "\t%s\t%s,%s,%d\t\t# _mcount pops 2 words from stack\n", \
reg_names[STACK_POINTER_REGNUM], \ TARGET_64BIT ? "dsubu" : "subu", \
Pmode == DImode ? 16 : 8); \ reg_names[STACK_POINTER_REGNUM], \
reg_names[STACK_POINTER_REGNUM], \
Pmode == DImode ? 16 : 8); \
} \
fprintf (FILE, "\tjal\t_mcount\n"); \ fprintf (FILE, "\tjal\t_mcount\n"); \
fprintf (FILE, "\t.set\tat\n"); \ fprintf (FILE, "\t.set\tat\n"); \
} }
......
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