From b3a02e2f7db0687a9465aa221a3bbe302417da6c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 13 Dec 2006 05:55:42 +0000 Subject: enable auto-vectorization on gcc 4.1.2; try out building with pentium3 and sse svn path=/trunk/; revision=6848 --- packages/linux_make/Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'packages/linux_make') diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index 775bda88..e767a549 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -19,18 +19,19 @@ include $(BUILDLAYOUT_DIR)/Makefile.buildlayout TARGET_PLATFORM := $(shell uname -m) ifeq ($(TARGET_PLATFORM),i686) # Generic x86 (tune for Pentium III, since that's more common these days) -OPT_CFLAGS += -march=i386 -else - ifeq ($(TARGET_PLATFORM),ppc) +#OPT_CFLAGS += -march=i386 +OPT_CFLAGS += -march=pentium3 -msse -mfpmath=sse +endif +ifeq ($(TARGET_PLATFORM),ppc) OPT_CFLAGS += -pipe -fsigned-char -mpowerpc-gfxopt - else - # more CPUs should go here - OPT_CFLAGS += - endif endif -# lots more here: http://www.gentoo.se/docs/doc-cflags.php +GCC_VERSION := $(shell gcc -dumpversion) +ifeq ($(GCC_VERSION),4.1.2) + OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=3 +endif +# lots more here: http://www.gentoo.se/docs/doc-cflags.php # these are sent to all of the various Makefiles so that they all copy their # output to the same directory tree -- cgit v1.2.1