From e7ec31c68b6ee397a45f772acf55485d5d21f30b Mon Sep 17 00:00:00 2001 From: aldyh Date: Fri, 10 Aug 2007 17:29:23 +0000 Subject: [PATCH] * tree-flow-inline.h (is_exec_stmt): Remove. (is_label_stmt): Remove. * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and is_label_stmt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127343 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/tree-flow-inline.h | 25 ------------------------- gcc/tree-flow.h | 3 --- 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3b16cd198b..c120ba645f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-08-10 Aldy Hernandez + + * tree-flow-inline.h (is_exec_stmt): Remove. + (is_label_stmt): Remove. + * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and + is_label_stmt. + 2007-08-10 Andreas Krebbel * lower-subreg.c (resolve_shift_zext): Don't adjust diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index ae55c3f4f6d..1e52d1f4fc5 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -681,31 +681,6 @@ set_is_used (tree var) ann->used = 1; } -/* Return true if T is an executable statement. */ -static inline bool -is_exec_stmt (const_tree t) -{ - return (t && !IS_EMPTY_STMT (t) && t != error_mark_node); -} - - -/* Return true if this stmt can be the target of a control transfer stmt such - as a goto. */ -static inline bool -is_label_stmt (const_tree t) -{ - if (t) - switch (TREE_CODE (t)) - { - case LABEL_DECL: - case LABEL_EXPR: - case CASE_LABEL_EXPR: - return true; - default: - return false; - } - return false; -} /* Return true if T (assumed to be a DECL) is a global variable. */ diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 55bec44c27b..204a6688318 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -535,9 +535,6 @@ static inline void update_stmt (tree); static inline bool stmt_modified_p (tree); static inline bitmap may_aliases (const_tree); static inline int get_lineno (tree); -static inline const char *get_filename (tree); -static inline bool is_exec_stmt (const_tree); -static inline bool is_label_stmt (const_tree); static inline bitmap addresses_taken (tree); /*--------------------------------------------------------------------------- -- 2.11.0