Fixes gcc8 build error: 34/221534/1 accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.0_base_tool_hotfix accepted/tizen_6.5_base accepted/tizen_6.5_base_tool accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix tizen_6.0_base tizen_6.0_base_hotfix tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix accepted/tizen/6.0/base/20201029.110402 accepted/tizen/6.0/base/20230713.142814 accepted/tizen/6.0/base/tool/20201029.111918 accepted/tizen/6.0/base/tool/hotfix/20201030.124735 accepted/tizen/6.0/base/tool/hotfix/20201102.085909 accepted/tizen/6.5/base/20230714.002441 accepted/tizen/6.5/base/tool/20211027.112313 accepted/tizen/7.0/base/20230714.002851 accepted/tizen/7.0/base/hotfix/20230714.003706 accepted/tizen/7.0/base/tool/20221028.113043 accepted/tizen/7.0/base/tool/hotfix/20221115.084835 accepted/tizen/base/20200113.064835 submit/tizen_6.0_base/20201029.184801 submit/tizen_6.0_base_hotfix/20201030.192501 submit/tizen_6.0_base_hotfix/20201102.162701 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.200501 submit/tizen_7.0_base/20221028.200901 submit/tizen_7.0_base_hotfix/20221115.161501 submit/tizen_base/20200107.090921 submit/tizen_base/20200108.035402 submit/tizen_base/20201207.055733 submit/tizen_base/20201208.051231 submit/tizen_base/20201208.051733 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorDongkyun Son <dongkyun.s@samsung.com>
Fri, 3 Jan 2020 10:50:31 +0000 (19:50 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 3 Jan 2020 10:51:09 +0000 (19:51 +0900)
In file included from ../src/dbinc/mutex_int.h:12,
                 from ../src/dbinc/mutex.h:15,
                 from ./db_int.h:1113,
                 from ../lang/cxx/cxx_channel.cpp:11:
../src/dbinc/atomic.h:179:19: error:
 definition of 'int __atomic_compare_exchange(db_atomic_t*, atomic_value_t, atomic_value_t)'
 ambiguates built-in declaration
 'bool __atomic_compare_exchange(long unsigned int, volatile void*, void*, void*, int, int)'
 static inline int __atomic_compare_exchange(
                   ^~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I733aeb261576b76cdfd83ef54c33e2919ebfc9bf
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
dbinc/atomic.h

index 0034dcc..fa7ba93 100644 (file)
@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
 #define        atomic_inc(env, p)      __atomic_inc(p)
 #define        atomic_dec(env, p)      __atomic_dec(p)
 #define        atomic_compare_exchange(env, p, o, n)   \
-       __atomic_compare_exchange((p), (o), (n))
+       __db_atomic_compare_exchange((p), (o), (n))
 static inline int __atomic_inc(db_atomic_t *p)
 {
        int     temp;
@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic_t *p)
  * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
  * which configure could be changed to use.
  */
-static inline int __atomic_compare_exchange(
+static inline int __db_atomic_compare_exchange(
        db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
 {
        atomic_value_t was;