- Fix build on amd64 < 9.0 by disabling assembly optimizations

This commit is contained in:
Pietro Cerutti 2013-05-15 08:43:42 +00:00
parent 01aab7ded7
commit f3a78c5dfa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318232

View file

@ -0,0 +1,20 @@
--- lib/FXAtomic.cpp.orig 2013-05-15 09:08:20.000000000 +0200
+++ lib/FXAtomic.cpp 2013-05-15 09:09:22.000000000 +0200
@@ -71,11 +71,17 @@
#if defined( __INTEL_COMPILER ) && !defined( __ia64__ )
#undef HAVE_BUILTIN_SYNC
#endif
+#if defined(__FreeBSD__) && defined(__amd64__) && __FreeBSD_version < 900000
+#undef HAVE_BUILTIN_SYNC
+#endif
#endif
// Have inline assembly only when using GNU C++ or Intel C++
#if (defined(__GNUC__) || defined(__INTEL_COMPILER))
#define HAVE_INLINE_ASSEMBLY 1
+#if defined(__FreeBSD__) && defined(__amd64__) && __FreeBSD_version < 900000
+#undef HAVE_INLINE_ASSEMBLY
+#endif
#endif