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: <409098C3.6060309@ompf.org> Date: Thu, 29 Apr 2004 07:55:15 +0200 From: tbp Reply-To: gcc AT ompf DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 MIME-Version: 1.0 To: Ross Ridge CC: cygwin AT cygwin DOT com Subject: Re: g++ 3.4.0 cygwin, codegen SSE & alignement issues References: <20040428224615 DOT 2B667A8663 AT perpugilliam DOT csclub DOT uwaterloo DOT ca> In-Reply-To: <20040428224615.2B667A8663@perpugilliam.csclub.uwaterloo.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Ross Ridge wrote: > Apparently the code that SDL calls to create the threads doesn't create > threads with aligned stacks. If SDL is using Cygwin functions to create > threads but these functions are creating threads that don't have 16-byte > aligned stacks then this is a Cygwin problem. SDL is a bit of a pain regarding cygwin (they insist on using mingw etc)... Anyway with Brian Ford patch in hand i have some chances to teach it how to behave. > You need to write an assembler function (you can't use inline assembly > to fix this problem reliably) for each callback function in your code > that's called *directly* by a function that's not compile with GCC. > Something like this: Ah, i didn't know about the no-inline asm clause (my kludge didn't seem to do any good). Thanks for the clue. >>PS: I've never found out how to build a 'cygming special' binary from >>gcc sources, i can only make a cygwin or mingw. What's the trick? > Download and compile the Cygwin modified sources. Doh :) Thanks for time, tbp. -- 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/