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/mangle.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/mangle.c')
-rw-r--r-- | gcc/java/mangle.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/java/mangle.c b/gcc/java/mangle.c index 372c946..a1b7518 100644 --- a/gcc/java/mangle.c +++ b/gcc/java/mangle.c @@ -280,7 +280,7 @@ mangle_type (tree type) break; bad_type: default: - abort (); + gcc_unreachable (); } } @@ -397,8 +397,7 @@ mangle_record_type (tree type, int for_pointer) #define ADD_N() \ do { obstack_1grow (mangle_obstack, 'N'); nadded_p = 1; } while (0) - if (TREE_CODE (type) != RECORD_TYPE) - abort (); + gcc_assert (TREE_CODE (type) == RECORD_TYPE); if (!TYPE_PACKAGE_LIST (type)) set_type_package_list (type); @@ -450,8 +449,7 @@ mangle_pointer_type (tree type) /* This didn't work. We start by mangling the pointed-to type */ pointer_type = type; type = TREE_TYPE (type); - if (TREE_CODE (type) != RECORD_TYPE) - abort (); + gcc_assert (TREE_CODE (type) == RECORD_TYPE); obstack_1grow (mangle_obstack, 'P'); if (mangle_record_type (type, /* for_pointer = */ 1)) @@ -473,8 +471,7 @@ mangle_array_type (tree p_type) int match; type = TREE_TYPE (p_type); - if (!type) - abort (); + gcc_assert (type); elt_type = TYPE_ARRAY_ELEMENT (type); |