diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-18 20:41:34 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-18 20:41:34 +0000 |
commit | ca735206e0f223d75894260fb98c0c605f590817 (patch) | |
tree | 62b4a4e5cd7058fc501cf5d24fa93d7021f680c9 /Makefile | |
parent | 5dd9488c09081a76ff86e0d74e56a9d98d666d64 (diff) |
gcc 3.x fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@33 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -7,13 +7,23 @@ DEFINES=-DHAVE_BYTESWAP_H ifeq ($(ARCH),i386) CFLAGS+=-fomit-frame-pointer -OP_CFLAGS=$(CFLAGS) -malign-functions=0 -mpreferred-stack-boundary=2 +OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2 +ifeq ($(GCC_MAJOR),3) +OP_CFLAGS+= -falign-functions=0 +else +OP_CFLAGS+= -malign-functions=0 +endif endif ifeq ($(ARCH),ppc) OP_CFLAGS=$(CFLAGS) endif +ifeq ($(GCC_MAJOR),3) +# very important to generate a return at the end of every operation +OP_CFLAGS+=-fno-reorder-blocks -fno-optimize-sibling-calls +endif + ######################################################### DEFINES+=-D_GNU_SOURCE |