gcc-4.9.2: Assembly for i386 Target

Stefan Ring stefanrin@gmail.com
Mon Oct 12 11:22:00 GMT 2015


On Mon, Oct 12, 2015 at 1:06 PM, Abhishek Aggarwal
<abhiinnitald@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.



More information about the Gcc mailing list