aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-07-28 14:51:40 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2007-07-28 14:51:40 +0000
commit6ea2b70d9ccabc6f1d86e79f3f4d3a553a155080 (patch)
tree751c4ed52a0b21297b2b1b2581722756a0e9540e /gcc/print-tree.c
parentd4d8c232ede446f4b50d8c9c15a84941aabc6b18 (diff)
downloadgcc-6ea2b70d9ccabc6f1d86e79f3f4d3a553a155080.zip
gcc-6ea2b70d9ccabc6f1d86e79f3f4d3a553a155080.tar.gz
gcc-6ea2b70d9ccabc6f1d86e79f3f4d3a553a155080.tar.bz2
calls.c (special_function_p, [...]): Constify.
* calls.c (special_function_p, setjmp_call_p, alloca_call_p, flags_from_decl_or_type): Constify. * gcc.c (do_spec_1): Likewise. * print-tree.c (dump_addr, print_node_brief): Likewise. * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p, simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p, tree_purge_all_dead_eh_edges): Likewise. * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p, tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges): Likewise. * tree.c (expr_location, expr_has_location, expr_locus, expr_filename, expr_lineno, get_inner_array_type, fields_compatible_p): Likewise. * tree.h (get_inner_array_type, fields_compatible_p, expr_location, expr_has_location, expr_locus, expr_filename, expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type, setjmp_call_p, alloca_call_p): Likewise. From-SVN: r127017
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 7cd7701..297f62f 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -58,7 +58,7 @@ debug_tree (tree node)
/* Print PREFIX and ADDR to FILE. */
void
-dump_addr (FILE *file, const char *prefix, void *addr)
+dump_addr (FILE *file, const char *prefix, const void *addr)
{
if (flag_dump_noaddr || flag_dump_unnumbered)
fprintf (file, "%s#", prefix);
@@ -69,7 +69,7 @@ dump_addr (FILE *file, const char *prefix, void *addr)
/* Print a node in brief fashion, with just the code, address and name. */
void
-print_node_brief (FILE *file, const char *prefix, tree node, int indent)
+print_node_brief (FILE *file, const char *prefix, const_tree node, int indent)
{
enum tree_code_class class;