This is the mail archive of the gcc-patches@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: [PATCH][m68k] Partially fix PR target/28181 (movqi from mem to address register)


Hi Rask,

Rask Ingemann Lambertsen <rask@sygehus.dk> writes:
> 2006-12-11  Rask Ingemann Lambertsen  <rask@sygehus.dk>
>
> 	PR target/28181
> 	* config/m68k/m68k.h (CANNOT_CHANGE_MODE_CLASS): New.  Forbid
> 	address registers from changing mode to/from an 8-bit mode.

I don't think this is the right approach.  I think we should instead
allow address registers to store bytes, and define secondary_reload_class
accordingly (plus a few other related changes).

FWIW, I'm gearing up to submit the Coldfire changes from
csl/sourcerygxx-4_1 branch, and one of those patches does
what I suggest.  I think it should fix the bug in a way that
works for 68000 and 68010 too.

Richard


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