MIPS PATCH: profiling fixes

Sandra Loosemore sandra@codesourcery.com
Thu Sep 13 16:28:00 GMT 2007


Richard Sandiford wrote:
> 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.

I've committed just the above piece of the original patch.

-Sandra



More information about the Gcc-patches mailing list