aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-05-28 23:48:36 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2010-05-28 23:48:36 +0100
commit6afbc8850684f9e7168a70ca1148bf9064ba582a (patch)
treee9cbdec79403c99a1cb3ef44833dcf33827d46a9 /gcc/gcc.h
parent0896cc668adddc0be62f009679e1e7236ecec0e6 (diff)
downloadgcc-6afbc8850684f9e7168a70ca1148bf9064ba582a.zip
gcc-6afbc8850684f9e7168a70ca1148bf9064ba582a.tar.gz
gcc-6afbc8850684f9e7168a70ca1148bf9064ba582a.tar.bz2
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
Diffstat (limited to 'gcc/gcc.h')
-rw-r--r--gcc/gcc.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/gcc.h b/gcc/gcc.h
index a285674..af8f002 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 *);