public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] Generalise internal error messages
@ 2022-05-05 12:08 Matthew Malcomson
  0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-05-05 12:08 UTC (permalink / raw)
  To: gcc-cvs

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;
     }


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

only message in thread, other threads:[~2022-05-05 12:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 12:08 [gcc(refs/vendors/ARM/heads/morello)] Generalise internal error messages Matthew Malcomson

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).