summarylogtreecommitdiffstats
path: root/gcc_rdtsc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_rdtsc.patch')
-rw-r--r--gcc_rdtsc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc_rdtsc.patch b/gcc_rdtsc.patch
new file mode 100644
index 000000000000..411da804d008
--- /dev/null
+++ b/gcc_rdtsc.patch
@@ -0,0 +1,13 @@
+diff --git a/src/utils.h b/src/utils.h
+index 54a062a..e3037a3 100644
+--- a/src/utils.h
++++ b/src/utils.h
+@@ -48,7 +48,7 @@
+
+ #define xassert(cond, msg) if ((cond) == 0) _err_fatal_simple_core(__func__, msg)
+
+-#if defined(__GNUC__) && !defined(__clang__)
++#if defined(__GNUC__) && __GNUC__ < 11 && !defined(__clang__)
+ #if defined(__i386__)
+ static inline unsigned long long __rdtsc(void)
+ {