summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-31 23:02:03 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-31 23:02:03 +0000
commit153536dfc5a467f1f39b337175d2ced9d367b69c (patch)
treedd4685b0ca88e560d71b7cf8f59e4b6058bf2470 /gcc
parent9d0db5ea62430f1b60792f50413b0ec619fcc59a (diff)
downloadgcc-153536dfc5a467f1f39b337175d2ced9d367b69c.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86851 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-pretty-print.c22
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 <kenner@vlsi1.ultra.nyu.edu>
+ * 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 " --";