On Mon, Oct 12, 2015 at 1:06 PM, Abhishek Aggarwal <abhiinnit...@gmail.com> wrote: > @Jonathan: The reason I started this discussion is due to my suspicion > of a potential bug in gcc-4.9.2. However, I may be wrong. Here is the > explanation:
I think everything is alright. The code is only emitted for the main function, and the stack is assumed to be aligned for every other function. This is probably done because of compatibility considerations with older environments. So you can rename your function and watch the instructions disappear.