Date: Sat, 11 Jun 2005 19:21:05 -0700 From: "David O'Brien" <obrien@freebsd.org> To: Ruslan Ermilov <ru@freebsd.org> Cc: Dag-Erling Sm?rgrav <des@des.no>, freebsd-current@freebsd.org Subject: Re: [current tinderbox] failure on ...all... Message-ID: <20050612022105.GB67746@dragon.NUXI.org> In-Reply-To: <20050610074706.GE78035@ip.net.ua> References: <20050609234619.AD1F67306E@freebsd-current.sentex.ca> <p0621025fbeceac0673f8@128.113.24.47> <84dead720506091950779d1661@mail.gmail.com> <86oeae3d8f.fsf@xps.des.no> <20050610071828.GB78035@ip.net.ua> <867jh23bwh.fsf@xps.des.no> <20050610074706.GE78035@ip.net.ua>
index | next in thread | previous in thread | raw e-mail
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 <ru@FreeBSD.org> 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 "
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050612022105.GB67746>
