aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-10-14 16:15:49 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-10-14 16:15:49 +0100
commit2b9c09a78b048328e41419e6b941cf0207bfd6bc (patch)
tree982d57794904da82a2afa9dff9c690dd5e1c74ea
parenta121715bcab6e8980768d142b9781c45821130ac (diff)
downloadgcc-2b9c09a78b048328e41419e6b941cf0207bfd6bc.zip
gcc-2b9c09a78b048328e41419e6b941cf0207bfd6bc.tar.gz
gcc-2b9c09a78b048328e41419e6b941cf0207bfd6bc.tar.bz2
libstdc++: Fix tests that fail with old std::string ABI
These two tests have started to fail with the old std::string ABI. The scan-assembler-not checks fail because they match debug info, not code. Adding -g0 to the test flags fixes them. libstdc++-v3/ChangeLog: * testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc: Do not generate debug info. * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc: Likewise.
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc
index 85584d6..9546ca6 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign_optim.cc
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-O1" }
+// { dg-options "-O1 -g0" }
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler-not "__throw_length_error" } }
// { dg-final { scan-assembler-not "__throw_bad_alloc" } }
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc
index 9f0a86f..752856b 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign_optim.cc
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-O1" }
+// { dg-options "-O1 -g0" }
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler-not "__throw_length_error" } }
// { dg-final { scan-assembler-not "__throw_bad_alloc" } }