public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <tobias@codesourcery.com>
To: gcc-patches <gcc-patches@gcc.gnu.org>,
	Andrew Stubbs <ams@codesourcery.com>
Subject: [committed] gcn: Remove useless register keyword
Date: Fri, 1 Jul 2022 12:27:39 +0200	[thread overview]
Message-ID: <5aedd7fd-9970-71f1-a35f-a505c17ed614@codesourcery.com> (raw)

[-- 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);
 

                 reply	other threads:[~2022-07-01 10:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5aedd7fd-9970-71f1-a35f-a505c17ed614@codesourcery.com \
    --to=tobias@codesourcery.com \
    --cc=ams@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).