diff options
author | Mark Mitchell <mark@markmitchell.com> | 1998-09-06 19:45:16 +0000 |
---|---|---|
committer | Mark Mitchell <mark@markmitchell.com> | 1998-09-06 19:45:16 +0000 |
commit | d04132c38eda8c2e34fbc1f3ef45a320205e74c2 (patch) | |
tree | 435801f8dbbe8801f40acefd041c50a5a7d375b5 /gcc/cp/repo.c | |
parent | 144004db588cfdc067096dbe04674b55e897a495 (diff) |
* 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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@22304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r-- | gcc/cp/repo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index 742250dc632..6927fcf6969 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -254,7 +254,7 @@ get_base_filename (filename) if (p && ! compiling) { - warning ("-frepo must be used with -c"); + cp_warning (ec_frepo_must_be_used_with_c); flag_use_repository = 0; return NULL; } @@ -344,7 +344,7 @@ init_repo (filename) } break; default: - error ("mysterious repository information in %s", repo_name); + cp_error (ec_mysterious_repository_information_in_s, repo_name); } obstack_free (&temporary_obstack, buf); } @@ -359,7 +359,7 @@ reopen_repo_file_for_write () if (repo_file == 0) { - error ("can't create repository information file `%s'", repo_name); + cp_error (ec_cant_create_repository_information_file_s, repo_name); flag_use_repository = 0; } } |