ARM: Invalid Stack Alignment BUG
Richard Earnshaw
rearnsha@arm.com
Tue Mar 14 09:51:00 GMT 2000
>
> In message < 200003131602.QAA16283@cam-mail2.cambridge.arm.com >you write:
> > Craig,
> >
> > Thanks for looking into this. However, I'm not convinced that it correct
> > to fix this in the back end (as I think you are implying). I haven't
> > checked in detail but my gut feeling is that if the stack-frame is
> > unaligned during reload, then unallocated pseudos may get pushed at
> > unaligned addresses, which could cause all sorts of carnage.
> >
> > Jan, why does cfun->stack_alignment_needed not have a minimum value of
> > STACK_BOUNDARY?
> Agreed. I can't think of any case where stack_alignment_needed should be
> less than STACK_BOUNDARY.
>
Good. Following patch applied.
2000-03-14 Richard Earnshaw <rearnsha@arm.com>
* function.c (prepare_function_start): Correctly initialize
cfun->stack_alignment_needed.
More information about the Gcc-patches
mailing list