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

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