This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.9.2: Assembly for i386 Target
- From: Stefan Ring <stefanrin at gmail dot com>
- To: Abhishek Aggarwal <abhiinnitald at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 12 Oct 2015 13:22:36 +0200
- Subject: Re: gcc-4.9.2: Assembly for i386 Target
- Authentication-results: sourceware.org; auth=none
- References: <CAGy+Z4jBeMpFEJ6qmPtHbK9c1sbNvhJcNKS=ARcikgSBhHLzvg at mail dot gmail dot com> <CAH6eHdRY+XxKxZ3JBPcgohQB1W4MaP1e3H6gmYD-2JMCJxAwPQ at mail dot gmail dot com> <CAGy+Z4gtx6Y2Oibp9TQr3FQ+9Go8PrrhzPORcpNDJhocZgGjVA at mail dot gmail dot com> <CAGy+Z4gy853bjecTVaKad19bCB3UmSe+qO1XZcaPG26hy0gGhw at mail dot gmail dot com> <CAGy+Z4j=AYJPHzKjBPsVhun4-YUSkz5AeMrubQxyRoAzuo0uDA at mail dot gmail dot com>
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.