]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
authorRichard Guenther <rguenther@suse.de>
Thu, 17 Jun 2010 16:14:41 +0000 (16:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Jun 2010 16:14:41 +0000 (16:14 +0000)
2010-06-17  Richard Guenther  <rguenther@suse.de>

* tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
* tree-flow.h (array_ref_contains_indirect_ref): Likewise.

From-SVN: r160933

gcc/ChangeLog
gcc/tree-flow-inline.h
gcc/tree-flow.h

index ca6224ef2f0db472797e02cb26f44396009bb415..79e47f50d75f7480a582863122e2374efd10e701 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-17  Richard Guenther  <rguenther@suse.de>
+
+       * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
+       * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
+
 2010-06-17  Richard Guenther  <rguenther@suse.de>
 
        * tree-inline.c (declare_return_variable): Remove bogus code.
index b1e1251c7061cf6d6ef11b900ba692ffd9c3bcb5..7e935378c811c7594cce1624029572accabf42c4 100644 (file)
@@ -1113,20 +1113,6 @@ unmodifiable_var_p (const_tree var)
   return TREE_READONLY (var) && (TREE_STATIC (var) || DECL_EXTERNAL (var));
 }
 
-/* Return true if REF, an ARRAY_REF, has an INDIRECT_REF somewhere in it.  */
-
-static inline bool
-array_ref_contains_indirect_ref (const_tree ref)
-{
-  gcc_checking_assert (TREE_CODE (ref) == ARRAY_REF);
-
-  do {
-    ref = TREE_OPERAND (ref, 0);
-  } while (handled_component_p (ref));
-
-  return TREE_CODE (ref) == INDIRECT_REF;
-}
-
 /* Return true if REF, a handled component reference, has an ARRAY_REF
    somewhere in it.  */
 
index 1830ffa874e9294f1c743d1d54858d88b6cb8973..3dd9244cef3f79e7c83d0254726c67967d3d4541 100644 (file)
@@ -779,7 +779,6 @@ char *get_lsm_tmp_name (tree, unsigned);
 static inline void set_is_used (tree);
 static inline bool unmodifiable_var_p (const_tree);
 static inline bool ref_contains_array_ref (const_tree);
-static inline bool array_ref_contains_indirect_ref (const_tree);
 
 /* In tree-eh.c  */
 extern void make_eh_edges (gimple);