diff options
author | Zack Middleton <zturtleman@gmail.com> | 2014-03-24 13:09:49 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:42 +0100 |
commit | dd7cd7cc21f47f48383be72d28e502eea13f376b (patch) | |
tree | 3d5703c2649b778e9d929b489c8897abe635ed4f /Makefile | |
parent | 69ea1e53a79bc986492e961cf3b7e6ff6ffd97ca (diff) |
Remove -falign-loops and -falign-jumps from Makefile
Clang warns and errors because of them on various platforms.
Based on pull request #43 by @xhairball.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 6 insertions, 14 deletions
@@ -315,15 +315,13 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu")) ifeq ($(ARCH),x86_64) OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \ - -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ - -fstrength-reduce + -falign-functions=2 -fstrength-reduce OPTIMIZE = $(OPTIMIZEVM) -ffast-math HAVE_VM_COMPILED = true else ifeq ($(ARCH),x86) OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \ - -funroll-loops -falign-loops=2 -falign-jumps=2 \ - -falign-functions=2 -fstrength-reduce + -funroll-loops -falign-functions=2 -fstrength-reduce OPTIMIZE = $(OPTIMIZEVM) -ffast-math HAVE_VM_COMPILED=true else @@ -473,7 +471,6 @@ ifeq ($(PLATFORM),darwin) $(LIBSDIR)/macosx/libSDL-1.2.0.dylib RENDERER_LIBS += -framework OpenGL $(LIBSDIR)/macosx/libSDL-1.2.0.dylib - OPTIMIZEVM += -falign-loops=16 OPTIMIZE = $(OPTIMIZEVM) -ffast-math SHLIBEXT=dylib @@ -548,15 +545,13 @@ ifeq ($(PLATFORM),mingw32) ifeq ($(ARCH),x86_64) OPTIMIZEVM = -O3 -fno-omit-frame-pointer \ - -falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \ - -fstrength-reduce + -funroll-loops -falign-functions=2 -fstrength-reduce OPTIMIZE = $(OPTIMIZEVM) --fast-math HAVE_VM_COMPILED = true endif ifeq ($(ARCH),x86) OPTIMIZEVM = -O3 -march=i586 -fno-omit-frame-pointer \ - -falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \ - -fstrength-reduce + -funroll-loops -falign-functions=2 -fstrength-reduce OPTIMIZE = $(OPTIMIZEVM) -ffast-math HAVE_VM_COMPILED = true endif @@ -701,15 +696,13 @@ ifeq ($(PLATFORM),openbsd) ifeq ($(ARCH),x86_64) OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \ - -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ - -fstrength-reduce + -falign-functions=2 -fstrength-reduce OPTIMIZE = $(OPTIMIZEVM) -ffast-math HAVE_VM_COMPILED = true else ifeq ($(ARCH),x86) OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \ - -funroll-loops -falign-loops=2 -falign-jumps=2 \ - -falign-functions=2 -fstrength-reduce + -funroll-loops -falign-functions=2 -fstrength-reduce OPTIMIZE = $(OPTIMIZEVM) -ffast-math HAVE_VM_COMPILED=true else @@ -847,7 +840,6 @@ ifeq ($(PLATFORM),sunos) else ifeq ($(ARCH),x86) OPTIMIZEVM += -march=i586 -fomit-frame-pointer \ - -falign-loops=2 -falign-jumps=2 \ -falign-functions=2 -fstrength-reduce HAVE_VM_COMPILED=true BASE_CFLAGS += -m32 |