diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-02-02 19:39:52 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-02-02 19:39:52 -0500 |
commit | b2948281c3d8e4221b1fab6d11db272bf735276a (patch) | |
tree | 452d76de333503e2ab95c28e8eae84b38887d7f8 /gcc/objc/encoding.c | |
parent | 86eb7fef043f07a3221bc639dec53d4474a01c21 (diff) | |
download | gcc-b2948281c3d8e4221b1fab6d11db272bf735276a.tar.gz |
(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
Diffstat (limited to 'gcc/objc/encoding.c')
-rw-r--r-- | gcc/objc/encoding.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } } |