From e288c49dd07f5d202c7577e65b7ae5ea861d5ee0 Mon Sep 17 00:00:00 2001 From: "Steven G. Kargl" Date: Wed, 23 Oct 2019 23:29:25 +0000 Subject: [PATCH] 2019-10-23 Steven G. Kargl dump-parse-tree.c (show_expr): Add dumping of BT_BOZ constants. From-SVN: r277358 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/dump-parse-tree.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 841aa66f378..5bb04d779eb 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2019-10-23 Steven G. Kargl + + dump-parse-tree.c (show_expr): Add dumping of BT_BOZ constants. + 2019-10-22 Steven G. Kargl PR fortran/92174 diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index 9d7b26f5f6a..9d7aad19e2f 100644 --- a/gcc/fortran/dump-parse-tree.c +++ b/gcc/fortran/dump-parse-tree.c @@ -559,6 +559,16 @@ show_expr (gfc_expr *p) fputc (')', dumpfile); break; + case BT_BOZ: + if (p->boz.rdx == 2) + fputs ("b'", dumpfile); + else if (p->boz.rdx == 8) + fputs ("o'", dumpfile); + else + fputs ("z'", dumpfile); + fprintf (dumpfile, "%s'", p->boz.str); + break; + case BT_HOLLERITH: fprintf (dumpfile, HOST_WIDE_INT_PRINT_DEC "H", p->representation.length); -- 2.30.2