This is the mail archive of the gcc-bugs@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: Stack Alignment Bug


On Wed, Nov 08, 2000 at 12:26:56PM -0500, David Ronis wrote:
> int main(void)
> {
>   double s;
>   if((((unsigned long) &s) & 0x7L)) {
>           printf("main (%u)\n",((unsigned long)&s)&0x7L);
>   }
>   return 0;
> }

This assumes that crt0.o correctly aligned the stack to begin
with.  We do not create alignment, merely preserve it.

> I compile on an i686-linux-gnu(2.1.3) box ...

With a glibc 2.2 system, this is done correctly.  It appears
that you'll have to upgrade or make local modifications.


r~

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