MIPS PATCH: profiling fixes
Richard Sandiford
richard@codesourcery.com
Sun Sep 9 11:13:00 GMT 2007
Sandra Loosemore <sandra@codesourcery.com> writes:
> (ASM_OUTPUT_REG_PUSH): Replace {d}subu with {d}addiu and a negative
> immediate such that it works with MIPS16 instructions.
...
> *************** do { \
> *** 2754,2761 ****
> #define ASM_OUTPUT_REG_PUSH(STREAM,REGNO) \
> do \
> { \
> ! fprintf (STREAM, "\t%s\t%s,%s,8\n\t%s\t%s,0(%s)\n", \
> ! TARGET_64BIT ? "dsubu" : "subu", \
> reg_names[STACK_POINTER_REGNUM], \
> reg_names[STACK_POINTER_REGNUM], \
> TARGET_64BIT ? "sd" : "sw", \
> --- 2757,2764 ----
> #define ASM_OUTPUT_REG_PUSH(STREAM,REGNO) \
> do \
> { \
> ! fprintf (STREAM, "\t%s\t%s,%s,-8\n\t%s\t%s,0(%s)\n", \
> ! TARGET_64BIT ? "daddiu" : "addiu", \
> reg_names[STACK_POINTER_REGNUM], \
> reg_names[STACK_POINTER_REGNUM], \
> TARGET_64BIT ? "sd" : "sw", \
This bit is OK, thanks.
Richard
More information about the Gcc-patches
mailing list