From: Richard Kenner Date: Mon, 3 Feb 1997 00:39:52 +0000 (-0500) Subject: (objc_sizeof_type, objc_alignof_type): Replace call to abort function with call to... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2948281c3d8e4221b1fab6d11db272bf735276a;p=gcc.git (objc_sizeof_type, objc_alignof_type): Replace call to abort function with call to objc_error function. (objc_sizeof_type, objc_alignof_type): Replace call to abort function with call to objc_error function. (objc_skip_typespec): Likewise. From-SVN: r13587 --- diff --git a/gcc/objc/encoding.c b/gcc/objc/encoding.c index 14e9aaf6b71..c90e914f501 100644 --- a/gcc/objc/encoding.c +++ b/gcc/objc/encoding.c @@ -1,5 +1,5 @@ /* Encoding of types for Objective C. - Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc. Contributed by Kresten Krab Thorup This file is part of GNU CC. @@ -153,7 +153,7 @@ objc_sizeof_type(const char* type) } default: - abort(); + objc_error(nil, OBJC_ERR_BAD_TYPE, "unknown type %s\n", type); } } @@ -251,7 +251,7 @@ objc_alignof_type(const char* type) } default: - abort(); + objc_error(nil, OBJC_ERR_BAD_TYPE, "unknown type %s\n", type); } } @@ -354,7 +354,7 @@ objc_skip_typespec (const char* type) if (*type == _C_ARY_E) return ++type; else - abort(); + objc_error(nil, OBJC_ERR_BAD_TYPE, "bad array type %s\n", type); case _C_STRUCT_B: /* skip name, and elements until closing '}' */ @@ -376,7 +376,7 @@ objc_skip_typespec (const char* type) return objc_skip_typespec (++type); default: - abort(); + objc_error(nil, OBJC_ERR_BAD_TYPE, "unknown type %s\n", type); } }