[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/39465: threads stack is not aligned properly for gcc on i386
The following reply was made to PR lib/39465; it has been noted by GNATS.
From: Anthony Mallet <anthony.mallet%useless-ficus.net@localhost>
Subject: Re: lib/39465: threads stack is not aligned properly for gcc on i386
Date: Wed, 9 Nov 2011 22:06:59 +0100
On Wednesday, at 21:00, Anthony Mallet wrote:
| Does it make more sense like this? - apart from the fact that the ABI
| 4 bytes alignment only, of course, but that's another issue -
Also, this comment in the OpenBSD commit for the same problem is interesting:
* Locate the initial frame at the top of the stack. For the
* stack to end up properly (16-byte) aligned, we need to
* align the frame at an odd 8-byte boundary.
f = (struct frame *)((((int)base + len - sizeof *f) & ~15) - 8);
Main Index |
Thread Index |