From a0ca8e0c48cbda3a4f82d32b0d6659f0f82085e9 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 31 Aug 2004 23:02:03 +0000 Subject: [PATCH] tree-pretty-print.c (dump_generic_node, [...]): Add blank after ')'. * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add blank after ')'. (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used. From-SVN: r86851 --- gcc/ChangeLog | 4 ++++ gcc/tree-pretty-print.c | 22 ++++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33ecad55a40..d357130ab70 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2004-08-31 Richard Kenner + * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add + blank after ')'. + (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used. + * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT. (c_sizeof_of_alignof_type): Likewise. * expr.c (array_ref_element_size): Likewise. diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index da30d89ecf2..0d1e540a3b8 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1077,7 +1077,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, { pp_character (buffer, '('); dump_generic_node (buffer, type, spc, flags, false); - pp_string (buffer, ")"); + pp_string (buffer, ") "); } if (op_prio (op0) < op_prio (node)) pp_character (buffer, '('); @@ -1831,18 +1831,32 @@ op_symbol (tree op) return "*"; case TRUNC_DIV_EXPR: + case RDIV_EXPR: + return "/"; + case CEIL_DIV_EXPR: + return "/[cl]"; + case FLOOR_DIV_EXPR: + return "/[fl]"; + case ROUND_DIV_EXPR: - case RDIV_EXPR: + return "/[rd]"; + case EXACT_DIV_EXPR: - return "/"; + return "/[ex]"; case TRUNC_MOD_EXPR: + return "%"; + case CEIL_MOD_EXPR: + return "%[cl]"; + case FLOOR_MOD_EXPR: + return "%[fl]"; + case ROUND_MOD_EXPR: - return "%"; + return "%[rd]"; case PREDECREMENT_EXPR: return " --"; -- 2.30.2