From 7231cbf74d1daa446c24fa7f242321f8d4f7ee9c Mon Sep 17 00:00:00 2001 From: aldyh Date: Tue, 6 May 2008 22:16:50 +0000 Subject: [PATCH] * tree-flow.h: Remove prototype for computed_goto_p. * tree-cfg.c (computed_goto_p): Make static. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135009 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-cfg.c | 3 ++- gcc/tree-flow.h | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d177207..83312ca 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 5dc9d04..add7362 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 e36493d..0b803cb 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); -- 2.7.4