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: 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.


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