From 6afbc8850684f9e7168a70ca1148bf9064ba582a Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 28 May 2010 23:48:36 +0100 Subject: gcc.c: Include diagnostic.h. * gcc.c: Include diagnostic.h. (error_count): Remove. All users changed to use errorcount. (programname): Remove. All users changed to use progname. (fancy_abort, internal_error, fatal_error, error, warning, inform, fnotice): Remove. (execute): Don't include "Internal error" and bug reporting information in argument of internal_error call. (process_command): Don't increment error_count after calling perror_with_name. (input_filename): Rename to gcc_input_filename. All users changed. (main): Call diagnostic_initialize. Register delete_temp_files with atexit. Use seen_error to test for errors. * gcc.h: Include diagnostic-core.h. (fatal_error, error, warning): Remove. * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H). (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o. (gcc.o): Update dependencies. From-SVN: r160004 --- gcc/gcc.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gcc/gcc.h') diff --git a/gcc/gcc.h b/gcc/gcc.h index a28567454da..af8f0027ee0 100644 --- a/gcc/gcc.h +++ b/gcc/gcc.h @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see #define GCC_GCC_H #include "version.h" +#include "diagnostic-core.h" /* The mapping of a spec function name to the C function that implements it. */ @@ -59,10 +60,6 @@ struct spec_function /* These are exported by gcc.c. */ extern int do_spec (const char *); extern void record_temp_file (const char *, int, int); -extern void fatal_error (const char *, ...) - ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; -extern void error (const char *, ...) ATTRIBUTE_PRINTF_1; -extern void warning (int, const char *, ...) ATTRIBUTE_PRINTF_2; extern void pfatal_with_name (const char *) ATTRIBUTE_NORETURN; extern void set_input (const char *); -- cgit v1.2.1