Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb/testsuite: ISO C++17 does not allow register storage class specifier.
@ 2020-08-22 12:19 Mark Wielaard
  2020-08-22 14:54 ` Simon Marchi
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Wielaard @ 2020-08-22 12:19 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mark Wielaard

g++ enables -Wregister when defaulting to C++17. Disable it for those
tests that explicitly use register.

gdb/testsuite/ChangeLog:

	* gdb.cp/classes.exp (prepare_for_testing): Add
	additional_flags=-Wno-register.
	* gdb.cp/inherit.exp (prepare_for_testing): Likewise.
	* gdb.cp/misc.exp (prepare_for_testing): Likewise.
---
 gdb/testsuite/ChangeLog          | 7 +++++++
 gdb/testsuite/gdb.cp/classes.exp | 2 +-
 gdb/testsuite/gdb.cp/inherit.exp | 2 +-
 gdb/testsuite/gdb.cp/misc.exp    | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7976dd76306..c55c9a71415 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2020-08-22  Mark Wielaard  <mark@klomp.org>
+
+	* gdb.cp/classes.exp (prepare_for_testing): Add
+	additional_flags=-Wno-register.
+	* gdb.cp/inherit.exp (prepare_for_testing): Likewise.
+	* gdb.cp/misc.exp (prepare_for_testing): Likewise.
+
 2020-08-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
 	* gdb.base/print-file-var.exp: Fix typo "breapoint".
diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
index 4a2287a8704..89e64c47cf9 100644
--- a/gdb/testsuite/gdb.cp/classes.exp
+++ b/gdb/testsuite/gdb.cp/classes.exp
@@ -25,7 +25,7 @@ load_lib "cp-support.exp"
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
-	 {debug c++ additional_flags=-Wno-deprecated-register}]} {
+	{debug c++ additional_flags=-Wno-deprecated-register additional_flags=-Wno-register}]} {
     return -1
 }
 
diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inherit.exp
index 2d4635c96ad..677d9ee5476 100644
--- a/gdb/testsuite/gdb.cp/inherit.exp
+++ b/gdb/testsuite/gdb.cp/inherit.exp
@@ -27,7 +27,7 @@ load_lib "cp-support.exp"
 standard_testfile misc.cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
-	 {debug c++ additional_flags=-Wno-deprecated-register}]} {
+	{debug c++ additional_flags=-Wno-deprecated-register additional_flags=-Wno-register}]} {
     return -1
 }
 
diff --git a/gdb/testsuite/gdb.cp/misc.exp b/gdb/testsuite/gdb.cp/misc.exp
index 61034bf8088..94acbd0b493 100644
--- a/gdb/testsuite/gdb.cp/misc.exp
+++ b/gdb/testsuite/gdb.cp/misc.exp
@@ -20,7 +20,7 @@ if { [skip_cplus_tests] } { continue }
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
-	 {debug c++ additional_flags=-Wno-deprecated-register}]} {
+	{debug c++ additional_flags=-Wno-deprecated-register additional_flags=-Wno-register}]} {
     return -1
 }
 
-- 
2.18.4



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-09-13 16:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 12:19 [PATCH] gdb/testsuite: ISO C++17 does not allow register storage class specifier Mark Wielaard
2020-08-22 14:54 ` Simon Marchi
2020-08-22 17:08   ` [PATCH] Move "register" test out of classes.exp to a separate testcase (Re: [PATCH] gdb/testsuite: ISO C++17 does not allow register storage class specifier.) Pedro Alves
2020-08-22 17:11     ` [PATCH] Remove stale "register" bits from gdb.cp/misc.cc (Re: [PATCH] Move "register" test out of classes.exp to a separate testcase) Pedro Alves
2020-08-22 18:53       ` Mark Wielaard
2020-08-22 19:01         ` Simon Marchi
2020-08-22 19:01           ` Simon Marchi
2020-09-13 16:40         ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox