processFunctionBeforeFrameFinalized setting object offset without effect, stack frame layout wrong

Hi,

Target overrides of processFunctionBeforeFrameFinalized() are misused
in two cases (MBlaze and PowerPC) to set the offsets of objects. Unfortunately
this has no effect because the offsets are immediately reset by
calculateFrameObjectOffsets().

The PowerPC backend does this to setup the stack frame layout according to
the ABI. Ie. it spills the registers etc. in a fixed layout. How to do that
properly?

thank you, roman

Hi,

Target overrides of processFunctionBeforeFrameFinalized() are misused
in two cases (MBlaze and PowerPC) to set the offsets of objects. Unfortunately
this has no effect because the offsets are immediately reset by
calculateFrameObjectOffsets().

The PowerPC backend does this to setup the stack frame layout according to
the ABI. Ie. it spills the registers etc. in a fixed layout. How to do that
properly?

Hi Roman,

Have a look at spillCalleeSavedRegisters() and restoreCalleeSavedRegisters(). I suspect they're what you're looking for.

-Jim