aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/xref.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@markmitchell.com>1998-09-06 19:45:16 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-09-06 19:45:16 +0000
commitd41fbd2cb8c2ead8f101826149bd73f2f60b876a (patch)
tree435801f8dbbe8801f40acefd041c50a5a7d375b5 /gcc/cp/xref.c
parente04a16fbeee9504247e0d069171a627096225028 (diff)
downloadgcc-d41fbd2cb8c2ead8f101826149bd73f2f60b876a.zip
gcc-d41fbd2cb8c2ead8f101826149bd73f2f60b876a.tar.gz
gcc-d41fbd2cb8c2ead8f101826149bd73f2f60b876a.tar.bz2
cp-error.def: New file.
* cp-error.def: New file. * Make-lang.in (cc1plus): Add dependency on it. * Makefile.in (CXX_TREE_H): Likewise. * cp-tree.h (error_code): New type. Include cp-error.def to get error codes. Make it possible to include cp-tree.h in errfn.c. (enable_warning): New function. (flag_diag_codes): New variable. * errfn.c: Include cp-tree.h. (cp_err_msg): New type. Include cp-error.def to define it. (err_msgs): New variable. (is_warning_enabled): New function. (cp_thing): Take an error_code, not a format string. Output the diagnostic code if flag_diag_codes. (cp_error, cp_compiler_error, cp_sprintf, cp_error_at): Take error_codes, not format strings. (cp_warning, cp_pedwarn, cp_warning_at, cp_pedwarn_at): Likewise. Call is_warning_enabled. * decl2.c (flag_diag_codes): New variable. (lang_decode_option): Handle -fdiag-codes and -Wnumber. * lang-options.h: Add -fdiag-codes, -fno-diag-codes, and -W-number-, and -Wno-number. * class.c: Update all calls to error-functions. * cvt.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * friend.c: Likewise. * lex.c: Likewise. * parse.y: Likewise. * pt.c: Likewise. * repo.c: Likewise. * rtti.c: Likewise. * search.c: Likewise. * semantics.c: Likewise. * sig.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. * xref.c: Likewise. From-SVN: r22304
Diffstat (limited to 'gcc/cp/xref.c')
-rw-r--r--gcc/cp/xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c
index 14915d6..dd4e5ae 100644
--- a/gcc/cp/xref.c
+++ b/gcc/cp/xref.c
@@ -832,7 +832,7 @@ open_xref_file(file)
if (xref_file == NULL)
{
- error("Can't create cross-reference file `%s'", xref_name);
+ cp_error (ec_ant_create_crossreference_file_s, xref_name);
doing_xref = 0;
}
}