Created attachment 65842 [details] Detect GCC built-in atomic functions, __sync_add_and_fetch() and __sync_sub_and_fetch(). Currently, sal uses GCC built-in atomic functions based on GCC version. Unfortunately, it is not always correct. For example, FreeBSD has GCC 4.2.1 but it has __sync_add_and_fetch() and __sync_sub_and_fetch(). Also, Clang has these features.
Created attachment 65843 [details] Configure clucene properly.
Created attachment 65844 [details] Use the newly added HAVE_GCC_BUILTIN_ATOMIC for sal.
Created attachment 65845 [details] Configure clucene properly.
Created attachment 65853 [details] Detect GCC built-in atomic functions. Added __sync_synchronize() and __sync_val_compare_and_swap().
Created attachment 65854 [details] Configure icu properly.
Jung-uk Kim committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0983231c8382234cc08124d1ce9a3e200dd0da0e fdo#53855: Detect GCC built-in atomic functions
Jung-uk Kim committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1d6e13e13b36163c07fc6013c9c3da6fc553e697 fdo#53855: Use the newly added HAVE_GCC_BUILTIN_ATOMIC for sal
Jung-uk Kim committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=8a55c4af62d90ff8518491a86a97bfe827591ece fdo#53855: Use the newly added HAVE_GCC_BUILTIN_ATOMIC for clucene
Jung-uk Kim committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=6e7baaaba85b0d6cd86e959f9af229a0d30c01f8 fdo#53855: Use the newly added HAVE_GCC_BUILTIN_ATOMIC for icu