Blame SOURCES/0018-Use-CXX11-ABI.patch

0fe1ac
diff --git a/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C b/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C
0fe1ac
index 47f97dcb636..66f07aaa749 100644
0fe1ac
--- a/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C
0fe1ac
+++ b/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C
0fe1ac
@@ -4,6 +4,8 @@
0fe1ac
    { dg-do compile { target c++11 } }
0fe1ac
    { dg-options "-O2 -Wall" } */
0fe1ac
 
0fe1ac
+#define _GLIBCXX_USE_CXX11_ABI 1
0fe1ac
+
0fe1ac
 #include <memory>
0fe1ac
 #include <string>
0fe1ac
 
5ae6c5
diff --git a/gcc/testsuite/g++.dg/torture/pr106922.C b/gcc/testsuite/g++.dg/torture/pr106922.C
5ae6c5
index 046fc6cce76..4214a31f276 100644
5ae6c5
--- a/gcc/testsuite/g++.dg/torture/pr106922.C
5ae6c5
+++ b/gcc/testsuite/g++.dg/torture/pr106922.C
5ae6c5
@@ -4,6 +4,8 @@
5ae6c5
 // -O1 doesn't iterate VN and thus has bogus uninit diagnostics
5ae6c5
 // { dg-skip-if "" { *-*-* } { "-O1" } { "" } }
5ae6c5
 
5ae6c5
+#define _GLIBCXX_USE_CXX11_ABI 1
5ae6c5
+
5ae6c5
 #include <vector>
5ae6c5
 
5ae6c5
 #include <optional>