summaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-25 09:35:41 +0000
committerjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-25 09:35:41 +0000
commit2692ac974defc13fd8daeb8863ce4d2971e86ad7 (patch)
tree4a95cc03f398f18118e0a35d0b3ce920195f30e1 /gcc/tree-pretty-print.c
parent05aba1e09738f4bc21f32b91e52cb373ab68a824 (diff)
downloadgcc-2692ac974defc13fd8daeb8863ce4d2971e86ad7.tar.gz
2009-08-25 Janus Weil <janus@gcc.gnu.org>
PR middle-end/41149 * tree-pretty-print.c (print_call_name): Print the correct call name for procedure pointer components. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151075 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index faf23c61929..2c64ab96aa0 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);