]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostic.c (print_error_function): Remove.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 31 Mar 2002 22:32:05 +0000 (22:32 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 31 Mar 2002 22:32:05 +0000 (22:32 +0000)
commit7cb32822701d0ce49aae361f576c9c9dc31bb2f3
tree095a8c71baa85e6ccb7e9e788b0e115460d44314
parent1db02437806fb3155563914b496e26d7a8edfa65
diagnostic.c (print_error_function): Remove.

* diagnostic.c (print_error_function): Remove.
(default_print_error_function): Rename.
(report_error_function): Update.
* diagnostic.h (print_error_function): Remove.
(default_print_error_function): Remove.
* langhooks-def.h (struct diagnostic_context): Predeclare.
(lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct diagnostic context): Predeclare.
(struct lang_hooks): New hook.
cp:
* Make-lang.in (error.o): Update.
* cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
* cp-tree.h (struct diagnostic_context): Predeclare.
(cxx_print_error_function): New.
* error.c: Include langhooks-def.h.
(lang_print_error_function): Rename.  Update.
(init_error): Don't set hook.
f:
* com.c (lang_print_error_function): Rename.
(LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
(ffe_init): Don't set hook.
java:
* lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
(java_dummy_print): Remove.
(lang_print_error): Rename.  Exit early if inhibiting output.
(inhibit_error_printing_function): New.
(java_init): Don't set hook.
(lang_init_source): Use new boolean.

From-SVN: r51672
14 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/cp/cp-lang.c
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/diagnostic.c
gcc/diagnostic.h
gcc/f/ChangeLog
gcc/f/com.c
gcc/java/ChangeLog
gcc/java/lang.c
gcc/langhooks-def.h
gcc/langhooks.h