X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 22 Dec 2011 16:39:43 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 16 byte pthread stack alignments
Message-ID: <20111222153943.GI31936@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.CYG.4.58.1112201743030.3964@PC1163-8460-XP.flightsafety.com> <20111221094211.GH23547@calimero.vinschen.de> <4EF1F937.9040107@gmail.com> <20111221154104.GB11841@calimero.vinschen.de> <Pine.CYG.4.58.1112211020000.3076@PC1163-8460-XP.flightsafety.com> <Pine.CYG.4.58.1112211218020.3076@PC1163-8460-XP.flightsafety.com> <Pine.CYG.4.58.1112211523340.3076@PC1163-8460-XP.flightsafety.com> <20111222092738.GB31936@calimero.vinschen.de> <Pine.CYG.4.58.1112220917560.3076@PC1163-8460-XP.flightsafety.com> <20111222153132.GH31936@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20111222153132.GH31936@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec 22 16:31, Corinna Vinschen wrote:
> On Dec 22 09:20, Brian Ford wrote:
> > On Thu, 22 Dec 2011, Corinna Vinschen wrote:
> > 
> > > On Dec 21 15:25, Brian Ford wrote:
> > > > On Wed, 21 Dec 2011, Brian Ford wrote:
> > > >
> > > > Thanks for the fix Christopher, but I must be using the wrong compiler or
> > > > something.  Here's my next issue:
> > > >
> > > > src/winsup/cygwin/child_info.h:
> > > > In static member function static cygheap_exec_info*
> > > > cygheap_exec_info::alloc():
> > > > src/winsup/cygwin/child_info.h:115:
> > > > error: invalid use of member cygheap_exec_info::children in static member
> > > > function
> > > > src/winsup/cygwin/sigproc.cc:914:
> > > > error: from this location
> > >
> > > Did you try to drop the -Werror from the command line, for testing sake?
> > 
> > No, because in this case it actually is an error, not one converted from a
> > warning.  Am I missing something, or shouldn't the cygwin sources compile
> > without this kind of difficulty?  Is this really just a difference between
> > the Cygwin gcc-4 and the one you guys use to cross compile?
> 
> Should be basically the same compiler:
> 
>   i686-pc-cygwin-gcc (GCC) 4.5.3 20110428 (Fedora Cygwin 4.5.3-4)
> 
> The error message is kind of nonsense anyway.  The expression in question
> is
> 
>   sizeof (cygheap_exec_info) + (nprocs * sizeof (children[0]))
> 
> so it's just a `sizeof', not an actual usage of the member.  Try this
> for now:

Btw., you are apparently not running the latest gcc-4.  I just tried to
compile this file (without my patch) on Cygwin and it works fine without
any warning or error:

  $ gcc --version
  gcc (GCC) 4.5.3
  $ cygcheck -c gcc4
  Cygwin Package Information
  Package              Version        Status
  gcc4                 4.5.3-3        OK


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

