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 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.


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