diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-05-09 10:08:19 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-05-09 10:08:19 +0000 |
commit | 3c4b64384bd9a35ab3383dabc5d41a892089510f (patch) | |
tree | 9a488dafed721b37d0e287e45090ec46d2853f94 /gcc | |
parent | 49468c8be16b9d3c18257ad86be42371a12dd3ca (diff) | |
download | gcc-3c4b64384bd9a35ab3383dabc5d41a892089510f.zip gcc-3c4b64384bd9a35ab3383dabc5d41a892089510f.tar.gz gcc-3c4b64384bd9a35ab3383dabc5d41a892089510f.tar.bz2 |
toplev.h (warning_with_file_and_line): Don't declare.
* toplev.h (warning_with_file_and_line): Don't declare.
(error_with_file_and_line): Likewise.
* diagnostic.c (error_with_file_and_line): Remove.
(warning_with_file_and_line): Likewise.
From-SVN: r66628
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/diagnostic.c | 32 | ||||
-rw-r--r-- | gcc/toplev.h | 4 |
3 files changed, 7 insertions, 36 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4478a94..3fd5e67 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net> + * toplev.h (warning_with_file_and_line): Don't declare. + (error_with_file_and_line): Likewise. + * diagnostic.c (error_with_file_and_line): Remove. + (warning_with_file_and_line): Likewise. + +2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net> + * c-parse.in (if_stmt_locus): New object. (if_prefix rule): Use it. Don't use warning_with_file_and_line. (select_or_iter_stmt rule): Likewise. diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 58450b1..e7e39ba 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -1080,22 +1080,6 @@ diagnostic_report_current_function (context) } void -error_with_file_and_line VPARAMS ((const char *file, int line, - const char *msgid, ...)) -{ - diagnostic_info diagnostic; - - VA_OPEN (ap, msgid); - VA_FIXEDARG (ap, const char *, file); - VA_FIXEDARG (ap, int, line); - VA_FIXEDARG (ap, const char *, msgid); - - diagnostic_set_info (&diagnostic, msgid, &ap, file, line, DK_ERROR); - report_diagnostic (&diagnostic); - VA_CLOSE (ap); -} - -void error_with_decl VPARAMS ((tree decl, const char *msgid, ...)) { diagnostic_info diagnostic; @@ -1183,22 +1167,6 @@ See %s for instructions.\n", bug_report_url); } void -warning_with_file_and_line VPARAMS ((const char *file, int line, - const char *msgid, ...)) -{ - diagnostic_info diagnostic; - - VA_OPEN (ap, msgid); - VA_FIXEDARG (ap, const char *, file); - VA_FIXEDARG (ap, int, line); - VA_FIXEDARG (ap, const char *, msgid); - - diagnostic_set_info (&diagnostic, msgid, &ap, file, line, DK_WARNING); - report_diagnostic (&diagnostic); - VA_CLOSE (ap); -} - -void warning_with_decl VPARAMS ((tree decl, const char *msgid, ...)) { diagnostic_info diagnostic; diff --git a/gcc/toplev.h b/gcc/toplev.h index 7da7654..a55e730 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -59,10 +59,6 @@ extern void error PARAMS ((const char *, ...)); extern void fatal_error PARAMS ((const char *, ...)) ATTRIBUTE_NORETURN; extern void pedwarn PARAMS ((const char *, ...)); -extern void warning_with_file_and_line PARAMS ((const char *, int, - const char *, ...)); -extern void error_with_file_and_line PARAMS ((const char *, int, - const char *, ...)); extern void sorry PARAMS ((const char *, ...)); extern void rest_of_decl_compilation PARAMS ((union tree_node *, |