This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 stack missalignment on main
Um, this is a shot in the dark, but IMHO ...
Jan Hubicka wrote:
>+ void
>+ ix86_output_main_function_alignment_hack (file, size)
>+ FILE *file;
>+ int size ATTRIBUTE_UNUSED;
>+ {
>+ rtx label;
>+ char buf[256];
>+ /* Check that we see main function with maximally 8 bytes of arguments.
>
... either the 8 in this comment is wrong, ...
>
>+ if so, emit the hack to align stack for runtimes, where this constraint
>+ is broken. */
>+ if (strcmp (cfun->name, "main"))
>+ return;
>+ if (cfun->pops_args || cfun->args_size > 12)
>
... or the 12 in this condition is.
--
Brane Čibej
home: <brane@xbc.nu> http://www.xbc.nu/brane/
work: <branko.cibej@hermes.si> http://www.hermes-softlab.com/
ACM : <brane@acm.org> http://www.acm.org/