From d69b8a03d74e23e9f96303d3e219825e328d6dd8 Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Tue, 25 Aug 2009 11:35:41 +0200 Subject: [PATCH] re PR middle-end/41149 (-fdump-tree-original and procedure pointer components) 2009-08-25 Janus Weil PR middle-end/41149 * tree-pretty-print.c (print_call_name): Print the correct call name for procedure pointer components. From-SVN: r151075 --- gcc/ChangeLog | 6 ++++++ gcc/tree-pretty-print.c | 14 +------------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3649eac57b5..ed775e98363b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-08-25 Janus Weil + + PR middle-end/41149 + * tree-pretty-print.c (print_call_name): Print the correct call name + for procedure pointer components. + 2009-08-24 Steve Ellcey * config/ia64/ia64.c (ia64_promote_function_mode): Call diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index faf23c619297..2c64ab96aa0a 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -2705,19 +2705,6 @@ print_call_name (pretty_printer *buffer, tree node, int flags) dump_generic_node (buffer, TREE_OPERAND (op0, 2), 0, flags, false); break; - case COMPONENT_REF: - /* The function is a pointer contained in a structure. */ - if (TREE_CODE (TREE_OPERAND (op0, 0)) == INDIRECT_REF || - TREE_CODE (TREE_OPERAND (op0, 0)) == VAR_DECL) - dump_function_name (buffer, TREE_OPERAND (op0, 1), flags); - else - dump_generic_node (buffer, TREE_OPERAND (op0, 0), 0, flags, false); - /* else - We can have several levels of structures and a function - pointer inside. This is not implemented yet... */ - /* NIY;*/ - break; - case ARRAY_REF: if (TREE_CODE (TREE_OPERAND (op0, 0)) == VAR_DECL) dump_function_name (buffer, TREE_OPERAND (op0, 0), flags); @@ -2725,6 +2712,7 @@ print_call_name (pretty_printer *buffer, tree node, int flags) dump_generic_node (buffer, op0, 0, flags, false); break; + case COMPONENT_REF: case SSA_NAME: case OBJ_TYPE_REF: dump_generic_node (buffer, op0, 0, flags, false); -- 2.43.5