This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 stack missalignment on main
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: i386 stack missalignment on main
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 30 Jul 2001 09:37:23 -0700
- Cc: gcc at gcc dot gnu dot org, aj at suse dot de
- References: <20010730141652.E5820@atrey.karlin.mff.cuni.cz>
On Mon, Jul 30, 2001 at 02:16:52PM +0200, Jan Hubicka wrote:
> I need to augument gcc to output something like
>
> .globl main:
> main:
> <align stack and move arguments>
> call label
> <return>
> label:
> normal code
>
> and whether it is safe to expect main to have maximally two arguments then.
No, you can't. First, main has 3 arguments. Two, you've
got to return the stack to normal when leaving main, so
no simple hack is going to cut it.
> Ideas?
Do nothing in the 3.0 timeframe. Implement proper forced
stack alignment in 3.1, and force that on for main.
r~