This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i386 stack missalignment on main


> On Mon, Jul 30, 2001 at 07:01:34PM +0200, Jan Hubicka wrote:
> > 	* i386.c (ix86_output_main_function_alignment_hack): New function.
> > 	(TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
> 
> Hum.  I'm not thrilled about the notion, but it does work.
Me neighter - thats why the function is output..._hack.
> 
> I'd argue that it would be better just to fix the runtimes, but there
They are correct.  (first think I did was to blame Andreas to fix it)
The problem comes from fact, that until 3.0 managed
to misscompile startup code in a way to get stack missaligned.

Thats also why RedHat apears to be only distribution that got it right,
because of gcc2.96

Honza
> are x86 runtimes over which we have no control -- sco, solaris, and 
> the like.

> 
> Ok.
> 
> 
> r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]