Stack Alignment Bug
Richard Henderson
rth@redhat.com
Thu Nov 9 18:33:00 GMT 2000
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~
More information about the Gcc-bugs
mailing list