public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] gcn: Remove useless register keyword
@ 2022-07-01 10:27 Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2022-07-01 10:27 UTC (permalink / raw)
  To: gcc-patches, Andrew Stubbs

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

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

[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 948 bytes --]

commit 7780dc5b2d02785186583fc8eced3c9e3aec4552
Author: Tobias Burnus <tobias@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);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-01 10:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01 10:27 [committed] gcn: Remove useless register keyword Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).