From owner-freebsd-current Tue Aug 20 12:30: 8 2002 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 7D14137B400 for ; Tue, 20 Aug 2002 12:30:05 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3785543E72 for ; Tue, 20 Aug 2002 12:29:59 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-b219.otenet.gr [212.205.244.227]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g7KJTrkH029182; Tue, 20 Aug 2002 22:29:55 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.5/8.12.5) with ESMTP id g7KJThq6012212; Tue, 20 Aug 2002 22:29:51 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.5/8.12.5/Submit) id g7K9qh8j010111; Tue, 20 Aug 2002 12:52:43 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 20 Aug 2002 12:52:42 +0300 From: Giorgos Keramidas To: Jun Kuriyama Cc: Current Subject: Re: CFLAGS=-O and WARN=5 Message-ID: <20020820095242.GA7001@hades.hell.gr> References: <7md6slpxr1.wl@black.imgsrc.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7md6slpxr1.wl@black.imgsrc.co.jp> X-Operating-System: FreeBSD 5.0-CURRENT i386 X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-Phone: +30-944-116520 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-08-14 18:58 +0000, Jun Kuriyama wrote: > When I tried make world with CFLAGS="-g -pipe" in make.conf, I got > a result below. > ===> bin/df > cc -pipe -g -I/usr/src/bin/df/../../sbin/mount -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wuninitialized -Wformat=2 -Wno-format-extra-args -Werror -c /usr/src/bin/df/df.c > cc1: warnings being treated as errors > cc1: warning: -Wuninitialized is not supported without -O > *** Error code 1 > Is buildworld without CFLAGS=-O not supported? That's not true, AFAIK. You should still be able to build world without any sort of optimization if you didn't use WARNS=5 and manually crafted your CFLAGS. * Note: I can't recall where I have seen it, but I also remember someone writing that some of the GCC warnings do not work as expected without optimizations. So you might eventually decide that it's better to keep at least -O enabled. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message