From: Aldy Hernandez Date: Tue, 6 May 2008 22:16:50 +0000 (+0000) Subject: tree-flow.h: Remove prototype for computed_goto_p. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6c6b7aa020899f10410c7d733214a413df1a2d6;p=gcc.git tree-flow.h: Remove prototype for computed_goto_p. * tree-flow.h: Remove prototype for computed_goto_p. * tree-cfg.c (computed_goto_p): Make static. From-SVN: r135009 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d1772078bbd..83312ca148a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-06 Aldy Hernandez + + * tree-flow.h: Remove prototype for computed_goto_p. + * tree-cfg.c (computed_goto_p): Make static. + 2008-05-06 H.J. Lu PR target/35657 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 5dc9d045a90..add7362d7d3 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -102,6 +102,7 @@ static int tree_verify_flow_info (void); static void tree_make_forwarder_block (edge); static void tree_cfg2vcg (FILE *); static inline void change_bb_for_stmt (tree t, basic_block bb); +static bool computed_goto_p (const_tree); /* Flowgraph optimization and cleanup. */ static void tree_merge_blocks (basic_block, basic_block); @@ -2514,7 +2515,7 @@ is_ctrl_altering_stmt (const_tree t) /* Return true if T is a computed goto. */ -bool +static bool computed_goto_p (const_tree t) { return (TREE_CODE (t) == GOTO_EXPR diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index e36493dae42..0b803cb7adb 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -731,7 +731,6 @@ extern void delete_tree_cfg_annotations (void); extern bool stmt_ends_bb_p (const_tree); extern bool is_ctrl_stmt (const_tree); extern bool is_ctrl_altering_stmt (const_tree); -extern bool computed_goto_p (const_tree); extern bool simple_goto_p (const_tree); extern bool tree_can_make_abnormal_goto (const_tree); extern basic_block single_noncomplex_succ (basic_block bb);