aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-02-13 20:54:51 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-02-13 20:54:51 +0000
commit75527e1dea411fe4287369739663ab77d4d5984c (patch)
tree9c47523eb1ae6f96f29759bfffd92a4023db9a81 /dist
parent1abb38260f4e31fc5da2586527c367dee1e384c3 (diff)
Remove optimisation now void since libc now optimizes for newer cpus.
Time has caught up.
Diffstat (limited to 'dist')
-rw-r--r--dist/patch.stl_vector.h.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/dist/patch.stl_vector.h.diff b/dist/patch.stl_vector.h.diff
new file mode 100644
index 00000000000..e2474c3a32b
--- /dev/null
+++ b/dist/patch.stl_vector.h.diff
@@ -0,0 +1,30 @@
+--- /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_vector.h 2022-09-14 17:00:12.000000000 +0000
++++ ./stl_vector.h 2023-02-10 13:24:44.885703192 +0000
+@@ -1814,10 +1814,10 @@
+ #if __cplusplus < 201103L
+ // Called by insert(p,x)
+ void
+- _M_insert_aux(iterator __position, const value_type& __x);
++ _M_insert_aux(iterator __position, const value_type& __x) __attribute((noinline));
+
+ void
+- _M_realloc_insert(iterator __position, const value_type& __x);
++ _M_realloc_insert(iterator __position, const value_type& __x) __attribute((noinline));
+ #else
+ // A value_type object constructed with _Alloc_traits::construct()
+ // and destroyed with _Alloc_traits::destroy().
+@@ -1860,12 +1860,12 @@
+ template<typename _Arg>
+ _GLIBCXX20_CONSTEXPR
+ void
+- _M_insert_aux(iterator __position, _Arg&& __arg);
++ _M_insert_aux(iterator __position, _Arg&& __arg) __attribute((noinline));
+
+ template<typename... _Args>
+ _GLIBCXX20_CONSTEXPR
+ void
+- _M_realloc_insert(iterator __position, _Args&&... __args);
++ _M_realloc_insert(iterator __position, _Args&&... __args) __attribute((noinline));
+
+ // Either move-construct at the end, or forward to _M_insert_aux.
+ _GLIBCXX20_CONSTEXPR