# HG changeset patch # User tristan.gingold@xxxxxxxx # Node ID a057ed1b87c64038aa44a98082e29b97c936cf39 # Parent 7faa1f51bcd68f3deaed8b0fd90a0a4ae3d79a91 -mconstant-gp gcc/as option added. Thus gp is not saved/restored before calls, saving memory and bundles. Signed-off-by: Tristan Gingold diff -r 7faa1f51bcd6 -r a057ed1b87c6 xen/arch/ia64/Rules.mk --- a/xen/arch/ia64/Rules.mk Fri Mar 17 08:45:37 2006 +++ b/xen/arch/ia64/Rules.mk Fri Mar 17 09:51:22 2006 @@ -6,6 +6,7 @@ CROSS_COMPILE ?= /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux- endif AFLAGS += -D__ASSEMBLY__ -nostdinc $(CPPFLAGS) +AFLAGS += -mconstant-gp CPPFLAGS += -I$(BASEDIR)/include -I$(BASEDIR)/include/asm-ia64 \ -I$(BASEDIR)/include/asm-ia64/linux \ -I$(BASEDIR)/include/asm-ia64/linux-xen \ @@ -13,6 +14,7 @@ -I$(BASEDIR)/arch/ia64/linux -I$(BASEDIR)/arch/ia64/linux-xen CFLAGS += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing +CFLAGS += -mconstant-gp #CFLAGS += -O3 # -O3 over-inlines making debugging tough! CFLAGS += -O2 # but no optimization causes compile errors! #CFLAGS += -iwithprefix include -Wall -DMONITOR_BASE=$(MONITOR_BASE)