typeck2.c (friendly_abort): Delete definition.
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 23 Jan 2002 19:41:15 +0000 (19:41 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 23 Jan 2002 19:41:15 +0000 (19:41 +0000)
* typeck2.c (friendly_abort): Delete definition.
* cp-tree.h (friendly_abort): Don't prototype.
(my_friendly_assert): Use fancy_abort.

From-SVN: r49152

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/typeck2.c

index 3cc6eeafe57990164551f005cdffaa1fdec9621e..2b9bef58d883fb7196c0d74b15fd9fcbcf2a16df 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-23  Zack Weinberg  <zack@codesourcery.com>
+
+       * typeck2.c (friendly_abort): Delete definition.
+       * cp-tree.h (friendly_abort): Don't prototype.
+       (my_friendly_assert): Use fancy_abort.
+
 2002-01-23  Craig Rodrigues  <rodrigc@gcc.gnu.org>
 
        * cp-tree.h (my_friendly_abort): Remove.
@@ -17,9 +23,9 @@
 
 2002-01-23  Craig Rodrigues  <rodrigc@gcc.gnu.org>
 
-       * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c, 
-       init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c, 
-       semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c: 
+       * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
+       init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
+       semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
        Change my_fancy_abort() to abort().
 
 2002-01-23  Jason Merrill  <jason@redhat.com>
        (BINDING_TYPE): Whitespace.
        (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
        (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
-       (IDENTIFIER_NAMESPACE_VALUE): Likewise. 
+       (IDENTIFIER_NAMESPACE_VALUE): Likewise.
        (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
        (same_type_p): Uppercase macro parameters.
        (same_type_ignoring_top_level_qualifiers_p): Likewise.
        PR c++/5116, c++/764 reversion
        * call.c (build_new_op): Revert the instantiations. They are
        incorrect.
-       
+
 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR c++/5089
        * cvt.c (convert_to_reference): Likewise.
        * semantics.c (setup_vtbl_ptr): Likewise.
        * pt.c (lookup_template_class): Comment typo.
-       
+
 2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR c++/5125
index f71091fb6482379e7a6a0531be667f8e04cd27ce..f7cddacef7ee45c1f7b76dfbcf2c70dfd21e3180 100644 (file)
@@ -4349,12 +4349,9 @@ extern tree error_not_base_type                  PARAMS ((tree, tree));
 extern tree binfo_or_else                      PARAMS ((tree, tree));
 extern void readonly_error                     PARAMS ((tree, const char *, int));
 extern int abstract_virtuals_error             PARAMS ((tree, tree));
-extern void friendly_abort                     PARAMS ((int, const char *,
-                                                        int, const char *))
-  ATTRIBUTE_NORETURN;
 
 #define my_friendly_assert(EXP, N) (void) \
- (((EXP) == 0) ? (friendly_abort (N, __FILE__, __LINE__, __FUNCTION__), 0) : 0)
+ (((EXP) == 0) ? (fancy_abort (__FILE__, __LINE__, __FUNCTION__), 0) : 0)
 
 extern tree store_init_value                   PARAMS ((tree, tree));
 extern tree digest_init                                PARAMS ((tree, tree, tree *));
index 05b4aca9f1c6cc88194a3759c45947c3854096d9..1e93e62a621cd94210bb88a677c62e76696fae7c 100644 (file)
@@ -252,30 +252,6 @@ retry:
     }
 }
 
-/* This is a wrapper around fancy_abort, as used in the back end and
-   other front ends.  It will also report the magic number assigned to
-   this particular abort.  That is for backward compatibility with the
-   old C++ abort handler, which would just report the magic number.  */
-void
-friendly_abort (where, file, line, func)
-     int where;
-     const char *file;
-     int line;
-     const char *func;
-{
-  if (errorcount > 0 || sorrycount > 0)
-    /* Say nothing.  */;
-  else if (where > 0)
-    {
-      error ("internal error #%d", where);
-
-      /* Uncount this error, so internal_error will do the right thing.  */
-      --errorcount;
-    }
-
-  fancy_abort (file, line, func);
-}
-
 \f
 /* Perform appropriate conversions on the initial value of a variable,
    store it in the declaration DECL,