------- Comment #12 from amodra at bigpond dot net dot au 2008-04-14 07:19 ------- Created an attachment (id=15476) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15476&action=view) proposed patch
I think we want something like the attached patch (as yet untested). Besides the epilogue bug exposed by alloca, there is another bug with vrsave. If all non-volatile gp and fp regs are saved/restored by a function, then vrsave will be stored at frame-288-4 for 64-bit. After sp is adjusted, this location may be trashed by an interrupt routine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35907