Re: CFI directives and dynamic stack alignment

2015-08-24 Thread Steve Ellcey
On Tue, 2015-08-18 at 09:23 +0930, Alan Modra wrote: > On Mon, Aug 17, 2015 at 10:38:22AM -0700, Steve Ellcey wrote: > OK, then you need to emit a .cfi directive to say the frame top is > given by the temp hard reg sometime after that assignment and before > sp is aligned in the prologue, and anot

Re: CFI directives and dynamic stack alignment

2015-08-17 Thread Alan Modra
On Mon, Aug 17, 2015 at 10:38:22AM -0700, Steve Ellcey wrote: > On Tue, 2015-08-11 at 10:05 +0930, Alan Modra wrote: > > > > The 'and' instruction is where the stack gets aligned and if I remove that > > > one instruction, everything works. I think I need to put out some new CFI > > > psuedo-ops

Re: CFI directives and dynamic stack alignment

2015-08-17 Thread Steve Ellcey
On Tue, 2015-08-11 at 10:05 +0930, Alan Modra wrote: > > The 'and' instruction is where the stack gets aligned and if I remove that > > one instruction, everything works. I think I need to put out some new CFI > > psuedo-ops to handle this but I am not sure what they should be. I am just > > not

Re: CFI directives and dynamic stack alignment

2015-08-10 Thread Alan Modra
On Mon, Aug 03, 2015 at 02:48:09PM -0700, Steve Ellcey wrote: > When I generate code to dynamically align the stack my code looks like > this: > > fn2: > .frame $fp,32,$31 # vars= 0, regs= 2/0, args= 16, gp= 8 > .mask 0xc000,-4 > .fmask 0x,0 > .

CFI directives and dynamic stack alignment

2015-08-03 Thread Steve Ellcey
I don't know if there are any CFI experts out there but I am working on dynamic stack alignment for MIPS. I think I have it working in the 'normal' case but when I try to do stack unwinding through a routine with an aligned stack, then I have problems. I was wondering if someone can help me unde