This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: moving towards 1.5.10?
On Tue, 4 May 2004, Christopher Faylor wrote:
> On Tue, May 04, 2004 at 06:07:38PM +0200, Corinna Vinschen wrote:
> >I've just applied a patch to ctr0.o to also 16 byte align the main
> >thread's stack and stack frame which should be noted below, too.
>
> I saw that. I thought that was declared to be a non-issue when I
> mentioned it in the cygwin list.
I dilligently tried to follow up on my promise and pin down exactly why it
was a non-issue.
I found that gcc assured main's siblings would have 16 byte stack
alignment, but not main itself. I couldn't see anything in Cygwin's
crt0.c that assured it, and obviously, Microsoft does not assure it
either. So, I thought we should.
Nevertheless, I still haven't seen a non-16-byte aligned stack at
mainCRTStartup on my XP box, but I can't explain why it couldn't happen
either. So, consider it a relatively cheap insurance policy. If I'm
proven wrong and this is not needed, so be it.
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...