> 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
Hi,
I was looking at the implementation of mstackalign in gcc (O2/O3) and it
looks like we generate code for mstackalign (i.e. generate instructions for
stack alignment) before pushing $rbp to stack/setting $rbp. In the
epilogue, we do the same in reverse order.
some_routine:
0x00