diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-18 03:35:42 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-18 03:35:42 +0000 |
commit | cf103c6cb719457981f5810820c6a28e7011c225 (patch) | |
tree | 72800408f5ae98cd4d154871cb245cd0b05da133 /gcc/cp/except.c | |
parent | 1af5f1601b539cb340068166d22760ea9525ec93 (diff) | |
download | gcc-cf103c6cb719457981f5810820c6a28e7011c225.tar.gz |
* cp-tree.h: Delete #defines for cp_error, cp_warning,
cp_pedwarn, and cp_compiler_error.
* call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
typeck2.c: Change calls to the above macros to use their
language-independent equivalents: error, warning, pedwarn, and
internal_error respectively.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48140 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r-- | gcc/cp/except.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 32f2458bff9..3f3cdcfd3be 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -242,7 +242,7 @@ decl_is_java_type (decl, err) && TYPE_FOR_JAVA (TREE_TYPE (decl))) { /* Can't throw a reference. */ - cp_error ("type `%T' is disallowed in Java `throw' or `catch'", + error ("type `%T' is disallowed in Java `throw' or `catch'", decl); } @@ -260,7 +260,7 @@ decl_is_java_type (decl, err) if (! DERIVED_FROM_P (jthrow_node, TREE_TYPE (decl))) { /* Thrown object must be a Throwable. */ - cp_error ("type `%T' is not derived from `java::lang::Throwable'", + error ("type `%T' is not derived from `java::lang::Throwable'", TREE_TYPE (decl)); } } @@ -555,7 +555,7 @@ build_throw (exp) return build_min (THROW_EXPR, void_type_node, exp); if (exp == null_node) - cp_warning ("throwing NULL, which has integral, not pointer type"); + warning ("throwing NULL, which has integral, not pointer type"); if (exp != NULL_TREE) { @@ -772,7 +772,7 @@ is_admissible_throw_operand (expr) conversion. */ else if (CLASS_TYPE_P (type) && CLASSTYPE_PURE_VIRTUALS (type)) { - cp_error ("expression '%E' of abstract class type '%T' cannot be used in throw-expression", expr, type); + error ("expression '%E' of abstract class type '%T' cannot be used in throw-expression", expr, type); return false; } @@ -860,10 +860,10 @@ check_handlers_1 (master, handlers) && can_convert_eh (type, TREE_TYPE (handler))) { lineno = STMT_LINENO (handler); - cp_warning ("exception of type `%T' will be caught", + warning ("exception of type `%T' will be caught", TREE_TYPE (handler)); lineno = STMT_LINENO (master); - cp_warning (" by earlier handler for `%T'", type); + warning (" by earlier handler for `%T'", type); break; } } @@ -883,7 +883,7 @@ check_handlers (handlers) else if (TREE_TYPE (handler) == NULL_TREE) { lineno = STMT_LINENO (handler); - cp_pedwarn + pedwarn ("`...' handler must be the last handler for its try block"); } else |