This is the mail archive of the
mailing list for the GCC project.
Re: Defining LEGITIMIZE_ADDRESS?
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: aaadland at atmel dot no (Anders Ådland)
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 26 Aug 2003 19:21:07 +0100 (BST)
- Subject: Re: Defining LEGITIMIZE_ADDRESS?
> When storing to (mem (pseudo reg)), the pseudo register is replaced by a
> stack slot, (mem (plus (reg fp) (const_int -32776))). Normally this is
> correct, but in this particular example the index is too large for the load
> instruction and therefore not accepted by GO_IF_LEGITIMATE_ADDRESS. This
> results in a "unable to generate reloads" error message.
What is expected to happen in this case is that reload reloads the
sum into a register. If you don't have a clobber-free add instruction,
or if you can't load the constant, then you have a problem.