dnl Process this file with autoconf to produce a configure script.
-AC_INIT([rsync],[3.2.1dev],[http://rsync.samba.org/bugzilla.html])
+AC_INIT([rsync],[3.2.2dev],[https://rsync.samba.org/bugtracking.html])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([byteorder.h])
__attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
-inline void more_testing(char* buf, int len)
+__attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
+__attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
{
int i;
for (i = 0; i < (len-32); i+=32) {
SIMD='$(SIMD_'"$SIMD)"
# We only use c++ for its target attribute dispatching, disable unneeded bulky features
CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
+ # Apple often has "g++" as a symlink for clang. Try to find out the truth.
+ CXX_VERSION=`$CXX --version 2>/dev/null | head -n 2`
+ case "$CXX_VERSION" in
+ *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit
+ esac
else
AC_MSG_RESULT(no)
fi