This silences the compile warnings: config/gcn/gcn-protos.h:78:61: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
and is in line with many other commits that remove 'register'. I also note that the the definition in config/gcn/gcn.cc already uses print_operand_address (FILE *file, rtx mem) and the "print_operand_address" prototype/definition in other config/* also don't have 'register' ... Committed as r13-1385-g7780dc5b2d02785186583fc8eced3c9e3aec4552 Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
commit 7780dc5b2d02785186583fc8eced3c9e3aec4552 Author: Tobias Burnus <tob...@codesourcery.com> Date: Fri Jul 1 12:21:24 2022 +0200 gcn: Remove useless register keyword gcc/ChangeLog: * config/gcn/gcn-protos.h (print_operand_address): Remove register keyword on 'rtx addr' argument. diff --git a/gcc/config/gcn/gcn-protos.h b/gcc/config/gcn/gcn-protos.h index 61791c90445..38197b929fd 100644 --- a/gcc/config/gcn/gcn-protos.h +++ b/gcc/config/gcn/gcn-protos.h @@ -75,7 +75,7 @@ extern bool gcn_valid_move_p (machine_mode, rtx, rtx); extern rtx gcn_vec_constant (machine_mode, int); extern rtx gcn_vec_constant (machine_mode, rtx); extern bool gcn_vgpr_move_p (rtx, rtx); -extern void print_operand_address (FILE *file, register rtx addr); +extern void print_operand_address (FILE *file, rtx addr); extern void print_operand (FILE *file, rtx x, int code); extern bool regno_ok_for_index_p (int);