public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Matthew Malcomson <matmal01@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] Generalise internal error messages
Date: Thu,  5 May 2022 12:08:22 +0000 (GMT)	[thread overview]
Message-ID: <20220505120822.E85DB385627E@sourceware.org> (raw)

https://gcc.gnu.org/g:99069291b34874476a448ffb4293dd46cc909cd0

commit 99069291b34874476a448ffb4293dd46cc909cd0
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Mon Apr 11 22:49:58 2022 +0100

    Generalise internal error messages
    
    Generalise two error messages that hard-coded the name ADDR_EXPR.
    These are not user errors but are instead reported alongside an
    internal compiler error.

Diff:
---
 gcc/tree-cfg.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 2e36f44956b..d987a50f01c 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -2992,12 +2992,14 @@ verify_address (tree t, bool verify_addressable)
 
   if (old_constant != new_constant)
     {
-      error ("constant not recomputed when %<ADDR_EXPR%> changed");
+      error ("constant not recomputed when %qs changed",
+	     get_tree_code_name (TREE_CODE (t)));
       return true;
     }
   if (old_side_effects != new_side_effects)
     {
-      error ("side effects not recomputed when %<ADDR_EXPR%> changed");
+      error ("side effects not recomputed when %qs changed",
+	     get_tree_code_name (TREE_CODE (t)));
       return true;
     }


                 reply	other threads:[~2022-05-05 12:08 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=20220505120822.E85DB385627E@sourceware.org \
    --to=matmal01@gcc.gnu.org \
    --cc=gcc-cvs@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).