From owner-freebsd-current Sun Feb 9 6:44: 5 2003 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 A4F6D37B401; Sun, 9 Feb 2003 06:44:04 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2632C43FA3; Sun, 9 Feb 2003 06:44:01 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0071.cvx40-bradley.dialup.earthlink.net ([216.244.42.71] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18hsgZ-0001oG-00; Sun, 09 Feb 2003 06:44:00 -0800 Message-ID: <3E4668D8.72B6279E@mindspring.com> Date: Sun, 09 Feb 2003 06:42:32 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Jacques A. Vidrine" Cc: David Schultz , Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? References: <20030208173756.GA56030@arkadia.nv.cox.net> <20030208232724.GA20435@HAL9000.homeunix.com> <3E459BF3.BB3FC381@mindspring.com> <20030209002542.GA20812@HAL9000.homeunix.com> <3E45AD75.47C80368@mindspring.com> <20030209140357.GB67612@opus.celabo.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4ef1382813306fd091c7b028d8bfe952f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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 "Jacques A. Vidrine" wrote: > On Sat, Feb 08, 2003 at 05:23:01PM -0800, Terry Lambert wrote: > > The compiler > > didn't complain when he checked it before committing it because > > optimization was off by default; it should have complained, e.g.: > ^^^^^^^^^^^^ > Is that really what you meant? I don't believe it has anything to > do with optimization; rather, it is to do with lack of `warning' > flags. For example, if you build libc with WARNS=5 (so as to get the > `-Wuninitialized' flag), then you get this warning. > > > "x.c:9:warning: `foo' might be used uninitialized in this function" Uh... cc -Wall -Wuninitialized -O0 x.c "cc1: warning: -Wuninitialized is not supported without -O" 8-) 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message