diff mbox series

handle VIEW_CONVERT_EXPR in debug_node

Message ID 8bbe1e56-683b-e46d-8ee9-eaa6c8584b51@redhat.com
State New
Headers show
Series handle VIEW_CONVERT_EXPR in debug_node | expand

Commit Message

Ulrich Drepper Nov. 12, 2019, 7:48 p.m. UTC
I am using debug_node() to emit the tree of functions for later
processing.  For this I need all the information to be present.  So far
I came across one expression type that isn't handled correctly.  For
VIEW_CONVERT_EXPR only the type value is printed, not the first tree
operand.  The following patch fixes this.

OK?

2019-11-12  Ulrich Drepper  <drepper@redhat.com>

	* tree-dump.c (dequeue_and_dump): Print first tree operand
	for VIEW_CONVERT_EXPR.

Comments

Richard Biener Nov. 13, 2019, 2:33 p.m. UTC | #1
On Tue, Nov 12, 2019 at 8:49 PM Ulrich Drepper <drepper@redhat.com> wrote:
>
> I am using debug_node() to emit the tree of functions for later
> processing.  For this I need all the information to be present.  So far
> I came across one expression type that isn't handled correctly.  For
> VIEW_CONVERT_EXPR only the type value is printed, not the first tree
> operand.  The following patch fixes this.
>
> OK?

OK.

Richard.

> 2019-11-12  Ulrich Drepper  <drepper@redhat.com>
>
>         * tree-dump.c (dequeue_and_dump): Print first tree operand
>         for VIEW_CONVERT_EXPR.
>
> diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
> index 51c0965861f..83eb29b7e2b 100644
> --- a/gcc/tree-dump.c
> +++ b/gcc/tree-dump.c
> @@ -561,6 +561,7 @@ dequeue_and_dump (dump_info_p di)
>      case ADDR_EXPR:
>      case INDIRECT_REF:
>      case CLEANUP_POINT_EXPR:
> +    case VIEW_CONVERT_EXPR:
>      case SAVE_EXPR:
>      case REALPART_EXPR:
>      case IMAGPART_EXPR:
>
diff mbox series

Patch

diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
index 51c0965861f..83eb29b7e2b 100644
--- a/gcc/tree-dump.c
+++ b/gcc/tree-dump.c
@@ -561,6 +561,7 @@  dequeue_and_dump (dump_info_p di)
     case ADDR_EXPR:
     case INDIRECT_REF:
     case CLEANUP_POINT_EXPR:
+    case VIEW_CONVERT_EXPR:
     case SAVE_EXPR:
     case REALPART_EXPR:
     case IMAGPART_EXPR: