toplev.h: New file.
authorRobert Lipe <robertl@gcc.gnu.org>
Wed, 6 May 1998 04:45:47 +0000 (04:45 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Wed, 6 May 1998 04:45:47 +0000 (04:45 +0000)
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

12 files changed:
gcc/c-common.c
gcc/c-convert.c
gcc/c-decl.c
gcc/c-lex.c
gcc/c-parse.in
gcc/c-parse.y
gcc/c-pragma.c
gcc/c-typeck.c
gcc/calls.c
gcc/rtl.h
gcc/toplev.h [new file with mode: 0644]
gcc/tree.h

index e5ef980123adfae9641ef05b23550f17c0bb73dd..eacbdf503d8ee9ec8c105cbaedff9793aa2dfa0f 100644 (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
index 8ba93a9816a3935738d35b03476c918140cf4987..6f58e766ae0a468488c55fe431c7583b21145f1f 100644 (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
index 125aa01ad708c7efb51ff2b66c8a14cdbea99252..f179d1ce4eafb4b02d2531cce4f5642cc347f00f 100644 (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
index 07f975b83a7680af8ce4230c99c02c11ef61ed04..66623dd79f34bf8d7698f861a1f0397c384141d3 100644 (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
index b3b4dc2a97567f27f8a9eda4b2d20d98b519203a..d7725e5ca5780c58b4eb8b608b0ddc29fca74a9c 100644 (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>
index 4f0b1afe97cb76e135638d342204c6ccdba4ec92..a67718984cbd1826012bd473b09345af6cc03aab 100644 (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>
index 480daca02987d3ce61e5a4b99cda8808cc384067..270cd20c57229e80ba0ac5d85d3a013124df9101 100644 (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
 
index 69e8e929f72493335fb8fdd9e29b1bf96bdbaf6a..1e484a69fa976e7a61c6e8f21f6e6d8b942c09a9 100644 (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.  */
index 51fa73b2805ae67626887f659bd3c26a7526423e..16a0346c6a906dc41352ae6e640e3a41af303e70 100644 (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.
index 60958954819a1c2aec41c9d5cdbdb4bff7582487..6886fe5d48efd64a0b591e467a3eadba9cb9504d 100644 (file)
--- 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 (file)
index 0000000..898ca02
--- /dev/null
@@ -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 */
index e33f020314233842941ebb0a6f790cbde0f1e722..3900056b092b34958891e46888c7e3d8e6a6e9fa 100644 (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,