Painful problems with -fpic implementation on powerpc-sysv
David Edelsohn
dje@watson.ibm.com
Fri Aug 21 12:51:00 GMT 1998
>>>>> Geoff Keating writes:
Geoff> But the first insn, number 13, is a memory reference. It doesn't look
Geoff> like it now, but pseudo 84 will be allocated to a floating-point
Geoff> register, and the only way to load a constant into a FP register is
Geoff> from memory. So reload will push the const_double out to a constant
Geoff> memory location. The load from memory will require the GOT pointer.
Geoff> But the GOT pointer is not initialised until the _next_ insn.
The movdf define_splits to load a const_double into an FPR
currently have "... && reload_completed" as a final condition. Would
changing this to "... && (reload_in_progress || reload_completed)" have a
positive effect? This might allow reload to create the constant in GPRs
and move it via the stack instead of creating a GOT symbol, depending on
what reload is trying to accomplish when these failures are occurring.
David
More information about the Gcc
mailing list