From 7cb40b08bdf739a8e92b9586f5fa765830743522 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 15 Oct 2020 13:08:48 +0200 Subject: [PATCH] fix TARGET_MEM_REF dumping This fixes the missing constant offset from TARGET_MEM_REF dumping. 2020-10-15 Richard Biener * 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.30.2