This is the mail archive of the
mailing list for the GCC project.
Re: ARM Thumb byte stores
- To: Richard dot Earnshaw at arm dot com
- Subject: Re: ARM Thumb byte stores
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 03 May 2001 22:35:53 +0100
- Cc: gcc at gcc dot gnu dot org
- Organization: Red Hat UK Ltd.
- References: <200104041420.PAA27309@cam-mail2.cambridge.arm.com>
Richard Earnshaw wrote:
> The problem occurs because we have r8 (a high register) equal to sp; so
> when we try to reload the store (which is based off r8), we substitute in
> SP, since it is in BASE_REGS_CLASS and hence 'a valid alternative'.
> Here is what I think should be a suitable patch. I've run some code
> through it, and it doesn't seem to cause anything horrible to happen; but
> messing around with the register classes is fraught with potential
> problems, so this may throw up something I haven't considered. However,
> the AVR port seems to manage without having the stack pointer part of
> BASE_REG_CLASS, so maybe thumb compiles can too.
I've finally tested with this patch and it all works now, and programs are
running happily. Can you put this in the v3.0 branch please?
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine