public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] committed: remove is_exec_stmt and is_label_stmt
@ 2007-08-10 17:29 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2007-08-10 17:29 UTC (permalink / raw)
  To: gcc-patches; +Cc: dnovillo

The functions is_exec_stmt and is_label_stmt are also unused.  I'm
removing them.  I also forgot to remove the get_filename prototype last
time around (fixed below).

Committing to mainline.

	* 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.

Index: tree-flow-inline.h
===================================================================
--- tree-flow-inline.h	(revision 127342)
+++ tree-flow-inline.h	(working copy)
@@ -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.  */
 
Index: tree-flow.h
===================================================================
--- tree-flow.h	(revision 127342)
+++ tree-flow.h	(working copy)
@@ -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);
 
 /*---------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-10 17:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 17:29 [patch] committed: remove is_exec_stmt and is_label_stmt Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).