gcc-toolset-13-gcc/0018-Use-CXX11-ABI.patch
Marek Polacek 1cf16bd739 13.1.1-1
Update from releases/gcc-13 branch

Resolves: #2188499
2023-06-21 12:03:30 +02:00

27 lines
871 B
Diff

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