OSDN Git Service

Update copyrights.
[pf3gnuchains/gcc-fork.git] / gcc / toplev.h
1 /* toplev.h - Various declarations for functions found in toplev.c
2    Copyright (C) 1998, 1999 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 #ifndef __GCC_TOPLEV_H__
22 #define __GCC_TOPLEV_H__
23
24 #ifdef ANSI_PROTOTYPES
25 union tree_node;
26 struct rtx_def;
27 #endif
28
29 extern int count_error                  PROTO ((int));
30 extern void strip_off_ending            PROTO ((char *, int));
31 extern void print_time                  PROTO ((char *, int));
32 extern void debug_start_source_file     PROTO ((char *));
33 extern void debug_end_source_file       PROTO ((unsigned));
34 extern void debug_define                PROTO ((unsigned, char *));
35 extern void debug_undef                 PROTO ((unsigned, char *));
36 extern void fatal                       PVPROTO ((char *, ...))
37   ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
38 extern void fatal_io_error              PROTO ((char *)) ATTRIBUTE_NORETURN;
39 extern void pfatal_with_name            PROTO ((char *)) ATTRIBUTE_NORETURN;
40 extern void fatal_insn_not_found        PROTO ((struct rtx_def *))
41   ATTRIBUTE_NORETURN;
42 extern void fatal_insn                  PROTO ((char *, struct rtx_def *))
43   ATTRIBUTE_NORETURN;
44 extern void warning                     PVPROTO ((char *, ...))
45                                                 ATTRIBUTE_PRINTF_1;
46 extern void error                       PVPROTO ((char *, ...))
47                                                 ATTRIBUTE_PRINTF_1;
48 extern void pedwarn                     PVPROTO ((char *, ...))
49                                                 ATTRIBUTE_PRINTF_1;
50 extern void pedwarn_with_file_and_line  PVPROTO ((char *, int, char *, ...))
51                                                 ATTRIBUTE_PRINTF_3;
52 extern void warning_with_file_and_line  PVPROTO ((char *, int, char *, ...))
53                                                 ATTRIBUTE_PRINTF_3;
54 extern void error_with_file_and_line    PVPROTO ((char *, int, char *, ...))
55                                                 ATTRIBUTE_PRINTF_3;
56 extern void sorry                       PVPROTO ((char *s, ...))
57                                                 ATTRIBUTE_PRINTF_1;
58 extern void really_sorry                PVPROTO((char *s, ...))
59   ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
60 extern void default_print_error_function PROTO ((char *));
61 extern void report_error_function       PROTO ((char *));
62
63 extern void rest_of_decl_compilation    PROTO ((union tree_node *, char *, int, int));
64 extern void rest_of_type_compilation    PROTO ((union tree_node *, int));
65 extern void rest_of_compilation         PROTO ((union tree_node *));
66 extern void pedwarn_with_decl           PVPROTO ((union tree_node *, char *, ...));
67 extern void warning_with_decl           PVPROTO ((union tree_node *, char *, ...));
68 extern void error_with_decl             PVPROTO ((union tree_node *, char *, ...));
69 extern void announce_function           PROTO ((union tree_node *));
70
71 extern void error_for_asm               PVPROTO((struct rtx_def *, char *, ...))
72                                                 ATTRIBUTE_PRINTF_2;
73 extern void warning_for_asm             PVPROTO((struct rtx_def *, char *, ...))
74                                                 ATTRIBUTE_PRINTF_2;
75 #if defined (_JBLEN) || defined (setjmp)
76 extern void set_float_handler PROTO((jmp_buf));
77 extern int push_float_handler PROTO((jmp_buf, jmp_buf));
78 extern void pop_float_handler PROTO((int, jmp_buf));
79 #endif
80
81 #ifdef BUFSIZ
82 extern void output_quoted_string        PROTO ((FILE *, char *));
83 extern void output_file_directive       PROTO ((FILE *, char *));
84 #endif
85
86 extern void fancy_abort                 PROTO ((void)) ATTRIBUTE_NORETURN;
87 extern void do_abort                    PROTO ((void)) ATTRIBUTE_NORETURN;
88 extern void botch                       PROTO ((char *)) ATTRIBUTE_NORETURN;
89
90 #endif /* __GCC_TOPLEV_H */