FreeBSD Bugzilla – Attachment 170418 Details for
Bug 209590
emulators/qemu-sbruno emulators/qemu-user-static: Fix build with libc++ 3.8.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't define certain atomic macros for C++
emulators__qemu-sbruno-fix-atomic-1.diff (text/plain), 2.03 KB, created by
Dimitry Andric
on 2016-05-17 21:12:10 UTC
(
hide
)
Description:
Don't define certain atomic macros for C++
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-05-17 21:12:10 UTC
Size:
2.03 KB
patch
obsolete
>Index: emulators/qemu-sbruno/files/patch-qemu-include-qemu-atomic.h >=================================================================== >--- emulators/qemu-sbruno/files/patch-qemu-include-qemu-atomic.h (nonexistent) >+++ emulators/qemu-sbruno/files/patch-qemu-include-qemu-atomic.h (working copy) >@@ -0,0 +1,28 @@ >+--- a/include/qemu/atomic.h 2016-04-28 16:42:13 UTC >++++ b/include/qemu/atomic.h >+@@ -136,10 +136,12 @@ >+ /* Provide shorter names for GCC atomic builtins, return old value */ >+ #define atomic_fetch_inc(ptr) __atomic_fetch_add(ptr, 1, __ATOMIC_SEQ_CST) >+ #define atomic_fetch_dec(ptr) __atomic_fetch_sub(ptr, 1, __ATOMIC_SEQ_CST) >++#ifndef __cplusplus >+ #define atomic_fetch_add(ptr, n) __atomic_fetch_add(ptr, n, __ATOMIC_SEQ_CST) >+ #define atomic_fetch_sub(ptr, n) __atomic_fetch_sub(ptr, n, __ATOMIC_SEQ_CST) >+ #define atomic_fetch_and(ptr, n) __atomic_fetch_and(ptr, n, __ATOMIC_SEQ_CST) >+ #define atomic_fetch_or(ptr, n) __atomic_fetch_or(ptr, n, __ATOMIC_SEQ_CST) >++#endif >+ >+ /* And even shorter names that return void. */ >+ #define atomic_inc(ptr) ((void) __atomic_fetch_add(ptr, 1, __ATOMIC_SEQ_CST)) >+@@ -330,10 +332,12 @@ >+ /* Provide shorter names for GCC atomic builtins. */ >+ #define atomic_fetch_inc(ptr) __sync_fetch_and_add(ptr, 1) >+ #define atomic_fetch_dec(ptr) __sync_fetch_and_add(ptr, -1) >++#ifndef __cplusplus >+ #define atomic_fetch_add __sync_fetch_and_add >+ #define atomic_fetch_sub __sync_fetch_and_sub >+ #define atomic_fetch_and __sync_fetch_and_and >+ #define atomic_fetch_or __sync_fetch_and_or >++#endif >+ #define atomic_cmpxchg __sync_val_compare_and_swap >+ >+ /* And even shorter names that return void. */ > >Property changes on: emulators/qemu-sbruno/files/patch-qemu-include-qemu-atomic.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209590
: 170418