summaryrefslogtreecommitdiff
path: root/patches/www-client/chromium-72.0.3626.96/atomic.patch
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2019-02-24 22:49:16 -0700
committerKenny Ballou <kballou@devnulllabs.io>2019-02-26 22:13:37 -0700
commit59201188169f51645159ebb2cf0cd52619915c16 (patch)
treee79e696139305b3e89b8ed8101ded2cbe599394e /patches/www-client/chromium-72.0.3626.96/atomic.patch
parent1c74e95fd91718007da08ce6e7d80e608461119d (diff)
downloadgentoo.patches-59201188169f51645159ebb2cf0cd52619915c16.tar.gz
gentoo.patches-59201188169f51645159ebb2cf0cd52619915c16.tar.xz
Add chromium-72 patches from debian project
Collect a number of patches, specifically, `fixes` and `gcc6` patches for compiling chromium-72. [0]: https://salsa.debian.org/chromium-team/chromium/tree/master/debian/patches Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'patches/www-client/chromium-72.0.3626.96/atomic.patch')
-rw-r--r--patches/www-client/chromium-72.0.3626.96/atomic.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/www-client/chromium-72.0.3626.96/atomic.patch b/patches/www-client/chromium-72.0.3626.96/atomic.patch
new file mode 100644
index 0000000..7c787ea
--- /dev/null
+++ b/patches/www-client/chromium-72.0.3626.96/atomic.patch
@@ -0,0 +1,34 @@
+description: gcc 6 does not provide a typedef for atomic<uint32_t>
+author: Michael Gilbert <mgilbert@debian.org>
+
+--- a/third_party/blink/renderer/platform/heap/gc_info.cc
++++ b/third_party/blink/renderer/platform/heap/gc_info.cc
+@@ -51,7 +51,7 @@ void GCInfoTable::CreateGlobalTable() {
+
+ uint32_t GCInfoTable::EnsureGCInfoIndex(
+ const GCInfo* gc_info,
+- std::atomic_uint32_t* gc_info_index_slot) {
++ std::atomic<uint32_t>* gc_info_index_slot) {
+ DCHECK(gc_info);
+ DCHECK(gc_info_index_slot);
+
+--- a/third_party/blink/renderer/platform/heap/gc_info.h
++++ b/third_party/blink/renderer/platform/heap/gc_info.h
+@@ -72,7 +72,7 @@ class PLATFORM_EXPORT GCInfoTable {
+ return info;
+ }
+
+- uint32_t EnsureGCInfoIndex(const GCInfo*, std::atomic_uint32_t*);
++ uint32_t EnsureGCInfoIndex(const GCInfo*, std::atomic<uint32_t>*);
+
+ uint32_t GcInfoIndex() { return current_index_; }
+
+@@ -117,7 +117,7 @@ struct GCInfoAtBaseType {
+ };
+ // This is more complicated than using threadsafe initialization, but this
+ // is instantiated many times (once for every GC type).
+- static std::atomic_uint32_t gc_info_index{0};
++ static std::atomic<uint32_t> gc_info_index{0};
+ uint32_t index = gc_info_index.load(std::memory_order_acquire);
+ if (!index)
+ index = GCInfoTable::Get().EnsureGCInfoIndex(&kGcInfo, &gc_info_index);