Date: Sun, 09 Feb 2003 06:42:32 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: "Jacques A. Vidrine" <nectar@FreeBSD.org> Cc: David Schultz <dschultz@uclink.berkeley.edu>, Ray Kohler <ataraxia@cox.net>, freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? Message-ID: <3E4668D8.72B6279E@mindspring.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
"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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4668D8.72B6279E>