]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
except.c (eh_region_outer_p): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Thu, 16 Apr 2009 18:42:29 +0000 (18:42 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 16 Apr 2009 18:42:29 +0000 (18:42 +0000)
* except.c (eh_region_outer_p): Remove.
* except.h: Remove the prototype for eh_region_outer_p.

From-SVN: r146210

gcc/ChangeLog
gcc/except.c
gcc/except.h

index 23e981e6af5fb9e946791c4b0e9359cfd279caf4..1cf6ab3867c1396eeedbe2809f2e9d4edfb00f0d 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
+
+       * except.c (eh_region_outer_p): Remove.
+       * except.h: Remove the prototype for eh_region_outer_p.
+
 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
 
        * function.c (current_function_assembler_name): Remove.
index 37bc5bbf13c4989d2a6c7435c5a9578b2d2519d9..ac3fd6f274245e14ad8df936fffce6b16a7cef45 100644 (file)
@@ -1224,32 +1224,6 @@ duplicate_eh_regions (struct function *ifun, duplicate_eh_regions_map map,
   return eh_offset;
 }
 
-/* Return true if REGION_A is outer to REGION_B in IFUN.  */
-
-bool
-eh_region_outer_p (struct function *ifun, int region_a, int region_b)
-{
-  struct eh_region *rp_a, *rp_b;
-
-  gcc_assert (ifun->eh->last_region_number > 0);
-  gcc_assert (ifun->eh->region_tree);
-
-  rp_a = VEC_index (eh_region, ifun->eh->region_array, region_a);
-  rp_b = VEC_index (eh_region, ifun->eh->region_array, region_b);
-  gcc_assert (rp_a != NULL);
-  gcc_assert (rp_b != NULL);
-
-  do
-    {
-      if (rp_a == rp_b)
-       return true;
-      rp_b = rp_b->outer;
-    }
-  while (rp_b);
-
-  return false;
-}
-
 /* Return region number of region that is outer to both if REGION_A and
    REGION_B in IFUN.  */
 
index 24611a559c30e9f9b95f4be20415469f74e4cee9..21145fd4f752ad99463a066ecbd8232804828fec 100644 (file)
@@ -108,7 +108,6 @@ extern void collect_eh_region_array (void);
 extern void expand_resx_expr (tree);
 extern void verify_eh_tree (struct function *);
 extern void dump_eh_tree (FILE *, struct function *);
-extern bool eh_region_outer_p (struct function *, int, int);
 extern int eh_region_outermost (struct function *, int, int);
 
 /* If non-NULL, this is a function that returns an expression to be