Remove stale "register" bits from gdb.cp/misc.cc
authorPedro Alves <pedro@palves.net>
Sat, 22 Aug 2020 17:00:55 +0000 (18:00 +0100)
committerPedro Alves <pedro@palves.net>
Sun, 13 Sep 2020 14:46:21 +0000 (15:46 +0100)
commit3b8d4c5cc045ba80cc5b095fba06287050b7ef87
treecad9b15a0e3b4953b0431d28a417a495991e63dd
parentd5f96005a632d2a4e08ed93beb3ba0a01d12ce24
Remove stale "register" bits from gdb.cp/misc.cc

gdb.cp/misc.cc seems to have been originally copied from
gdb.cp/classes.cc.  The testcases that use it, misc.exp and
inherit.exp don't reference the "register" bits anywhere.  Remove
them, since they trigger warnings with newer GCCs, given "register" is
being removed in C++17.

gdb/testsuite/ChangeLog:

* gdb.cp/inherit.exp: No longer pass -Wno-deprecated-register.
* gdb.cp/misc.exp: No longer pass -Wno-deprecated-register.
* gdb.cp/misc.cc (class small, small::method, marker_reg1)
(register_class): Delete.
(main): Don't call register_class.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/inherit.exp
gdb/testsuite/gdb.cp/misc.cc
gdb/testsuite/gdb.cp/misc.exp