This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [m68k]: patch to fix m68k_output_mi_thunk() for ColdFire
- From: Andreas Schwab <schwab at suse dot de>
- To: Peter Barada <peter at the-baradas dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 27 May 2004 00:23:43 +0200
- Subject: Re: [m68k]: patch to fix m68k_output_mi_thunk() for ColdFire
- References: <20040526213937.5B6B7990F3@baradas.org>
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."