summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2002-06-02 19:06:30 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2002-06-02 19:06:30 +0000
commit27e511e0d56e4968abd1549b50b62071f22a224f (patch)
treebe65308bcd5fc6c907af860b48e4f96e8e84c1aa /gcc/diagnostic.h
parent818b6b7fb170190ce8c9253895f200234b4a8880 (diff)
downloadgcc-27e511e0d56e4968abd1549b50b62071f22a224f.tar.gz
diagnostic.h (struct diagnostic_context): Add new member internal_error.
* diagnostic.h (struct diagnostic_context): Add new member internal_error. (internal_error_function): Remove declaration. * diagnostic.c (internal_error_function): Remove definition.. (internal_error): Adjust use. ada/ * misc.c (gnat_init): Adjust setting of internal_error_function. From-SVN: r54179
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 925134af48f..3762136d0b6 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -203,6 +203,9 @@ struct diagnostic_context
/* This function is called after the diagnostic message is printed. */
void (*end_diagnostic) PARAMS ((output_buffer *, diagnostic_context *));
+ /* Client hook to report an internal error. */
+ void (*internal_error) PARAMS ((const char *, va_list *));
+
/* Hook for front-end extensions. */
void *x_data;
};
@@ -275,9 +278,6 @@ extern diagnostic_context *global_dc;
extern void set_diagnostic_context PARAMS ((diagnostic_context *,
const char *, va_list *,
const char *, int, int));
-extern void set_internal_error_function PARAMS ((void (*)
- PARAMS ((const char *,
- va_list *))));
extern void report_diagnostic PARAMS ((diagnostic_context *));
extern void diagnostic_initialize PARAMS ((diagnostic_context *));
extern void init_output_buffer PARAMS ((output_buffer *,