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/class.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/class.c')
-rw-r--r-- | gcc/java/class.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index c09ed5c..e3eed98 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1014,7 +1014,7 @@ build_class_ref (tree type) else if (type == void_type_node) prim_class_name = "java.lang.Void"; else - abort (); + gcc_unreachable (); prim_class = lookup_class (get_identifier (prim_class_name)); /* We wrap the class in a NOP_EXPR, because it is a @@ -1207,7 +1207,7 @@ get_access_flags_from_decl (tree decl) access_flags |= ACC_INVISIBLE; return access_flags; } - abort (); + gcc_unreachable (); } static GTY (()) int alias_labelno = 0; @@ -2313,8 +2313,7 @@ get_interface_method_index (tree method, tree interface) { if (meth == method) return i; - if (meth == NULL_TREE) - abort (); + gcc_assert (meth != NULL_TREE); } } |