* decl.c (grokfndecl): Remove dead code.
[official-gcc.git] / gcc / toplev.h
blobf0d1b6136480e25c7033f3e96ec90e6a52a878c8
1 /* toplev.h - Various declarations for functions found in toplev.c
2 Copyright (C) 1998, 1999 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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.
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.
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. */
21 #ifndef __GCC_TOPLEV_H__
22 #define __GCC_TOPLEV_H__
24 #ifdef ANSI_PROTOTYPES
25 union tree_node;
26 struct rtx_def;
27 #endif
29 extern int read_integral_parameter PROTO ((const char *, const char *,
30 const int));
31 extern int count_error PROTO ((int));
32 extern void strip_off_ending PROTO ((char *, int));
33 extern void print_time PROTO ((const char *, int));
34 extern void debug_start_source_file PROTO ((char *));
35 extern void debug_end_source_file PROTO ((unsigned));
36 extern void debug_define PROTO ((unsigned, char *));
37 extern void debug_undef PROTO ((unsigned, char *));
38 extern void fatal PVPROTO ((const char *, ...))
39 ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
40 extern void fatal_io_error PROTO ((const char *))
41 ATTRIBUTE_NORETURN;
42 extern void pfatal_with_name PROTO ((const char *))
43 ATTRIBUTE_NORETURN;
44 extern void _fatal_insn_not_found PROTO ((struct rtx_def *,
45 const char *, int,
46 const char *))
47 ATTRIBUTE_NORETURN;
48 extern void _fatal_insn PROTO ((const char *,
49 struct rtx_def *,
50 const char *, int,
51 const char *))
52 ATTRIBUTE_NORETURN;
54 #if HAVE_GCC_VERSION(2,7)
55 #define fatal_insn(msgid, insn) \
56 _fatal_insn (msgid, insn, __FILE__, __LINE__, __PRETTY_FUNCTION__)
57 #define fatal_insn_not_found(insn) \
58 _fatal_insn_not_found (insn, __FILE__, __LINE__, __PRETTY_FUNCTION__)
59 #else
60 #define fatal_insn(msgid, insn) \
61 _fatal_insn (msgid, insn, __FILE__, __LINE__, 0)
62 #define fatal_insn_not_found(insn) \
63 _fatal_insn_not_found (insn, __FILE__, __LINE__, 0)
64 #endif
65 extern void warning PVPROTO ((const char *, ...))
66 ATTRIBUTE_PRINTF_1;
67 extern void error PVPROTO ((const char *, ...))
68 ATTRIBUTE_PRINTF_1;
69 extern void pedwarn PVPROTO ((const char *, ...))
70 ATTRIBUTE_PRINTF_1;
71 extern void pedwarn_with_file_and_line PVPROTO ((const char *, int,
72 const char *, ...))
73 ATTRIBUTE_PRINTF_3;
74 extern void warning_with_file_and_line PVPROTO ((const char *, int,
75 const char *, ...))
76 ATTRIBUTE_PRINTF_3;
77 extern void error_with_file_and_line PVPROTO ((const char *, int,
78 const char *, ...))
79 ATTRIBUTE_PRINTF_3;
80 extern void sorry PVPROTO ((const char *, ...))
81 ATTRIBUTE_PRINTF_1;
82 extern void really_sorry PVPROTO((const char *, ...))
83 ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
84 extern void default_print_error_function PROTO ((const char *));
85 extern void report_error_function PROTO ((const char *));
87 extern void rest_of_decl_compilation PROTO ((union tree_node *,
88 const char *, int, int));
89 extern void rest_of_type_compilation PROTO ((union tree_node *, int));
90 extern void rest_of_compilation PROTO ((union tree_node *));
92 /* The *_with_decl functions aren't suitable for ATTRIBUTE_PRINTF. */
93 extern void pedwarn_with_decl PVPROTO ((union tree_node *,
94 const char *, ...));
95 extern void warning_with_decl PVPROTO ((union tree_node *,
96 const char *, ...));
97 extern void error_with_decl PVPROTO ((union tree_node *,
98 const char *, ...));
100 extern void announce_function PROTO ((union tree_node *));
102 extern void error_for_asm PVPROTO((struct rtx_def *,
103 const char *, ...))
104 ATTRIBUTE_PRINTF_2;
105 extern void warning_for_asm PVPROTO((struct rtx_def *,
106 const char *, ...))
107 ATTRIBUTE_PRINTF_2;
108 #if defined (_JBLEN) || defined (setjmp)
109 extern void set_float_handler PROTO((jmp_buf));
110 extern int push_float_handler PROTO((jmp_buf, jmp_buf));
111 extern void pop_float_handler PROTO((int, jmp_buf));
112 #endif
113 extern int do_float_handler PROTO((void (*) (PTR), PTR));
115 #ifdef BUFSIZ
116 extern void output_quoted_string PROTO ((FILE *, const char *));
117 extern void output_file_directive PROTO ((FILE *, const char *));
118 #endif
119 extern void do_abort PROTO ((void)) ATTRIBUTE_NORETURN;
120 extern void botch PROTO ((const char *))
121 ATTRIBUTE_NORETURN;
123 #ifdef BUFSIZ
124 extern void fnotice PROTO ((FILE *, const char *, ...))
125 ATTRIBUTE_PRINTF_2;
126 #endif
128 extern int wrapup_global_declarations PROTO ((union tree_node **, int));
129 extern void check_global_declarations PROTO ((union tree_node **, int));
130 extern int errorcount;
131 extern int warningcount;
132 extern int sorrycount;
134 extern const char *progname;
135 #endif /* __GCC_TOPLEV_H */