(__objc_forward): Replace call to abort function with call to
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Feb 1997 00:42:25 +0000 (19:42 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Feb 1997 00:42:25 +0000 (19:42 -0500)
objc_error function.

From-SVN: r13592

gcc/objc/sendmsg.c

index 21b0880b99151e8329fb354d29b24ff45f5c98f5..4d49b35d056fd94a36ce84c0a8492bf000721d90 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU Objective C Runtime message lookup 
-   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.
@@ -566,8 +566,7 @@ __objc_forward (id object, SEL sel, arglist_t args)
 
     /* The object doesn't respond to doesNotRecognize: or error:;  Therefore,
        a default action is taken. */
-    fprintf (stderr, "fatal: %s\n", msg);
-    abort ();
+    objc_error (object, OBJC_ERR_UNIMPLEMENTED, "%s\n", msg);
   }
 }