Commit 5f6da302 by Robert Lipe

toplev.h: New file.

Wed May  6 06:35:38 1998  Robert Lipe  <robertl@dgii.com>
        * 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
parent 06b88790
...@@ -25,6 +25,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -25,6 +25,7 @@ Boston, MA 02111-1307, USA. */
#include "c-tree.h" #include "c-tree.h"
#include "flags.h" #include "flags.h"
#include "obstack.h" #include "obstack.h"
#include "toplev.h"
#ifndef WCHAR_TYPE_SIZE #ifndef WCHAR_TYPE_SIZE
#ifdef INT_TYPE_SIZE #ifdef INT_TYPE_SIZE
......
...@@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA. */
#include "tree.h" #include "tree.h"
#include "flags.h" #include "flags.h"
#include "convert.h" #include "convert.h"
#include "toplev.h"
/* Change of width--truncation and extension of integers or reals-- /* Change of width--truncation and extension of integers or reals--
is represented with NOP_EXPR. Proper functioning of many things is represented with NOP_EXPR. Proper functioning of many things
......
...@@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */
#include "output.h" #include "output.h"
#include "c-tree.h" #include "c-tree.h"
#include "c-lex.h" #include "c-lex.h"
#include "toplev.h"
/* In grokdeclarator, distinguish syntactic contexts of declarators. */ /* In grokdeclarator, distinguish syntactic contexts of declarators. */
enum decl_context enum decl_context
......
...@@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */
#include "flags.h" #include "flags.h"
#include "c-parse.h" #include "c-parse.h"
#include "c-pragma.h" #include "c-pragma.h"
#include "toplev.h"
/* MULTIBYTE_CHARS support only works for native compilers. /* MULTIBYTE_CHARS support only works for native compilers.
??? Ideally what we want is to model widechar support after ??? Ideally what we want is to model widechar support after
......
...@@ -68,6 +68,7 @@ end ifc ...@@ -68,6 +68,7 @@ end ifc
#include "c-tree.h" #include "c-tree.h"
#include "flags.h" #include "flags.h"
#include "output.h" #include "output.h"
#include "toplev.h"
#ifdef MULTIBYTE_CHARS #ifdef MULTIBYTE_CHARS
#include <locale.h> #include <locale.h>
......
...@@ -64,6 +64,7 @@ State 434 contains 2 shift/reduce conflicts. (Four ways to parse this.) */ ...@@ -64,6 +64,7 @@ State 434 contains 2 shift/reduce conflicts. (Four ways to parse this.) */
#include "c-tree.h" #include "c-tree.h"
#include "flags.h" #include "flags.h"
#include "output.h" #include "output.h"
#include "toplev.h"
#ifdef MULTIBYTE_CHARS #ifdef MULTIBYTE_CHARS
#include <locale.h> #include <locale.h>
......
...@@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA. */
#include "defaults.h" #include "defaults.h"
#include "c-pragma.h" #include "c-pragma.h"
#include "flags.h" #include "flags.h"
#include "toplev.h"
#ifdef HANDLE_SYSV_PRAGMA #ifdef HANDLE_SYSV_PRAGMA
......
...@@ -36,6 +36,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -36,6 +36,7 @@ Boston, MA 02111-1307, USA. */
#include "output.h" #include "output.h"
#include "rtl.h" #include "rtl.h"
#include "expr.h" #include "expr.h"
#include "toplev.h"
/* Nonzero if we've already printed a "missing braces around initializer" /* Nonzero if we've already printed a "missing braces around initializer"
message within this initializer. */ message within this initializer. */
......
...@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */
#include "expr.h" #include "expr.h"
#include "regs.h" #include "regs.h"
#include "insn-flags.h" #include "insn-flags.h"
#include "toplev.h"
/* Decide whether a function's arguments should be processed /* Decide whether a function's arguments should be processed
from first to last or from last to first. from first to last or from last to first.
......
...@@ -1294,22 +1294,6 @@ extern rtx expand_mult_highpart PROTO ((enum machine_mode, rtx, ...@@ -1294,22 +1294,6 @@ extern rtx expand_mult_highpart PROTO ((enum machine_mode, rtx,
unsigned HOST_WIDE_INT, rtx, unsigned HOST_WIDE_INT, rtx,
int, int)); 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 */ /* In global.c */
#ifdef BUFSIZ #ifdef BUFSIZ
extern int global_alloc PROTO ((FILE *)); extern int global_alloc PROTO ((FILE *));
......
/* 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 */
...@@ -2106,34 +2106,6 @@ extern void make_decl_rtl PROTO ((tree, char *, int)); ...@@ -2106,34 +2106,6 @@ extern void make_decl_rtl PROTO ((tree, char *, int));
extern void make_decl_one_only PROTO ((tree)); extern void make_decl_one_only PROTO ((tree));
extern void variable_section PROTO ((tree, int)); 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 */ /* In fold-const.c */
extern int div_and_round_double PROTO ((enum tree_code, int, extern int div_and_round_double PROTO ((enum tree_code, int,
HOST_WIDE_INT, HOST_WIDE_INT, HOST_WIDE_INT, HOST_WIDE_INT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment