Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 464368 Details for
Bug 607480
app-emulation/virtualbox-guest-additions-5.1.14 : /.../jump_label.h:295:65: error: ‘__builtin_types_compatible_p’ was not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
C++ version of __READ_ONCE
vbox.compiler.patch (text/plain), 807 bytes, created by
Joakim Tjernlund
on 2017-02-19 21:07:40 UTC
(
hide
)
Description:
C++ version of __READ_ONCE
Filename:
MIME Type:
Creator:
Joakim Tjernlund
Created:
2017-02-19 21:07:40 UTC
Size:
807 bytes
patch
obsolete
>--- 4.9.9-gentoo/build/include/linux/compiler.h 2016-12-11 20:17:54.000000000 +0100 >+++ 4.9.11-gentoo/build/include/linux/compiler.h 2017-02-19 16:48:37.245713902 +0100 >@@ -299,6 +299,7 @@ > * with an explicit memory barrier or atomic instruction that provides the > * required ordering. > */ >+#ifndef __cplusplus > > #define __READ_ONCE(x, check) \ > ({ \ >@@ -309,6 +310,17 @@ > __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ > __u.__val; \ > }) >+#else >+#define __READ_ONCE(x, check) \ >+({ \ >+ union { typeof(x) __val; char __c[1]={0}; } __u; \ >+ if (check) \ >+ __read_once_size(&(x), __u.__c, sizeof(x)); \ >+ else \ >+ __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ >+ __u.__val; \ >+}) >+#endif > #define READ_ONCE(x) __READ_ONCE(x, 1) > > /*
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 607480
:
461712
|
461714
|
461716
|
461718
|
461720
|
464366
| 464368