From: bellard Date: Thu, 17 Aug 2006 17:41:26 +0000 (+0000) Subject: disable -fomit-frame-pointer X-Git-Tag: release_0_9_0-iwjtag~281 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b82019262c4f51eeae0ceacf42056d076db5b5ff;p=qemu-xen-3.4-testing.git disable -fomit-frame-pointer --- diff --git a/Makefile.target b/Makefile.target index 7ace0a83..9ce7e7f5 100644 --- a/Makefile.target +++ b/Makefile.target @@ -66,8 +66,8 @@ LDFLAGS+=-static endif ifeq ($(ARCH),i386) -CFLAGS+=-fomit-frame-pointer -OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2 +HELPER_CFLAGS:=$(CFLAGS) -fomit-frame-pointer +OP_CFLAGS:=$(CFLAGS) -mpreferred-stack-boundary=2 -fomit-frame-pointer ifeq ($(HAVE_GCC3_OPTIONS),yes) OP_CFLAGS+= -falign-functions=0 -fno-gcse else @@ -471,8 +471,19 @@ gen-op.h: op.o $(DYNGEN) op.o: op.c $(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $< +# HELPER_CFLAGS is used for all the code compiled with static register +# variables +ifeq ($(TARGET_BASE_ARCH), i386) +# XXX: rename helper.c to op_helper.c helper.o: helper.c $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< +else +op_helper.o: op_helper.c + $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< +endif + +cpu-exec.o: cpu-exec.c + $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< ifeq ($(TARGET_BASE_ARCH), i386) op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h