From owner-freebsd-current@FreeBSD.ORG Sun Feb 8 23:07:01 2004 Return-Path: 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 72BF116A4DB for ; Sun, 8 Feb 2004 23:07:01 -0800 (PST) Received: from VARK.homeunix.com (adsl-68-122-2-18.dsl.pltn13.pacbell.net [68.122.2.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E13143D2F for ; Sun, 8 Feb 2004 23:07:01 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.10/8.12.10) with ESMTP id i19770Oa002378; Sun, 8 Feb 2004 23:07:00 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.10/8.12.10/Submit) id i19770TF002377; Sun, 8 Feb 2004 23:07:00 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sun, 8 Feb 2004 23:07:00 -0800 From: David Schultz To: "Bruno T." Message-ID: <20040209070700.GA2342@VARK.homeunix.com> Mail-Followup-To: "Bruno T." , freebsd-current@FreeBSD.ORG References: <20040209022820.00faa408@pyro.convolution.ti> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040209022820.00faa408@pyro.convolution.ti> cc: freebsd-current@FreeBSD.ORG Subject: Re: -fno-strict-aliasing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 07:07:01 -0000 On Mon, Feb 09, 2004, Bruno T. wrote: > Hi everyone. > i'm pretty new to bsd, but i have some background in linux development > and for what i have seen until now, i must say that -CURRENT is rather impressive, congrats ! > > I was rebuilding my base sys and noticed that any compiler flag > that implies -fstrict-aliasing (like -O2) would break some few things, > adding "-fno-strict-aliasing" to "CFLAGS+=" in these makefiles > solves the problem for now. > > usr.sbin/kldxref/Makefile > lib/libc/Makefile > lib/libpam/Makefile > libexec/ypxfr/Makefile > usr.sbin/rpc.yppasswd/Makefile I assume the problem is some specific C sources, rather than the Makefiles themselves. It's generally known that there are a few aliasing problems lurking around the source tree that break -fstrict-aliasing, and patches to fix them would be appreciated.