i386 stack missalignment on main
Jan Hubicka
jh@suse.cz
Wed Aug 1 11:07:00 GMT 2001
> 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, ...
Oops, yes, it should be 12. I will fix that.
Honza
>
> >
> >+ 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/
>
>
More information about the Gcc
mailing list