[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH3] Don't optimize function calls with -g
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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |