This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [m68k]: patch to fix m68k_output_mi_thunk() for ColdFire


Peter Barada <peter@the-baradas.com> writes:

> --- 3371,3394 ----
>   			 "\tsubq.l %I%d,4(%Rsp)\n" :
>   			 "\tsubql %I%d,%Rsp@(4)\n",
>   		 (int) -delta);
> !   else if (TARGET_COLDFIRE)
> !     {
> !       /* ColdFire can't add/sub a constant to memory unless it ins
> ! 	 the range of addq/subq.  So load the vlaue into %d0 and

Typos: ins -> is in, vlaue -> value

> ! 	 then add it to 4(%sp). */
> !       if (delta >= -128 && delta <= 127)
> ! 	asm_fprintf (file, MOTOROLA ?
> ! 		     "\tmoveq.l %I%wd,%Rd0\n" :
> ! 		     "\tmoveql %I%wd,%Rd0\n", (int)delta);
> !       else
> ! 	asm_fprintf (file, MOTOROLA ?
> ! 		     "\tmove.l %I%wd,%Rd0\n" :
> ! 		     "\tmovel %I%wd,%Rd0\n", (int)delta);

Why the cast? You are using %wd which takes a HOST_WIDE_INT.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]