diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-02-03 11:56:58 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2006-02-03 22:56:58 +1100 |
commit | ab184b2a8fed51da5abc8af01a3258b9090f4aaf (patch) | |
tree | 40ce1ffcebc96077b6c41500950d3961b6d3e03e /gcc/java/lang.c | |
parent | 4a6c754b7a63dc27eda74622783b059029f85eb3 (diff) | |
download | gcc-ab184b2a8fed51da5abc8af01a3258b9090f4aaf.zip gcc-ab184b2a8fed51da5abc8af01a3258b9090f4aaf.tar.gz gcc-ab184b2a8fed51da5abc8af01a3258b9090f4aaf.tar.bz2 |
java-gimplify.c: Use gcc_assert and gcc_unreachable throughout.
* java-gimplify.c: Use gcc_assert and gcc_unreachable throughout.
* typeck.c: Likewise.
* verify-impl.c: Likewise.
* class.c: Likewise.
* decl.c: Likewise.
* jcf-parse.c: Likewise.
* constants.c: Likewise.
* check-init.c: Likewise.
* jcf-write.c: Likewise.
* verify-glue.c: Likewise.
* mangle.c: Likewise.
* expr.c: Likewise.
* lang.c: Likewise.
* boehm.c: Likewise.
From-SVN: r110541
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 3dc13c5..5f9a370 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -335,7 +335,7 @@ java_handle_option (size_t scode, const char *arg, int value) default: if (cl_options[code].flags & CL_Java) break; - abort(); + gcc_unreachable (); } return 1; @@ -781,8 +781,7 @@ merge_init_test_initialization (void **entry, void *x) /* See if we have remapped this declaration. If we haven't there's a bug in the inliner. */ n = splay_tree_lookup (decl_map, (splay_tree_key) ite->value); - if (! n) - abort (); + gcc_assert (n); /* Create a new entry for the class and its remapped boolean variable. If we already have a mapping for this class we've |