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

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