diff options
author | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-06-28 12:26:38 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-06-28 12:26:38 +0000 |
commit | 46f018e13847446f543aa9b396de15c9e322f8b3 (patch) | |
tree | 729c52b32f832217f832454115fb06e918991ec2 /gcc/java/lang.c | |
parent | eeb35b4552717ded7a8e006854be6766bb6237c4 (diff) | |
download | gcc-46f018e13847446f543aa9b396de15c9e322f8b3.zip gcc-46f018e13847446f543aa9b396de15c9e322f8b3.tar.gz gcc-46f018e13847446f543aa9b396de15c9e322f8b3.tar.bz2 |
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
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 0c0b4d6..e3567f5 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -37,6 +37,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include "flags.h" #include "xref.h" #include "ggc.h" +#include "diagnostic.h" struct string_option { @@ -50,8 +51,8 @@ static void java_init_options PARAMS ((void)); static int java_decode_option PARAMS ((int, char **)); static void put_decl_string PARAMS ((const char *, int)); static void put_decl_node PARAMS ((tree)); -static void java_dummy_print PARAMS ((const char *)); -static void lang_print_error PARAMS ((const char *)); +static void java_dummy_print PARAMS ((diagnostic_context *, const char *)); +static void lang_print_error PARAMS ((diagnostic_context *, const char *)); static int process_option_with_no PARAMS ((char *, struct string_option *, int)); @@ -592,7 +593,8 @@ lang_printable_name_wls (decl, v) is the value of the hook print_error_function, called from toplev.c. */ static void -lang_print_error (file) +lang_print_error (context, file) + diagnostic_context *context __attribute__((__unused__)); const char *file; { static tree last_error_function_context = NULL_TREE; @@ -673,7 +675,8 @@ java_init () function prototypes. */ static void -java_dummy_print (s) +java_dummy_print (c, s) + diagnostic_context *c __attribute__ ((__unused__)); const char *s __attribute__ ((__unused__)); { } |