Commit 6e1b3e4da4de3720c8bd29cf22933a87e801b0d5

Authored by bellard
1 parent 87b47350

disable -fomit-frame-pointer


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2120 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 13 additions and 2 deletions
Makefile.target
@@ -66,8 +66,8 @@ LDFLAGS+=-static @@ -66,8 +66,8 @@ LDFLAGS+=-static
66 endif 66 endif
67 67
68 ifeq ($(ARCH),i386) 68 ifeq ($(ARCH),i386)
69 -CFLAGS+=-fomit-frame-pointer  
70 -OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2 69 +HELPER_CFLAGS:=$(CFLAGS) -fomit-frame-pointer
  70 +OP_CFLAGS:=$(CFLAGS) -mpreferred-stack-boundary=2 -fomit-frame-pointer
71 ifeq ($(HAVE_GCC3_OPTIONS),yes) 71 ifeq ($(HAVE_GCC3_OPTIONS),yes)
72 OP_CFLAGS+= -falign-functions=0 -fno-gcse 72 OP_CFLAGS+= -falign-functions=0 -fno-gcse
73 else 73 else
@@ -471,8 +471,19 @@ gen-op.h: op.o $(DYNGEN) @@ -471,8 +471,19 @@ gen-op.h: op.o $(DYNGEN)
471 op.o: op.c 471 op.o: op.c
472 $(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $< 472 $(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $<
473 473
  474 +# HELPER_CFLAGS is used for all the code compiled with static register
  475 +# variables
  476 +ifeq ($(TARGET_BASE_ARCH), i386)
  477 +# XXX: rename helper.c to op_helper.c
474 helper.o: helper.c 478 helper.o: helper.c
475 $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< 479 $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
  480 +else
  481 +op_helper.o: op_helper.c
  482 + $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
  483 +endif
  484 +
  485 +cpu-exec.o: cpu-exec.c
  486 + $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
476 487
477 ifeq ($(TARGET_BASE_ARCH), i386) 488 ifeq ($(TARGET_BASE_ARCH), i386)
478 op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h 489 op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h