Author: dcoakley Date: 2011-12-14 16:11:19 -0500 (Wed, 14 Dec 2011) New Revision: 3851
Modified: trunk/osprey/linux/make/gcommondefs Log: Use default target architecture for build of x86 compiler and libraries. Previously the build used the "-march=anyx86" option to target the most generic cpu possible. However, newer Linux distributions such as Fedora 16 64-bit are built to assume SSE2 support (e.g. by using SSE2 instructions in inline assembly in the system header files) even for 32-bit code as all 64-bit capable x86 processors also support SSE2. Instead of trying to target a specific cpu, the build now targets the auto-detected cpu of the host system. Approved by: Mike Murphy Modified: trunk/osprey/linux/make/gcommondefs =================================================================== --- trunk/osprey/linux/make/gcommondefs 2011-12-13 09:04:06 UTC (rev 3850) +++ trunk/osprey/linux/make/gcommondefs 2011-12-14 21:11:19 UTC (rev 3851) @@ -166,16 +166,6 @@ CCNAME = pathcc C++NAME = pathCC F90 = pathf90 - ifeq ($(BUILD_TARGET), X8664) - CCNAME += -march=anyx86 - C++NAME += -march=anyx86 - F90 += -march=anyx86 - endif - ifeq ($(BUILD_TARGET), IA32) - CCNAME += -march=anyx86 - C++NAME += -march=anyx86 - F90 += -march=anyx86 - endif F77 = $(F90) AR = ar endif @@ -186,23 +176,6 @@ C++NAME = openCC F90 = openf90 F90_RTLIBS = -Wl,-Bstatic -lfortran -Wl,-Bdynamic - - ifeq ($(BUILD_TARGET), X8664) - CCNAME += -march=anyx86 - C++NAME += -march=anyx86 - F90 += -march=anyx86 - endif - ifeq ($(BUILD_TARGET), IA32) - CCNAME += -march=anyx86 - C++NAME += -march=anyx86 - F90 += -march=anyx86 - endif - ifeq ($(BUILD_TARGET), IA64) - # only 64bit libraries set the BUILD_ARCH to X8664 - CCNAME += - C++NAME += - F90 += - endif F77 = $(F90) AR = ar endif @@ -218,32 +191,15 @@ CCNAME += -run-build=$(TOP_BUILDDIR) -L$(BUILD_AREA)/libopen64rt -L$(BUILD_AREA)/libacml_mv C++NAME += -run-build=$(TOP_BUILDDIR) F90 += -run-build=$(TOP_BUILDDIR) - - ifeq ($(BUILD_TARGET), X8664) - CCNAME += -march=anyx86 - C++NAME += -march=anyx86 - F90 += -march=anyx86 - endif - ifeq ($(BUILD_TARGET), IA32) - CCNAME += -march=anyx86 - C++NAME += -march=anyx86 - F90 += -march=anyx86 - endif - ifeq ($(BUILD_TARGET), IA64) - # only 64bit libraries set the BUILD_ARCH to X8664 - CCNAME += - C++NAME += - F90 += - endif F77 = $(F90) AR = ar endif ifeq ($(BUILD_ARCH), IA32) # only 32bit libraries set the BUILD_TARGET to IA32 - CCNAME += -m32 -mno-sse2 - C++NAME += -m32 -mno-sse2 - F90 += -m32 -mno-sse2 + CCNAME += -m32 + C++NAME += -m32 + F90 += -m32 endif ifeq ($(BUILD_ARCH), X8664) ------------------------------------------------------------------------------ Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149/ _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel