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/rtti.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/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index f99f1cc6150..af401299adb 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -277,7 +277,7 @@ get_tinfo_decl (type) if (COMPLETE_TYPE_P (type) && TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST) { - cp_error ("cannot create type information for type `%T' because its size is variable", + error ("cannot create type information for type `%T' because its size is variable", type); return error_mark_node; } @@ -522,7 +522,7 @@ build_dynamic_cast_1 (type, expr) && TREE_CODE (TREE_TYPE (old_expr)) == RECORD_TYPE) { tree expr = throw_bad_cast (); - cp_warning ("dynamic_cast of `%#D' to `%#T' can never succeed", + warning ("dynamic_cast of `%#D' to `%#T' can never succeed", old_expr, type); /* Bash it to the expected type. */ TREE_TYPE (expr) = type; @@ -536,7 +536,7 @@ build_dynamic_cast_1 (type, expr) if (TREE_CODE (op) == VAR_DECL && TREE_CODE (TREE_TYPE (op)) == RECORD_TYPE) { - cp_warning ("dynamic_cast of `%#D' to `%#T' can never succeed", + warning ("dynamic_cast of `%#D' to `%#T' can never succeed", op, type); retval = build_int_2 (0, 0); TREE_TYPE (retval) = type; @@ -611,7 +611,7 @@ build_dynamic_cast_1 (type, expr) errstr = "source type is not polymorphic"; fail: - cp_error ("cannot dynamic_cast `%E' (of type `%#T') to type `%#T' (%s)", + error ("cannot dynamic_cast `%E' (of type `%#T') to type `%#T' (%s)", expr, exprtype, type, errstr); return error_mark_node; } |