From 5f6da3024b11795fa6e902504b720df378dc8087 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Wed, 6 May 1998 04:45:47 +0000 Subject: toplev.h: New file. Wed May 6 06:35:38 1998 Robert Lipe * 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. From-SVN: r19563 --- gcc/c-common.c | 1 + gcc/c-convert.c | 1 + gcc/c-decl.c | 1 + gcc/c-lex.c | 1 + gcc/c-parse.in | 1 + gcc/c-parse.y | 1 + gcc/c-pragma.c | 1 + gcc/c-typeck.c | 1 + gcc/calls.c | 1 + gcc/rtl.h | 16 ---------------- gcc/toplev.h | 42 ++++++++++++++++++++++++++++++++++++++++++ gcc/tree.h | 28 ---------------------------- 12 files changed, 51 insertions(+), 44 deletions(-) create mode 100644 gcc/toplev.h diff --git a/gcc/c-common.c b/gcc/c-common.c index e5ef980..eacbdf5 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -25,6 +25,7 @@ Boston, MA 02111-1307, USA. */ #include "c-tree.h" #include "flags.h" #include "obstack.h" +#include "toplev.h" #ifndef WCHAR_TYPE_SIZE #ifdef INT_TYPE_SIZE diff --git a/gcc/c-convert.c b/gcc/c-convert.c index 8ba93a9..6f58e76 100644 --- a/gcc/c-convert.c +++ b/gcc/c-convert.c @@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA. */ #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 diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 125aa01..f179d1c 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "c-tree.h" #include "c-lex.h" +#include "toplev.h" /* In grokdeclarator, distinguish syntactic contexts of declarators. */ enum decl_context diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 07f975b..66623dd 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #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 diff --git a/gcc/c-parse.in b/gcc/c-parse.in index b3b4dc2..d7725e5 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -68,6 +68,7 @@ end ifc #include "c-tree.h" #include "flags.h" #include "output.h" +#include "toplev.h" #ifdef MULTIBYTE_CHARS #include diff --git a/gcc/c-parse.y b/gcc/c-parse.y index 4f0b1af..a677189 100644 --- a/gcc/c-parse.y +++ b/gcc/c-parse.y @@ -64,6 +64,7 @@ State 434 contains 2 shift/reduce conflicts. (Four ways to parse this.) */ #include "c-tree.h" #include "flags.h" #include "output.h" +#include "toplev.h" #ifdef MULTIBYTE_CHARS #include diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 480daca..270cd20 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA. */ #include "defaults.h" #include "c-pragma.h" #include "flags.h" +#include "toplev.h" #ifdef HANDLE_SYSV_PRAGMA diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 69e8e92..1e484a6 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -36,6 +36,7 @@ Boston, MA 02111-1307, USA. */ #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. */ diff --git a/gcc/calls.c b/gcc/calls.c index 51fa73b..16a0346 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */ #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. diff --git a/gcc/rtl.h b/gcc/rtl.h index 6095895..6886fe5 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1294,22 +1294,6 @@ extern rtx expand_mult_highpart PROTO ((enum machine_mode, rtx, 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 *)); diff --git a/gcc/toplev.h b/gcc/toplev.h new file mode 100644 index 0000000..898ca02 --- /dev/null +++ b/gcc/toplev.h @@ -0,0 +1,42 @@ +/* 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 */ diff --git a/gcc/tree.h b/gcc/tree.h index e33f020..3900056 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2106,34 +2106,6 @@ extern void make_decl_rtl PROTO ((tree, char *, int)); 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, -- cgit v1.1