delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/28/17:59:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <tprince AT computer DOT org>
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> <Pine DOT CYG DOT 4 DOT 58 DOT 0404281232440 DOT 5560 AT fordpc DOT vss DOT fsi DOT com> <20040428190846 DOT GA9889 AT coe DOT bosbc DOT com>
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019