aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2002-01-23 19:41:15 +0000
committerZack Weinberg <zack@gcc.gnu.org>2002-01-23 19:41:15 +0000
commitc588e52b27d5051a1d93f9329a7160bae496f306 (patch)
treee1a11a9505cceb21840c29c94ee9e4bb28a47c13
parenta63bea75b1dafe4d08a037576686652ca30286e8 (diff)
downloadgcc-c588e52b27d5051a1d93f9329a7160bae496f306.zip
gcc-c588e52b27d5051a1d93f9329a7160bae496f306.tar.gz
gcc-c588e52b27d5051a1d93f9329a7160bae496f306.tar.bz2
typeck2.c (friendly_abort): Delete definition.
* typeck2.c (friendly_abort): Delete definition. * cp-tree.h (friendly_abort): Don't prototype. (my_friendly_assert): Use fancy_abort. From-SVN: r49152
-rw-r--r--gcc/cp/ChangeLog18
-rw-r--r--gcc/cp/cp-tree.h5
-rw-r--r--gcc/cp/typeck2.c24
3 files changed, 13 insertions, 34 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3cc6eea..2b9bef5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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>
@@ -171,7 +177,7 @@
(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.
@@ -380,7 +386,7 @@
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
@@ -462,7 +468,7 @@
* 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
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index f71091f..f7cddac 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -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 *));
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index 05b4aca..1e93e62 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -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);
-}
-
/* Perform appropriate conversions on the initial value of a variable,
store it in the declaration DECL,