From: Richard Biener Date: Thu, 15 Oct 2020 11:08:48 +0000 (+0200) Subject: fix TARGET_MEM_REF dumping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cb40b08bdf739a8e92b9586f5fa765830743522;p=gcc.git 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. --- 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);