On 10/04/2010 04:24 PM, H.J. Lu wrote: > As I remembered, -mforce-drap exposed issues with register allocator. > ix86_force_drap is only referenced in one place in i386.c. I'd like to keep > it. I don't see why it can't be moved to generic. It may expose problems > for other targets.
I doubt very much if any other target will ever implement stack re-alignment like x86 does. The patch I posted is good enough to handle any arbitrary user variable alignment. The only thing it doesn't handle is alignment for spill slots. Only x86 requires that. r~