Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <6.0.1.1.0.20040428145141.01f281f8@imap.myrealbox.com> X-Sender: tprince AT imap DOT myrealbox DOT com Date: Wed, 28 Apr 2004 14:59:02 -0700 To: cygwin AT cygwin DOT com From: Tim Prince Subject: Re: g++ 3.4.0 cygwin, codegen SSE & alignement issues In-Reply-To: <20040428190846.GA9889@coe.bosbc.com> References: <408F2C65 DOT 4090804 AT ompf DOT org> <20040428190846 DOT GA9889 AT coe DOT bosbc DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-IsSubscribed: yes At 12:08 PM 4/28/2004, you wrote: >On Wed, Apr 28, 2004 at 12:41:51PM -0500, Brian Ford wrote: > > > > >http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14776 > > > >I'm working with Red Hat to resolve this issue right now. The problem is > >that thread stacks are not always 16 byte aligned. You could try the > >following hack if you need something right away and don't mind building > >your own Cygwin DLL. > >This patch would only affect non-main threads. It would not affect the >main thread. Wouldn't you need to do the same thing for the main thread? >I don't understand why it would be different. > >cgf > Unless something has changed recently, gcc has never supported alignment of local data, or code which requires it, in main(). main() aligns stack, subject to the options specified, for each function called. Certain commercial compilers have supported alignment in the past only with the use of (non-portable) declspec. Tim Prince -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/