diff options
author | baldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-13 09:21:12 +0000 |
---|---|---|
committer | baldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-13 09:21:12 +0000 |
commit | 493106f66ff610b15fb855a85ba53fea69d322a8 (patch) | |
tree | 2e7193e1f194472c59b64196654c08335fa5e07d /gcc | |
parent | b5fdc4165e8de441e2714b810ec65686136ad661 (diff) | |
download | gcc-493106f66ff610b15fb855a85ba53fea69d322a8.tar.gz |
Remove lang_eh_type_covers, which is dead, and the corresponding
Ada routine gnat_eh_type_covers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158258 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/misc.c | 17 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/trans.c | 6 | ||||
-rw-r--r-- | gcc/except.c | 3 | ||||
-rw-r--r-- | gcc/except.h | 3 |
6 files changed, 11 insertions, 28 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be1bed710c9..09b704aaf48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-13 Duncan Sands <baldrick@free.fr> + + * except.h (lang_eh_type_covers): Remove. + * except.c (lang_eh_type_covers): Likewise. + 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> Ulrich Weigand <Ulrich.Weigand@de.ibm.com> diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index b62b913c4d4..7c6a63c37a5 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2010-04-13 Duncan Sands <baldrick@free.fr> + + * gcc-interface/misc.c (gnat_eh_type_covers): Remove. + * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment. + 2010-04-13 Eric Botcazou <ebotcazou@adacore.com> * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id. diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index 8c647d35972..dbeabc0eca5 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -74,7 +74,6 @@ static void gnat_print_type (FILE *, tree, int); static const char *gnat_printable_name (tree, int); static const char *gnat_dwarf_name (tree, int); static tree gnat_return_tree (tree); -static int gnat_eh_type_covers (tree, tree); static void gnat_parse_file (int); static void internal_error_function (const char *, va_list *); static tree gnat_type_max_size (const_tree); @@ -434,8 +433,6 @@ gnat_init_gcc_eh (void) right exception regions. */ using_eh_for_cleanups (); - lang_eh_type_covers = gnat_eh_type_covers; - /* Turn on -fexceptions and -fnon-call-exceptions. The first one triggers the generation of the necessary exception runtime tables. The second one is useful for two reasons: 1/ we map some asynchronous signals like SEGV @@ -580,20 +577,6 @@ gnat_return_tree (tree t) return t; } -/* Return true if type A catches type B. Callback for flow analysis from - the exception handling part of the back-end. */ - -static int -gnat_eh_type_covers (tree a, tree b) -{ - /* a catches b if they represent the same exception id or if a - is an "others". - - ??? integer_zero_node for "others" is hardwired in too many places - currently. */ - return (a == b || a == integer_zero_node); -} - /* Get the alias set corresponding to a type or expression. */ static alias_set_type diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 2c86db977be..6da6e7904f6 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -3279,11 +3279,7 @@ Exception_Handler_to_gnu_zcx (Node_Id gnat_node) handler can catch, with special cases for others and all others cases. Each exception type is actually identified by a pointer to the exception - id, or to a dummy object for "others" and "all others". - - Care should be taken to ensure that the control flow impact of "others" - and "all others" is known to GCC. lang_eh_type_covers is doing the trick - currently. */ + id, or to a dummy object for "others" and "all others". */ for (gnat_temp = First (Exception_Choices (gnat_node)); gnat_temp; gnat_temp = Next (gnat_temp)) { diff --git a/gcc/except.c b/gcc/except.c index bdf98ef4c02..fccfb735d6a 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -153,9 +153,6 @@ along with GCC; see the file COPYING3. If not see to the given failure handler. */ tree (*lang_protect_cleanup_actions) (void); -/* Return true if type A catches type B. */ -int (*lang_eh_type_covers) (tree a, tree b); - static GTY(()) int call_site_base; static GTY ((param_is (union tree_node))) htab_t type_to_runtime_map; diff --git a/gcc/except.h b/gcc/except.h index 99f620be0d6..59214e0e764 100644 --- a/gcc/except.h +++ b/gcc/except.h @@ -294,9 +294,6 @@ extern eh_landing_pad get_eh_landing_pad_from_rtx (const_rtx); FUNCTION_DECL for `std::terminate'. */ extern tree (*lang_protect_cleanup_actions) (void); -/* Return true if type A catches type B. */ -extern int (*lang_eh_type_covers) (tree a, tree b); - /* Just because the user configured --with-sjlj-exceptions=no doesn't mean that we can use call frame exceptions. Detect that the target |