WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH3] Don't optimize function calls with -g

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH3] Don't optimize function calls with -g
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Fri, 7 Mar 2008 14:58:18 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 07 Mar 2008 06:59:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3F6F55F.1DAE8%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20080306160138.GB10848@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C3F6F55F.1DAE8%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Keir Fraser, le Fri 07 Mar 2008 13:36:31 +0000, a écrit :
> Note that we do CFLAGS ?= ... in StdGNU.mk and SunOS.mk right
> now. Probably these should be changed to +=.

Ooh, that's why I missed the already existing -fno-omit-frame-pointer
there.

> Whether SunOS should really have different usage of omit-frame-pointer is
> open to argument.

Ok, I'll leave it to people who actually run a SunOS system :)



Don't optimize function calls on GNU systems with debug=y
by enforcing the addition of -fno-omit-frame-pointer, and adding
-fno-optimize-sibling-calls.

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>

diff -r fb74347d80c3 config/StdGNU.mk
--- a/config/StdGNU.mk  Wed Mar 05 12:20:40 2008 +0000
+++ b/config/StdGNU.mk  Fri Mar 07 14:54:43 2008 +0000
@@ -45,5 +45,5 @@ CFLAGS ?= -O2 -fomit-frame-pointer
 CFLAGS ?= -O2 -fomit-frame-pointer
 else
 # Less than -O1 produces bad code and large stack frames
-CFLAGS ?= -O1 -fno-omit-frame-pointer
+CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
 endif

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>