From owner-freebsd-current@FreeBSD.ORG Wed Apr 23 05:00:15 2003 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 5896F37B401 for ; Wed, 23 Apr 2003 05:00:15 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA14243FD7 for ; Wed, 23 Apr 2003 05:00:14 -0700 (PDT) (envelope-from leimy2k@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h3NC0EjC024425 for ; Wed, 23 Apr 2003 05:00:14 -0700 (PDT) Received: from mac.com ([67.33.225.211]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id HDSPCD00.L1M; Wed, 23 Apr 2003 05:00:13 -0700 Date: Wed, 23 Apr 2003 07:00:12 -0500 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: Scott Long From: David Leimbach In-Reply-To: <3EA612F3.3060403@btc.adaptec.com> Message-Id: <236E96D8-7583-11D7-A443-0003937E39E0@mac.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) cc: freebsd-current@freebsd.org Subject: Re: Makefile in /usr/src/lib/libdisk WARNS change? PLEASE READ! 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: Wed, 23 Apr 2003 12:00:15 -0000 On Tuesday, April 22, 2003, at 11:13 PM, Scott Long wrote: > David Leimbach wrote: > >> > >> > >> > This just struck me as a possibility also about 20 seconds ago :) >> > >> > Here it is: [comments stripped] >> > CPUTYPE?=athlon-mp >> > CFLAGS= -pipe -msse -m3dnow >> > MAKE_IDEA=YES >> > >> > I am now changing CFLAGS to simply "-pipe" to see what happens. >> > >> >> And that had no affect it seems on the problem whatsoever. >> > > Testing locally, it seems to be triggered by the lack of '-O' in the > CFLAGS. FreeBSD has had a policy for quite some time of not supporting > non-standard CFLAGS settings, though it's perfectly acceptable to > debug and fix problems of this nature so long as the fix doesn't break > the standard case. First of all, thank you for taking the time to read this! :) Where is this policy stated? I must have overlooked it. I know there is a separate set of CFLAGS options for the kernel proper but I though the whole purpose of having make.conf was so I could customize my compile options. If those options aren't to be applied to the world_src in general then why *are* they applied? We could just introduce a 3rd option into make.conf for world_building and solve it there just as was done with the kernel couldn't we? I understand the logic of not supporting all the permutations and combinations of CFLAGS that are available these days. It could expose compiler internal problems that don't need to be dealt with by FreeBSD directly but by the gcc team. I am 100% fine with this idea and think its a good one :). I am not trying to rock the boat! > Your original patch looks fine to me. Poul-Henning seems to be one of > the de-facto maintainers of libdisk right now. He was away on vacation > last week and probably hasn't sorted through his Inbox all the way yet. > If he doesn't respond soon, ping him or myself again. > Sure. I didn't think there was anything at all wrong with my patch and not a single person has disputed its correctness [yet :)]. It doesn't break any code and it seems to enable people to build world with some extra optimization options... libdisk/rules.c being the *only* file that gets in the way of this :). For now I will just follow the herd and stick -O in my CFLAGS so I have the same sources as everyone else and can still buildworld. Thanks again!, Dave > Scott >