toplev.h (warning_with_file_and_line): Don't declare.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Fri, 9 May 2003 10:08:19 +0000 (10:08 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 9 May 2003 10:08:19 +0000 (10:08 +0000)
* 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

gcc/ChangeLog
gcc/diagnostic.c
gcc/toplev.h

index 4478a942c70a9b648d69896928d2d9781620a57a..3fd5e67a12d8b4b45afd6a31590bf48d29809b50 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 58450b1a3614230a5686888c9aaa005ca4873501..e7e39ba9e18ad7651eacba4f1b3950d14b991c9e 100644 (file)
@@ -1079,22 +1079,6 @@ diagnostic_report_current_function (context)
   (*lang_hooks.print_error_function) (context, input_filename);
 }
 
-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, ...))
 {
@@ -1182,22 +1166,6 @@ See %s for instructions.\n", bug_report_url);
   exit (FATAL_EXIT_CODE);
 }
 
-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, ...))
 {
index 7da7654a093637ebbbf2961aaf2b4b7901a73278..a55e73016bb0cce91eb50183dc1fe5ea02eb212f 100644 (file)
@@ -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 *,