On Tue, Apr 14, 2015 at 9:30 AM, Steve Ellcey <sell...@imgtec.com> wrote: > >> > My second question is what do people think about this as a way to >> > dymanically >> > align the stack? It seems a lot simpler and more target independent than >> > what x86 is doing. >> My biggest worry is the large disconnect between where you're trying to >> solve the problem (gimple) and where the problematic bits are >> (LRA/reload). That seems like to be fragile in the long run. >> >> jeff > > Yes, I am trying to look at how the x86 does dynamic stack alignment but > it is difficult to untangle the generic concepts from the parts tied > specifically to the x86 calling convention. No other platform appears > to do dynamic stack alignment. >
The infrastructure changes made to support dynamic stack alignment on x86 should be useful to implement dynamic stack alignment on other targets. You can go back to GCC 4.4 to see how i386 backend was modified to support dynamic stack alignment: https://gcc.gnu.org/ml/gcc-patches/2008-07/msg00647.html https://gcc.gnu.org/ml/gcc-patches/2008-07/msg00652.html -- H.J.