> Would you folks consider this as a GCC bug? Do you folks see any issue in > the CLANG approach? Is there a way (any switch) in gcc which would reverse > the order of ‘setting %rbp’ vs ‘stack alignment code’ (like CLANG)?
How does Clang align the frame pointer? What happens if the function uses dynamic stack allocation, e.g. by means of alloca? -- Eric Botcazou