This is the mail archive of the
mailing list for the GCC project.
Re: i386 stack missalignment on main
- To: aoliva at redhat dot com (Alexandre Oliva)
- Subject: Re: i386 stack missalignment on main
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Tue, 31 Jul 2001 05:53:01 +0100 (BST)
- Cc: amylaar at redhat dot com (Joern Rennecke), jh at suse dot cz (Jan Hubicka),rth at redhat dot com (Richard Henderson), gcc at gcc dot gnu dot org, aj at suse dot de,gcc-patches at gcc dot gnu dot org
P.S.: Another way would be, at the start of the function, to push the
old stack pointer, and if alignment requires and adjustment, memmove
all the arguemnts in the stack and the saved stack pointer to fit with
the adjusted stack pointer.
So no extra register is required.
sibcalls between like-stack-aligning functions should probably use an
alternate entry point, after the stack is aligned.