From 46f018e13847446f543aa9b396de15c9e322f8b3 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Thu, 28 Jun 2001 12:26:38 +0000 Subject: diagnostic.c (default_print_error_function): Tweak. * diagnostic.c (default_print_error_function): Tweak. (report_error_function): Likewise. * toplev.h (default_print_error_function): Move to... * diagnostic.h: ...here. Add a `diagnostic_context *' parameter. * tree.h (print_error_function): Move to... * diagnostic.h: ...here. Add a `diagnostic_context *' parameter. ch/ * lang.c: #include diagnostic.h (chill_print_error_function): Add a dummy `diagnostic_context *'. * Makefile.in (lang.o): Depend on diagnostic.h cp/ * error.c (lang_print_error_function): Add a `diagnostic_context *' parameter. Tweak. f/ * Make-lang.in (f/com.o): Depend on diagnostic.h * com.c: #include diagnostic.h (lang_print_error_function): Take a 'diagnostic_context *'. java/ * lang.c: #include diagnostic.h (lang_print_error): Add a `diagnostic_context *' parameter. (java_dummy_print): Likewise. * Make-lang.in (JAVA_LEX_C): Depend on diagnostic.h From-SVN: r43638 --- gcc/f/com.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/f/com.c') diff --git a/gcc/f/com.c b/gcc/f/com.c index 871c4fa..c5a5019 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -89,6 +89,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "output.h" /* Must follow tree.h so TREE_CODE is defined! */ #include "convert.h" #include "ggc.h" +#include "diagnostic.h" #endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */ #define FFECOM_GCC_INCLUDE 1 /* Enable -I. */ @@ -13989,7 +13990,7 @@ lang_printable_name (tree decl, int v) #if BUILT_FOR_270 static void -lang_print_error_function (const char *file) +lang_print_error_function (diagnostic_context *context, const char *file) { static ffeglobal last_g = NULL; static ffesymbol last_s = NULL; -- cgit v1.1