There seems to be no benefit from using -fast over -O3 with icc.
So use -O3 everywhere.
No functional change
Resolves #652
ifeq ($(debug),no)
CXXFLAGS += -DNDEBUG
else
CXXFLAGS += -g
endif
ifeq ($(debug),no)
CXXFLAGS += -DNDEBUG
else
CXXFLAGS += -g
endif
ifeq ($(UNAME),Darwin)
ifeq ($(arch),i386)
ifeq ($(UNAME),Darwin)
ifeq ($(arch),i386)
- ifeq ($(comp),mingw)
- CXXFLAGS += -O3
- endif
-
ifeq ($(comp),icc)
ifeq ($(UNAME),Darwin)
ifeq ($(comp),icc)
ifeq ($(UNAME),Darwin)
- CXXFLAGS += -fast -mdynamic-no-pic
- else
- CXXFLAGS += -fast
+ CXXFLAGS += -mdynamic-no-pic
endif
endif
ifeq ($(comp),clang)
endif
endif
ifeq ($(comp),clang)
ifeq ($(UNAME),Darwin)
ifeq ($(pext),no)
CXXFLAGS += -flto
ifeq ($(UNAME),Darwin)
ifeq ($(pext),no)
CXXFLAGS += -flto
ifeq ($(bits),64)
CXXFLAGS += -DIS_64BIT
endif
ifeq ($(bits),64)
CXXFLAGS += -DIS_64BIT
endif
ifeq ($(prefetch),yes)
ifeq ($(sse),yes)
CXXFLAGS += -msse
ifeq ($(prefetch),yes)
ifeq ($(sse),yes)
CXXFLAGS += -msse
CXXFLAGS += -DNO_PREFETCH
endif
CXXFLAGS += -DNO_PREFETCH
endif
ifeq ($(popcnt),yes)
ifeq ($(comp),icc)
CXXFLAGS += -msse3 -DUSE_POPCNT
ifeq ($(popcnt),yes)
ifeq ($(comp),icc)
CXXFLAGS += -msse3 -DUSE_POPCNT
ifeq ($(pext),yes)
CXXFLAGS += -DUSE_PEXT
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
ifeq ($(pext),yes)
CXXFLAGS += -DUSE_PEXT
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
-### 3.11 Link Time Optimization, it works since gcc 4.5 but not on mingw under Windows.
+### 3.8 Link Time Optimization, it works since gcc 4.5 but not on mingw under Windows.
### This is a mix of compile and link time options because the lto link phase
### needs access to the optimization flags.
ifeq ($(comp),gcc)
### This is a mix of compile and link time options because the lto link phase
### needs access to the optimization flags.
ifeq ($(comp),gcc)
-### 3.12 Android 5 can only run position independent executables. Note that this
+### 3.9 Android 5 can only run position independent executables. Note that this
### breaks Android 4.0 and earlier.
ifeq ($(arch),armv7)
CXXFLAGS += -fPIE
### breaks Android 4.0 and earlier.
ifeq ($(arch),armv7)
CXXFLAGS += -fPIE