From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles Coffing" Subject: Re: [PATCH] clean up CFLAGS Date: Fri, 10 Mar 2006 10:35:08 -0500 Message-ID: <44113A29.D169.003C.0@novell.com> References: <441022BC.D169.003C.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andi Kleen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org -O2 actually tends to be my preference too for the same reason, but I was just rearranging the existing options. I've certainly seen cases (prior to Xen, though) where -O3 was slower than -O2, probably due to cache effects. >>> On Fri, Mar 10, 2006 at 7:50 AM, in message , Andi Kleen wrote: > "Charles Coffing" writes: > >> This patch cleans up the usage of CFLAGS. This is nice for packagers, >> who would like to control the base compilation flags from a central >> place. >> >> I've put some default CFLAGS (- Wall - O3) > > Are you sure - O3 is a good idea? In my experience it just bloats > .text for most projects because of its aggressive inlining. I would > use - O2. > > - Andi