summaryrefslogtreecommitdiff
path: root/boost-1.78-icl-Avoid-gcc-bugs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'boost-1.78-icl-Avoid-gcc-bugs.patch')
-rw-r--r--boost-1.78-icl-Avoid-gcc-bugs.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/boost-1.78-icl-Avoid-gcc-bugs.patch b/boost-1.78-icl-Avoid-gcc-bugs.patch
new file mode 100644
index 0000000..a9ba455
--- /dev/null
+++ b/boost-1.78-icl-Avoid-gcc-bugs.patch
@@ -0,0 +1,36 @@
+From 1d176e542576e7e584eccd3e2badca33231768c1 Mon Sep 17 00:00:00 2001
+From: Liu Zixian <liuzixian4@huawei.com>
+Date: Mon, 12 Dec 2022 20:12:26 +0800
+Subject: [PATCH] Avoid gcc bugs
+
+This testcase triggers a gcc optimization bug.
+See https://gitee.com/src-openeuler/gcc/issues/I65UF9
+
+Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
+---
+ libs/icl/test/fix_tickets_/fix_tickets.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libs/icl/test/fix_tickets_/fix_tickets.cpp b/libs/icl/test/fix_tickets_/fix_tickets.cpp
+index 0232c3194..fc207e3f0 100644
+--- a/libs/icl/test/fix_tickets_/fix_tickets.cpp
++++ b/libs/icl/test/fix_tickets_/fix_tickets.cpp
+@@ -74,6 +74,7 @@ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_isEmptyTest)
+ BOOST_CHECK( icl::is_empty(Interval::open(max, max)));
+ }
+
++#ifndef __GNUC__
+ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_totalRangeTest)
+ {
+ typedef int Value;
+@@ -90,6 +91,7 @@ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_totalRangeTest)
+
+ BOOST_CHECK_EQUAL(intervals.iterative_size(), 3);
+ }
++#endif
+
+ BOOST_AUTO_TEST_CASE(test_ticket_7871)
+ {
+--
+2.36.1
+