* [PATCH] fix TARGET_MEM_REF dumping
@ 2020-10-15 11:59 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2020-10-15 11:59 UTC (permalink / raw)
To: gcc-patches
This fixes the missing constant offset from TARGET_MEM_REF dumping.
Bootstrapped/teste don x86_64-unknown-linux-ngu, pushed.
2020-10-15 Richard Biener <rguenther@suse.de>
* tree-pretty-print.c (dump_mem_ref): Print constant offset
also for TARGET_MEM_REF.
---
gcc/tree-pretty-print.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index ed6407c0222..64ac5ab6cec 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -1542,8 +1542,7 @@ dump_mem_ref (pretty_printer *pp, tree node, int spc, dump_flags_t flags)
dump_generic_node (pp, op1type, spc, flags | TDF_SLIM, false);
pp_right_paren (pp);
dump_generic_node (pp, op0, spc, flags, false);
- if (TREE_CODE (node) == MEM_REF
- && !integer_zerop (op1))
+ if (!integer_zerop (op1))
{
pp_string (pp, " + ");
dump_generic_node (pp, op1, spc, flags, false);
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-15 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 11:59 [PATCH] fix TARGET_MEM_REF dumping Richard Biener
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).