From owner-freebsd-current@FreeBSD.ORG Sun Jun 12 02:21:13 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C511916A41C; Sun, 12 Jun 2005 02:21:13 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65BFA43D1D; Sun, 12 Jun 2005 02:21:13 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j5C2L6EY068340; Sat, 11 Jun 2005 19:21:06 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.4/8.13.1/Submit) id j5C2L5OU068339; Sat, 11 Jun 2005 19:21:05 -0700 (PDT) (envelope-from obrien) Date: Sat, 11 Jun 2005 19:21:05 -0700 From: "David O'Brien" To: Ruslan Ermilov Message-ID: <20050612022105.GB67746@dragon.NUXI.org> Mail-Followup-To: obrien@freebsd.org, Ruslan Ermilov , Dag-Erling Sm?rgrav , freebsd-current@freebsd.org References: <20050609234619.AD1F67306E@freebsd-current.sentex.ca> <84dead720506091950779d1661@mail.gmail.com> <86oeae3d8f.fsf@xps.des.no> <20050610071828.GB78035@ip.net.ua> <867jh23bwh.fsf@xps.des.no> <20050610074706.GE78035@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050610074706.GE78035@ip.net.ua> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i Cc: Dag-Erling Sm?rgrav , freebsd-current@freebsd.org Subject: Re: [current tinderbox] failure on ...all... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 02:21:13 -0000 On Fri, Jun 10, 2005 at 10:47:06AM +0300, Ruslan Ermilov wrote: > On Fri, Jun 10, 2005 at 09:32:14AM +0200, Dag-Erling Sm?rgrav wrote: > > Ruslan Ermilov writes: > > > And if you feel that -fno-strict-aliasing is evil, why not dike it > > > out from sys.mk? > > > > 'ncvs annotate /usr/src/share/mk/sys/mk | grep aliasing' and you'll > > realize that any attempt to touch it would result in a huge flamewar. > > > I don't see a flamewar, only the mention that it breaks some notable > ports. If it's not suitable for ports, then we should invent a mean > to compile only src/ *without* -fno-strict-aliasing. I tried. But Kris refused to consider the following for committing. The problem is something like 3 ports will not build with "-fno-strict-aliasing". Those are the gcc28, gnat[*] ports. [*] I really don't understand why we have a GCC 2.8 based Ada compiler when Ada has been a native part of GCC since version 3.1... -- -- David (obrien@FreeBSD.org) Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.512 diff -u -r1.512 bsd.port.mk --- bsd.port.mk 9 Jun 2005 20:39:43 -0000 1.512 +++ bsd.port.mk 11 Jun 2005 14:38:58 -0000 @@ -1396,6 +1402,11 @@ .endif .endif .endif +.if ${CFLAGS:M-O[23s]} != "" +.if !defined(WITHOUT_NO_STRICT_ALIASING) +CFLAGS+= -fno-strict-aliasing +.endif +.endif .if defined(NOPORTDOCS) PLIST_SUB+= PORTDOCS="@comment "