* toplev.h: New file. Protypes for functions in toplev.c.
* tree.h, rtl.h: Deleted protos for functions in toplev.c.
* c-common.c, c-convert.c, c-decl.c, c-iterate.c, c-lex.c,
c-parse.in, c-parse.y, c-pragma.c, c-typeck.c, calls.c,
convert.c, dwarf2out.c, except.c, expr.c, final.c, fold-const.c,
function.c, hash.c, profile.c, real.c, reg-stack.c, regclass.c,
reload.c, reload1.c, stmt.c, stor-layout.c, tlink.c, tree.c,
varasm.c: include it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19563
138bc75d-0d04-0410-961f-
82ee72b054a4
#include "c-tree.h"
#include "flags.h"
#include "obstack.h"
+#include "toplev.h"
#ifndef WCHAR_TYPE_SIZE
#ifdef INT_TYPE_SIZE
#include "tree.h"
#include "flags.h"
#include "convert.h"
+#include "toplev.h"
/* Change of width--truncation and extension of integers or reals--
is represented with NOP_EXPR. Proper functioning of many things
#include "output.h"
#include "c-tree.h"
#include "c-lex.h"
+#include "toplev.h"
/* In grokdeclarator, distinguish syntactic contexts of declarators. */
enum decl_context
#include "flags.h"
#include "c-parse.h"
#include "c-pragma.h"
+#include "toplev.h"
/* MULTIBYTE_CHARS support only works for native compilers.
??? Ideally what we want is to model widechar support after
#include "c-tree.h"
#include "flags.h"
#include "output.h"
+#include "toplev.h"
#ifdef MULTIBYTE_CHARS
#include <locale.h>
#include "c-tree.h"
#include "flags.h"
#include "output.h"
+#include "toplev.h"
#ifdef MULTIBYTE_CHARS
#include <locale.h>
#include "defaults.h"
#include "c-pragma.h"
#include "flags.h"
+#include "toplev.h"
#ifdef HANDLE_SYSV_PRAGMA
#include "output.h"
#include "rtl.h"
#include "expr.h"
+#include "toplev.h"
/* Nonzero if we've already printed a "missing braces around initializer"
message within this initializer. */
#include "expr.h"
#include "regs.h"
#include "insn-flags.h"
+#include "toplev.h"
/* Decide whether a function's arguments should be processed
from first to last or from last to first.
unsigned HOST_WIDE_INT, rtx,
int, int));
-/* In toplev.c */
-extern void strip_off_ending PROTO ((char *, int));
-extern void print_time PROTO ((char *, int));
-extern int get_run_time PROTO ((void));
-#if 0
-extern void fatal PVPROTO ((char *, ...));
-extern void warning PVPROTO ((char *, ...));
-extern void error PVPROTO ((char *, ...));
-#endif
-extern void pfatal_with_name PROTO ((char *));
-extern void fancy_abort PROTO ((void));
-extern int count_error PROTO ((int));
-extern void pedwarn PVPROTO ((char *, ...));
-extern void warning_for_asm PVPROTO ((rtx, char *, ...));
-extern void error_for_asm PVPROTO ((rtx, char *, ...));
-
/* In global.c */
#ifdef BUFSIZ
extern int global_alloc PROTO ((FILE *));
--- /dev/null
+/* toplev.h - Various declarations for functions found in toplev.c
+ Copyright (C) 1998 Free Software Foundation, Inc.
+ */
+
+#ifndef __GCC_TOPLEV_H__
+#define __GCC_TOPLEV_H__
+
+extern void print_time PROTO ((char *, int));
+extern int get_run_time PROTO ((void));
+extern void debug_start_source_file PROTO ((char *));
+extern void debug_end_source_file PROTO ((unsigned));
+extern void debug_define PROTO ((unsigned, char *));
+extern void debug_undef PROTO ((unsigned, char *));
+extern void fatal PVPROTO ((char *, ...))
+ ATTRIBUTE_PRINTF_1;
+extern void fatal_io_error PROTO ((char *));
+extern void warning PVPROTO ((char *, ...))
+ ATTRIBUTE_PRINTF_1;
+extern void error PVPROTO ((char *, ...))
+ ATTRIBUTE_PRINTF_1;
+extern void pedwarn PVPROTO ((char *, ...))
+ ATTRIBUTE_PRINTF_1;
+extern void pedwarn_with_file_and_line PVPROTO ((char *, int, char *, ...))
+ ATTRIBUTE_PRINTF_3;
+extern void warning_with_file_and_line PVPROTO ((char *, int, char *, ...))
+ ATTRIBUTE_PRINTF_3;
+extern void error_with_file_and_line PVPROTO ((char *, int, char *, ...))
+ ATTRIBUTE_PRINTF_3;
+extern void sorry PVPROTO ((char *s, ...))
+ ATTRIBUTE_PRINTF_1;
+extern void default_print_error_function PROTO ((char *));
+extern void report_error_function PROTO ((char *));
+
+extern void rest_of_decl_compilation PROTO ((union tree_node *, char *, int, int));
+extern void rest_of_type_compilation PROTO ((union tree_node *, int));
+extern void rest_of_compilation PROTO ((union tree_node *));
+extern void pedwarn_with_decl PVPROTO ((union tree_node *, char *, ...));
+extern void warning_with_decl PVPROTO ((union tree_node *, char *, ...));
+extern void error_with_decl PVPROTO ((union tree_node *, char *, ...));
+extern void announce_function PROTO ((union tree_node *));
+
+#endif /* __GCC_TOPLEV_H */
extern void make_decl_one_only PROTO ((tree));
extern void variable_section PROTO ((tree, int));
-/* toplev.c */
-extern void print_time PROTO ((char *, int));
-extern int get_run_time PROTO ((void));
-extern void debug_start_source_file PROTO ((char *));
-extern void debug_end_source_file PROTO ((unsigned));
-extern void debug_define PROTO ((unsigned, char *));
-extern void debug_undef PROTO ((unsigned, char *));
-extern void rest_of_decl_compilation PROTO ((tree, char *, int, int));
-extern void rest_of_type_compilation PROTO ((tree, int));
-extern void rest_of_compilation PROTO ((tree));
-extern void fatal PVPROTO ((char *, ...));
-extern void fatal_io_error PROTO ((char *));
-#if 0
-extern void warning PVPROTO ((char *, ...));
-extern void error PVPROTO ((char *, ...));
-#endif
-extern void pedwarn PVPROTO ((char *, ...));
-extern void pedwarn_with_decl PVPROTO ((tree, char *, ...));
-extern void pedwarn_with_file_and_line PVPROTO ((char *, int, char *, ...));
-extern void warning_with_file_and_line PVPROTO ((char *, int, char *, ...));
-extern void warning_with_decl PVPROTO ((tree, char *, ...));
-extern void error_with_decl PVPROTO ((tree, char *, ...));
-extern void error_with_file_and_line PVPROTO ((char *, int, char *, ...));
-extern void sorry PVPROTO ((char *s, ...));
-extern void default_print_error_function PROTO ((char *));
-extern void report_error_function PROTO ((char *));
-extern void announce_function PROTO ((tree));
-
/* In fold-const.c */
extern int div_and_round_double PROTO ((enum tree_code, int,
HOST_WIDE_INT, HOST_WIDE_INT,