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
This commit is contained in:
Robert Lipe 1998-05-06 04:45:47 +00:00
parent 06b8879012
commit 5f6da3024b
12 changed files with 51 additions and 44 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -68,6 +68,7 @@ end ifc
#include "c-tree.h"
#include "flags.h"
#include "output.h"
#include "toplev.h"
#ifdef MULTIBYTE_CHARS
#include <locale.h>

View File

@ -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 <locale.h>

View File

@ -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

View File

@ -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. */

View File

@ -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.

View File

@ -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 *));

42
gcc/toplev.h Normal file
View File

@ -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 */

View File

@ -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,