mirror of https://github.com/xemu-project/xemu.git
disable -fomit-frame-pointer
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2120 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
87b47350ed
commit
6e1b3e4da4
|
@ -66,8 +66,8 @@ LDFLAGS+=-static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),i386)
|
ifeq ($(ARCH),i386)
|
||||||
CFLAGS+=-fomit-frame-pointer
|
HELPER_CFLAGS:=$(CFLAGS) -fomit-frame-pointer
|
||||||
OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2
|
OP_CFLAGS:=$(CFLAGS) -mpreferred-stack-boundary=2 -fomit-frame-pointer
|
||||||
ifeq ($(HAVE_GCC3_OPTIONS),yes)
|
ifeq ($(HAVE_GCC3_OPTIONS),yes)
|
||||||
OP_CFLAGS+= -falign-functions=0 -fno-gcse
|
OP_CFLAGS+= -falign-functions=0 -fno-gcse
|
||||||
else
|
else
|
||||||
|
@ -471,8 +471,19 @@ gen-op.h: op.o $(DYNGEN)
|
||||||
op.o: op.c
|
op.o: op.c
|
||||||
$(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $<
|
$(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
|
helper.o: helper.c
|
||||||
$(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
|
$(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)
|
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
|
op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h
|
||||||
|
|
Loading…
Reference in New Issue