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: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 30 Jul 2001 09:23:43 -0700
- Cc: gcc at gcc dot gnu dot org, rth at cygnus dot com, 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:
> Hi,
> the benefits of so discussed -fpreferred-stack-boudnary is dumy on most of
> systems (on the other hands Andreas's spcec2000 tester has shown that the
> negative benefits are minimal too), as the stack gets missaligned, as you
> may check easilly:
>
> #include <stdio.h>
> main ()
> {
> long double a;
> fprintf(stderr,"%i\n",((int)&a)&15);
> }
> should print 0.
>
> I've checked SuSE, debian and cygwin and all seems to get stack at
> main wrong. On Linux systems it seems to be issue of glibc being compiled
Works fine with glibc 2.2.3 and gcc 2.96.
H.J.