From: Diego Novillo Date: Mon, 30 Aug 2004 05:46:54 +0000 (+0000) Subject: tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE in COMPONENT_REF nodes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef6379fdedd18f97b54ef2787974e997e1df0ac0;p=gcc.git tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE in COMPONENT_REF nodes. * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE in COMPONENT_REF nodes. From-SVN: r86751 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9b6627340b..bbea1d40a97 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-30 Diego Novillo + + * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE + in COMPONENT_REF nodes. + 2004-08-29 Gabriel Dos Reis PR c++/15378 diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 1cc5e7494c3..da30d89ecf2 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -627,12 +627,15 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, pp_string (buffer, str); dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false); - op0 = component_ref_field_offset (node); - if (op0 && TREE_CODE (op0) != INTEGER_CST) + if (TREE_CODE (op0) != VALUE_HANDLE) { - pp_string (buffer, "{off: "); - dump_generic_node (buffer, op0, spc, flags, false); - pp_character (buffer, '}'); + op0 = component_ref_field_offset (node); + if (op0 && TREE_CODE (op0) != INTEGER_CST) + { + pp_string (buffer, "{off: "); + dump_generic_node (buffer, op0, spc, flags, false); + pp_character (buffer, '}'); + } } break;