This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-4.9.2: Assembly for i386 Target


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]