(objc_sizeof_type, objc_alignof_type): Replace call to abort function with call to...
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Feb 1997 00:39:52 +0000 (19:39 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Feb 1997 00:39:52 +0000 (19:39 -0500)
(objc_sizeof_type, objc_alignof_type): Replace call to abort function
with call to objc_error function.
(objc_skip_typespec): Likewise.

From-SVN: r13587

gcc/objc/encoding.c

index 14e9aaf6b71fefb5bc60f2df41c6ad9fa6975829..c90e914f5018ce2e60631dc7a29a35aefad33062 100644 (file)
@@ -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);
   }
 }