diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-01-02 15:38:05 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-01-02 15:38:05 +0100 |
commit | 0cf0d02be54d74af357414f6a1531ad3b9319855 (patch) | |
tree | 77592e561a3eb185ce8cb757924ea596164cef4e /gcc/tree-flow.h | |
parent | e3606f3bda110bcec675134174c8d72f09cce75d (diff) | |
download | gcc-0cf0d02be54d74af357414f6a1531ad3b9319855.zip gcc-0cf0d02be54d74af357414f6a1531ad3b9319855.tar.gz gcc-0cf0d02be54d74af357414f6a1531ad3b9319855.tar.bz2 |
re PR middle-end/38690 (Missing parentheses for (a-1)/2 in final_cleanup)
PR middle-end/38690
* tree-flow.h (op_code_prio, op_prio): New prototypes.
* tree-pretty-print.c (op_code_prio): New function.
(op_prio): No longer static. Use op_code_prio.
* gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
Use op_prio and op_code_prio to determine if () should be
printed around operand(s) or not.
* gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
pp_character instead of pp_string for single letter printing.
From-SVN: r143012
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r-- | gcc/tree-flow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index d4e0004..4657862 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -1,5 +1,5 @@ /* Data and Control Flow Analysis for Trees. - Copyright (C) 2001, 2003, 2004, 2005, 2006, 2007, 2008 + Copyright (C) 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Diego Novillo <dnovillo@redhat.com> @@ -752,6 +752,8 @@ extern bool cleanup_tree_cfg (void); /* In tree-pretty-print.c. */ extern void dump_generic_bb (FILE *, basic_block, int, int); +extern int op_code_prio (enum tree_code); +extern int op_prio (const_tree); extern const char *op_symbol_code (enum tree_code); /* In tree-dfa.c */ |