diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-28 12:26:38 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-28 12:26:38 +0000 |
commit | b506dc01ea131f8a9790cc7734fc45c718e9d688 (patch) | |
tree | 729c52b32f832217f832454115fb06e918991ec2 /gcc/ch | |
parent | 1ec36ac90e362c372d7ab3d5ebff29a8d4d99c00 (diff) | |
download | gcc-b506dc01ea131f8a9790cc7734fc45c718e9d688.tar.gz |
* 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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ch')
-rw-r--r-- | gcc/ch/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ch/Makefile.in | 3 | ||||
-rw-r--r-- | gcc/ch/lang.c | 7 |
3 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index be600bd3da5..88fbd141297 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,9 @@ +2001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com> + + * lang.c: #include diagnostic.h + (chill_print_error_function): Add a dummy `diagnostic_context *'. + * Makefile.in (lang.o): Depend on diagnostic.h + 2001-06-10 Gabriel Dos Reis <gdr@codesourcery.com> * decl.c: #include diagnostic.h diff --git a/gcc/ch/Makefile.in b/gcc/ch/Makefile.in index deb26f3a9bd..cfaf634141b 100644 --- a/gcc/ch/Makefile.in +++ b/gcc/ch/Makefile.in @@ -286,7 +286,8 @@ grant.o: grant.c $(CONFIG_H) $(CHILL_TREE_H) $(RTL_H) $(srcdir)/../flags.h \ inout.o : inout.c $(CONFIG_H) $(CHILL_TREE_H) $(srcdir)/../flags.h \ $(srcdir)/../input.h $(srcdir)/../system.h $(srcdir)/../toplev.h lang.o : lang.c $(CONFIG_H) $(CHILL_TREE_H) $(srcdir)/../input.h lex.h \ - $(srcdir)/../system.h $(srcdir)/../toplev.h $(EXPR_H) $(RTL_H) + $(srcdir)/../system.h $(srcdir)/../toplev.h $(EXPR_H) $(RTL_H) \ + $(srcdir)/../diagnostic.h lex.o : lex.c $(CONFIG_H) $(CHILL_TREE_H) $(RTL_H) $(srcdir)/../flags.h \ $(srcdir)/../input.h $(srcdir)/parse.h $(srcdir)/../system.h \ $(srcdir)/../toplev.h lex.h $(srcdir)/../dwarfout.h hash.h diff --git a/gcc/ch/lang.c b/gcc/ch/lang.c index 0c493b70bfe..b698b29aa1b 100644 --- a/gcc/ch/lang.c +++ b/gcc/ch/lang.c @@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "rtl.h" #include "expr.h" +#include "diagnostic.h" /* Type node for boolean types. */ @@ -54,7 +55,8 @@ const char* chill_real_input_filename; extern FILE* finput; static int deep_const_expr PARAMS ((tree)); -static void chill_print_error_function PARAMS ((const char *)); +static void chill_print_error_function PARAMS ((diagnostic_context *, + const char *)); /* Return 1 if the expression tree given has all constant nodes as its leaves,otherwise. */ @@ -229,7 +231,8 @@ lang_decode_option (argc, argv) } static void -chill_print_error_function (file) +chill_print_error_function (context, file) + diagnostic_context *buffer __attribute__((__unused__)); const char *file; { static tree last_error_function = NULL_TREE; |