From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 13 03:09:14 2006 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3C1516A41F for ; Tue, 13 Jun 2006 03:09:14 +0000 (UTC) (envelope-from andrew@areilly.bpc-users.org) Received: from omta03sl.mx.bigpond.com (omta03sl.mx.bigpond.com [144.140.92.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DD5743D48 for ; Tue, 13 Jun 2006 03:09:13 +0000 (GMT) (envelope-from andrew@areilly.bpc-users.org) Received: from areilly.bpc-users.org ([141.168.4.22]) by omta03sl.mx.bigpond.com with ESMTP id <20060613030912.UKJJ1358.omta03sl.mx.bigpond.com@areilly.bpc-users.org> for ; Tue, 13 Jun 2006 03:09:12 +0000 Received: (qmail 26780 invoked by uid 501); 13 Jun 2006 03:09:11 -0000 Date: Tue, 13 Jun 2006 13:09:11 +1000 From: Andrew Reilly To: Kris Kennaway Message-ID: <20060613030911.GA26760@duncan.reilly.home> References: <200606130300.k5D30f58076349@freefall.freebsd.org> <20060613030741.GA79016@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060613030741.GA79016@xor.obsecurity.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-amd64@FreeBSD.org Subject: Re: amd64/98893: cc error at -O2 on amd64/6-STABLE compiling port ucspi-tcp X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 03:09:15 -0000 On Mon, Jun 12, 2006 at 11:07:41PM -0400, Kris Kennaway wrote: > On Tue, Jun 13, 2006 at 03:00:41AM +0000, Andrew Reilly wrote: > > The following reply was made to PR amd64/98893; it has been noted by GNATS. > > > > From: Andrew Reilly > > To: Kris Kennaway > > Cc: FreeBSD-gnats-submit@FreeBSD.org > > Subject: Re: amd64/98893: cc error at -O2 on amd64/6-STABLE compiling port ucspi-tcp > > Date: Tue, 13 Jun 2006 12:58:56 +1000 > > > > On Mon, Jun 12, 2006 at 10:27:03PM -0400, Kris Kennaway wrote: > > > So I'm confused, is it using -O2 or -O2 -fno-strict-aliasing (the > > > default). If the former, it's probably an aliasing bug in the source, > > > which is why the default is not plain -O2. > > > > Sorry for the confusion. -fno-strict-aliasing was included for > > all compiler alternatives, as per the default. > > > > I.e.: > > cc -O2 -fno-strict-aliasing fails > > cc -O -fnostrict-aliasing works > > gcc41 -O2 -fno-strict-aliasing works > > > > It doesn't look like an aliasing bug in the source to me, as the > > gethostname result isn't passed through a variable, let alone > > one that could be dereferenced. > > OK, thanks. Not sure what is going on then :( I'll see if I can make up a minimal test program that does the same thing... Cheers, -- Andrew