Commit e25a75e6 by Andreas Jaeger Committed by Andreas Jaeger

toplev.c: Use ISO C90 prototypes.

        * toplev.c: Use ISO C90 prototypes.

        * toplev.h: Use ISO C90 prototypes.

From-SVN: r67299
parent 16610927
2003-06-01 Andreas Jaeger <aj@suse.de> 2003-06-01 Andreas Jaeger <aj@suse.de>
* toplev.c: Use ISO C90 prototypes.
* toplev.h: Use ISO C90 prototypes.
* genrecog.c: Use ISO C90 prototypes. * genrecog.c: Use ISO C90 prototypes.
(nodes_identical): Correct declaration to match prototype. (nodes_identical): Correct declaration to match prototype.
(maybe_both_true): Likewise. (maybe_both_true): Likewise.
......
...@@ -100,38 +100,38 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -100,38 +100,38 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
extern int size_directive_output; extern int size_directive_output;
extern tree last_assemble_variable_decl; extern tree last_assemble_variable_decl;
extern void reg_alloc PARAMS ((void)); extern void reg_alloc (void);
static void general_init PARAMS ((char *)); static void general_init (char *);
static void parse_options_and_default_flags PARAMS ((int, char **)); static void parse_options_and_default_flags (int, char **);
static void do_compile PARAMS ((void)); static void do_compile (void);
static void process_options PARAMS ((void)); static void process_options (void);
static void backend_init PARAMS ((void)); static void backend_init (void);
static int lang_dependent_init PARAMS ((const char *)); static int lang_dependent_init (const char *);
static void init_asm_output PARAMS ((const char *)); static void init_asm_output (const char *);
static void finalize PARAMS ((void)); static void finalize (void);
static void set_target_switch PARAMS ((const char *)); static void set_target_switch (const char *);
static void crash_signal PARAMS ((int)) ATTRIBUTE_NORETURN; static void crash_signal (int) ATTRIBUTE_NORETURN;
static void setup_core_dumping PARAMS ((void)); static void setup_core_dumping (void);
static void compile_file PARAMS ((void)); static void compile_file (void);
static void display_help PARAMS ((void)); static void display_help (void);
static void display_target_options PARAMS ((void)); static void display_target_options (void);
static void decode_d_option PARAMS ((const char *)); static void decode_d_option (const char *);
static int decode_f_option PARAMS ((const char *)); static int decode_f_option (const char *);
static int decode_W_option PARAMS ((const char *)); static int decode_W_option (const char *);
static int decode_g_option PARAMS ((const char *)); static int decode_g_option (const char *);
static unsigned int independent_decode_option PARAMS ((int, char **)); static unsigned int independent_decode_option (int, char **);
static void set_Wextra PARAMS ((int)); static void set_Wextra (int);
static void print_version PARAMS ((FILE *, const char *)); static void print_version (FILE *, const char *);
static int print_single_switch PARAMS ((FILE *, int, int, const char *, static int print_single_switch (FILE *, int, int, const char *,
const char *, const char *, const char *, const char *,
const char *, const char *)); const char *, const char *);
static void print_switch_values PARAMS ((FILE *, int, int, const char *, static void print_switch_values (FILE *, int, int, const char *,
const char *, const char *)); const char *, const char *);
/* Rest of compilation helper functions. */ /* Rest of compilation helper functions. */
static bool rest_of_handle_inlining (tree); static bool rest_of_handle_inlining (tree);
...@@ -349,9 +349,9 @@ static struct dump_file_info dump_file[DFI_MAX] = ...@@ -349,9 +349,9 @@ static struct dump_file_info dump_file[DFI_MAX] =
{ "dbr", 'd', 0, 0, 0 }, { "dbr", 'd', 0, 0, 0 },
}; };
static int open_dump_file PARAMS ((enum dump_file_index, tree)); static int open_dump_file (enum dump_file_index, tree);
static void close_dump_file PARAMS ((enum dump_file_index, static void close_dump_file (enum dump_file_index,
void (*) (FILE *, rtx), rtx)); void (*) (FILE *, rtx), rtx);
/* Other flags saying which kinds of debugging dump have been requested. */ /* Other flags saying which kinds of debugging dump have been requested. */
...@@ -1634,8 +1634,7 @@ static const lang_independent_options W_options[] = ...@@ -1634,8 +1634,7 @@ static const lang_independent_options W_options[] =
/* Initialize unused warning flags. */ /* Initialize unused warning flags. */
void void
set_Wunused (setting) set_Wunused (int setting)
int setting;
{ {
warn_unused_function = setting; warn_unused_function = setting;
warn_unused_label = setting; warn_unused_label = setting;
...@@ -1652,8 +1651,7 @@ set_Wunused (setting) ...@@ -1652,8 +1651,7 @@ set_Wunused (setting)
/* Initialize more unused warning flags. */ /* Initialize more unused warning flags. */
static void static void
set_Wextra (setting) set_Wextra (int setting)
int setting;
{ {
extra_warnings = setting; extra_warnings = setting;
warn_unused_value = setting; warn_unused_value = setting;
...@@ -1672,8 +1670,7 @@ set_Wextra (setting) ...@@ -1672,8 +1670,7 @@ set_Wextra (setting)
-ffast-math and -fno-fast-math imply. */ -ffast-math and -fno-fast-math imply. */
void void
set_fast_math_flags (set) set_fast_math_flags (int set)
int set;
{ {
flag_trapping_math = !set; flag_trapping_math = !set;
flag_unsafe_math_optimizations = set; flag_unsafe_math_optimizations = set;
...@@ -1685,7 +1682,7 @@ set_fast_math_flags (set) ...@@ -1685,7 +1682,7 @@ set_fast_math_flags (set)
/* Return true iff flags are set as if -ffast-math. */ /* Return true iff flags are set as if -ffast-math. */
bool bool
fast_math_flags_set_p () fast_math_flags_set_p (void)
{ {
return (!flag_trapping_math return (!flag_trapping_math
&& flag_unsafe_math_optimizations && flag_unsafe_math_optimizations
...@@ -1706,10 +1703,7 @@ FILE *rtl_dump_file = NULL; ...@@ -1706,10 +1703,7 @@ FILE *rtl_dump_file = NULL;
If PNAME is zero just return DEFVAL, do not call error. */ If PNAME is zero just return DEFVAL, do not call error. */
int int
read_integral_parameter (p, pname, defval) read_integral_parameter (const char *p, const char *pname, const int defval)
const char *p;
const char *pname;
const int defval;
{ {
const char *endp = p; const char *endp = p;
...@@ -1737,8 +1731,7 @@ read_integral_parameter (p, pname, defval) ...@@ -1737,8 +1731,7 @@ read_integral_parameter (p, pname, defval)
This should be used via the `exact_log2' macro. */ This should be used via the `exact_log2' macro. */
int int
exact_log2_wide (x) exact_log2_wide (unsigned HOST_WIDE_INT x)
unsigned HOST_WIDE_INT x;
{ {
int log = 0; int log = 0;
/* Test for 0 or a power of 2. */ /* Test for 0 or a power of 2. */
...@@ -1755,8 +1748,7 @@ exact_log2_wide (x) ...@@ -1755,8 +1748,7 @@ exact_log2_wide (x)
This should be used via the floor_log2 macro. */ This should be used via the floor_log2 macro. */
int int
floor_log2_wide (x) floor_log2_wide (unsigned HOST_WIDE_INT x)
unsigned HOST_WIDE_INT x;
{ {
int log = -1; int log = -1;
while (x != 0) while (x != 0)
...@@ -1769,8 +1761,7 @@ floor_log2_wide (x) ...@@ -1769,8 +1761,7 @@ floor_log2_wide (x)
into ICE messages, which is much more user friendly. */ into ICE messages, which is much more user friendly. */
static void static void
crash_signal (signo) crash_signal (int signo)
int signo;
{ {
internal_error ("%s", strsignal (signo)); internal_error ("%s", strsignal (signo));
} }
...@@ -1779,7 +1770,7 @@ crash_signal (signo) ...@@ -1779,7 +1770,7 @@ crash_signal (signo)
printed first, except in the case of abort().) */ printed first, except in the case of abort().) */
static void static void
setup_core_dumping () setup_core_dumping (void)
{ {
#ifdef SIGABRT #ifdef SIGABRT
signal (SIGABRT, SIG_DFL); signal (SIGABRT, SIG_DFL);
...@@ -1804,9 +1795,7 @@ setup_core_dumping () ...@@ -1804,9 +1795,7 @@ setup_core_dumping ()
up to five characters. (Java uses ".class".) */ up to five characters. (Java uses ".class".) */
void void
strip_off_ending (name, len) strip_off_ending (char *name, int len)
char *name;
int len;
{ {
int i; int i;
for (i = 2; i < 6 && len > i; i++) for (i = 2; i < 6 && len > i; i++)
...@@ -1822,9 +1811,7 @@ strip_off_ending (name, len) ...@@ -1822,9 +1811,7 @@ strip_off_ending (name, len)
/* Output a quoted string. */ /* Output a quoted string. */
void void
output_quoted_string (asm_file, string) output_quoted_string (FILE *asm_file, const char *string)
FILE *asm_file;
const char *string;
{ {
#ifdef OUTPUT_QUOTED_STRING #ifdef OUTPUT_QUOTED_STRING
OUTPUT_QUOTED_STRING (asm_file, string); OUTPUT_QUOTED_STRING (asm_file, string);
...@@ -1850,9 +1837,7 @@ output_quoted_string (asm_file, string) ...@@ -1850,9 +1837,7 @@ output_quoted_string (asm_file, string)
/* Output NAME into FILE after having turned it into something /* Output NAME into FILE after having turned it into something
usable as an identifier in a target's assembly file. */ usable as an identifier in a target's assembly file. */
void void
output_clean_symbol_name (file, name) output_clean_symbol_name (FILE *file, const char *name)
FILE *file;
const char *name;
{ {
/* Make a copy of NAME. */ /* Make a copy of NAME. */
char *id = xstrdup (name); char *id = xstrdup (name);
...@@ -1868,9 +1853,7 @@ output_clean_symbol_name (file, name) ...@@ -1868,9 +1853,7 @@ output_clean_symbol_name (file, name)
/* Output a file name in the form wanted by System V. */ /* Output a file name in the form wanted by System V. */
void void
output_file_directive (asm_file, input_name) output_file_directive (FILE *asm_file, const char *input_name)
FILE *asm_file;
const char *input_name;
{ {
int len = strlen (input_name); int len = strlen (input_name);
const char *na = input_name + len; const char *na = input_name + len;
...@@ -1899,9 +1882,7 @@ output_file_directive (asm_file, input_name) ...@@ -1899,9 +1882,7 @@ output_file_directive (asm_file, input_name)
/* Routine to open a dump file. Return true if the dump file is enabled. */ /* Routine to open a dump file. Return true if the dump file is enabled. */
static int static int
open_dump_file (index, decl) open_dump_file (enum dump_file_index index, tree decl)
enum dump_file_index index;
tree decl;
{ {
char *dump_name; char *dump_name;
const char *open_arg; const char *open_arg;
...@@ -1957,10 +1938,9 @@ open_dump_file (index, decl) ...@@ -1957,10 +1938,9 @@ open_dump_file (index, decl)
/* Routine to close a dump file. */ /* Routine to close a dump file. */
static void static void
close_dump_file (index, func, insns) close_dump_file (enum dump_file_index index,
enum dump_file_index index; void (*func) (FILE *, rtx),
void (*func) PARAMS ((FILE *, rtx)); rtx insns)
rtx insns;
{ {
if (! rtl_dump_file) if (! rtl_dump_file)
return; return;
...@@ -1995,9 +1975,7 @@ close_dump_file (index, func, insns) ...@@ -1995,9 +1975,7 @@ close_dump_file (index, func, insns)
Returns nonzero if anything was put out. */ Returns nonzero if anything was put out. */
int int
wrapup_global_declarations (vec, len) wrapup_global_declarations (tree *vec, int len)
tree *vec;
int len;
{ {
tree decl; tree decl;
int i; int i;
...@@ -2099,9 +2077,7 @@ wrapup_global_declarations (vec, len) ...@@ -2099,9 +2077,7 @@ wrapup_global_declarations (vec, len)
which there are LEN). Output debugging information for them. */ which there are LEN). Output debugging information for them. */
void void
check_global_declarations (vec, len) check_global_declarations (tree *vec, int len)
tree *vec;
int len;
{ {
tree decl; tree decl;
int i; int i;
...@@ -2174,9 +2150,7 @@ check_global_declarations (vec, len) ...@@ -2174,9 +2150,7 @@ check_global_declarations (vec, len)
INPUT_LOCATION accordingly. */ INPUT_LOCATION accordingly. */
void void
push_srcloc (file, line) push_srcloc (const char *file, int line)
const char *file;
int line;
{ {
struct file_stack *fs; struct file_stack *fs;
...@@ -2197,7 +2171,7 @@ push_srcloc (file, line) ...@@ -2197,7 +2171,7 @@ push_srcloc (file, line)
stack. */ stack. */
void void
pop_srcloc () pop_srcloc (void)
{ {
struct file_stack *fs; struct file_stack *fs;
...@@ -2219,7 +2193,7 @@ pop_srcloc () ...@@ -2219,7 +2193,7 @@ pop_srcloc ()
output and various debugging dumps. */ output and various debugging dumps. */
static void static void
compile_file () compile_file (void)
{ {
/* Initialize yet another pass. */ /* Initialize yet another pass. */
...@@ -2316,11 +2290,10 @@ compile_file () ...@@ -2316,11 +2290,10 @@ compile_file ()
if this declaration is not within a function. */ if this declaration is not within a function. */
void void
rest_of_decl_compilation (decl, asmspec, top_level, at_end) rest_of_decl_compilation (tree decl,
tree decl; const char *asmspec,
const char *asmspec; int top_level,
int top_level; int at_end)
int at_end;
{ {
/* We deferred calling assemble_alias so that we could collect /* We deferred calling assemble_alias so that we could collect
other attributes such as visibility. Emit the alias now. */ other attributes such as visibility. Emit the alias now. */
...@@ -2409,15 +2382,16 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) ...@@ -2409,15 +2382,16 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end)
/* Called after finishing a record, union or enumeral type. */ /* Called after finishing a record, union or enumeral type. */
void void
rest_of_type_compilation (type, toplev) rest_of_type_compilation (
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO) \ #if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO) \
|| defined (SDB_DEBUGGING_INFO) || defined (DWARF2_DEBUGGING_INFO) || defined (SDB_DEBUGGING_INFO) || defined (DWARF2_DEBUGGING_INFO)
tree type; tree type,
int toplev; int toplev
#else #else
tree type ATTRIBUTE_UNUSED; tree type ATTRIBUTE_UNUSED,
int toplev ATTRIBUTE_UNUSED; int toplev ATTRIBUTE_UNUSED,
#endif #endif
)
{ {
/* Avoid confusing the debug information machinery when there are /* Avoid confusing the debug information machinery when there are
errors. */ errors. */
...@@ -3485,8 +3459,7 @@ rest_of_handle_loop2 (tree decl, rtx insns) ...@@ -3485,8 +3459,7 @@ rest_of_handle_loop2 (tree decl, rtx insns)
After we return, the tree storage is freed. */ After we return, the tree storage is freed. */
void void
rest_of_compilation (decl) rest_of_compilation (tree decl)
tree decl;
{ {
rtx insns; rtx insns;
int rebuild_label_notes_after_reload; int rebuild_label_notes_after_reload;
...@@ -4032,7 +4005,7 @@ rest_of_compilation (decl) ...@@ -4032,7 +4005,7 @@ rest_of_compilation (decl)
/* Display help for generic options. */ /* Display help for generic options. */
static void static void
display_help () display_help (void)
{ {
int undoc; int undoc;
unsigned long i; unsigned long i;
...@@ -4166,7 +4139,7 @@ display_help () ...@@ -4166,7 +4139,7 @@ display_help ()
/* Display help for target options. */ /* Display help for target options. */
static void static void
display_target_options () display_target_options (void)
{ {
int undoc, i; int undoc, i;
static bool displayed = false; static bool displayed = false;
...@@ -4238,8 +4211,7 @@ display_target_options () ...@@ -4238,8 +4211,7 @@ display_target_options ()
/* Parse a -d... command line switch. */ /* Parse a -d... command line switch. */
static void static void
decode_d_option (arg) decode_d_option (const char *arg)
const char *arg;
{ {
int i, c, matched; int i, c, matched;
...@@ -4296,8 +4268,7 @@ decode_d_option (arg) ...@@ -4296,8 +4268,7 @@ decode_d_option (arg)
Return the number of strings consumed. */ Return the number of strings consumed. */
static int static int
decode_f_option (arg) decode_f_option (const char *arg)
const char *arg;
{ {
int j; int j;
const char *option_value = NULL; const char *option_value = NULL;
...@@ -4427,8 +4398,7 @@ decode_f_option (arg) ...@@ -4427,8 +4398,7 @@ decode_f_option (arg)
Return the number of strings consumed. */ Return the number of strings consumed. */
static int static int
decode_W_option (arg) decode_W_option (const char *arg)
const char *arg;
{ {
const char *option_value = NULL; const char *option_value = NULL;
int j; int j;
...@@ -4492,8 +4462,7 @@ const char *const debug_type_names[] = ...@@ -4492,8 +4462,7 @@ const char *const debug_type_names[] =
Return the number of strings consumed. */ Return the number of strings consumed. */
static int static int
decode_g_option (arg) decode_g_option (const char *arg)
const char *arg;
{ {
static unsigned level = 0; static unsigned level = 0;
/* A lot of code assumes write_symbols == NO_DEBUG if the /* A lot of code assumes write_symbols == NO_DEBUG if the
...@@ -4612,9 +4581,7 @@ ignoring option `%s' due to invalid debug level specification", ...@@ -4612,9 +4581,7 @@ ignoring option `%s' due to invalid debug level specification",
Return the number of strings consumed. */ Return the number of strings consumed. */
static unsigned int static unsigned int
independent_decode_option (argc, argv) independent_decode_option (int argc, char **argv)
int argc;
char **argv;
{ {
char *arg = argv[0]; char *arg = argv[0];
...@@ -4856,8 +4823,7 @@ independent_decode_option (argc, argv) ...@@ -4856,8 +4823,7 @@ independent_decode_option (argc, argv)
/* Decode the switch -mNAME. */ /* Decode the switch -mNAME. */
static void static void
set_target_switch (name) set_target_switch (const char *name)
const char *name;
{ {
size_t j; size_t j;
int valid_target_option = 0; int valid_target_option = 0;
...@@ -4912,9 +4878,7 @@ set_target_switch (name) ...@@ -4912,9 +4878,7 @@ set_target_switch (name)
assembler output file). */ assembler output file). */
static void static void
print_version (file, indent) print_version (FILE *file, const char *indent)
FILE *file;
const char *indent;
{ {
#ifndef __VERSION__ #ifndef __VERSION__
#define __VERSION__ "[?]" #define __VERSION__ "[?]"
...@@ -4938,10 +4902,9 @@ print_version (file, indent) ...@@ -4938,10 +4902,9 @@ print_version (file, indent)
other code will catch a disk full though. */ other code will catch a disk full though. */
static int static int
print_single_switch (file, pos, max, indent, sep, term, type, name) print_single_switch (FILE *file, int pos, int max,
FILE *file; const char *indent, const char *sep, const char *term,
int pos, max; const char *type, const char *name)
const char *indent, *sep, *term, *type, *name;
{ {
/* The ultrix fprintf returns 0 on success, so compute the result we want /* The ultrix fprintf returns 0 on success, so compute the result we want
here since we need it for the following test. */ here since we need it for the following test. */
...@@ -4969,10 +4932,8 @@ print_single_switch (file, pos, max, indent, sep, term, type, name) ...@@ -4969,10 +4932,8 @@ print_single_switch (file, pos, max, indent, sep, term, type, name)
Each switch is separated from the next by SEP. */ Each switch is separated from the next by SEP. */
static void static void
print_switch_values (file, pos, max, indent, sep, term) print_switch_values (FILE *file, int pos, int max,
FILE *file; const char *indent, const char *sep, const char *term)
int pos, max;
const char *indent, *sep, *term;
{ {
size_t j; size_t j;
char **p; char **p;
...@@ -5053,8 +5014,7 @@ print_switch_values (file, pos, max, indent, sep, term) ...@@ -5053,8 +5014,7 @@ print_switch_values (file, pos, max, indent, sep, term)
temporary file or bit bucket for us. NAME is the file specified on temporary file or bit bucket for us. NAME is the file specified on
the command line, possibly NULL. */ the command line, possibly NULL. */
static void static void
init_asm_output (name) init_asm_output (const char *name)
const char *name;
{ {
if (name == NULL && asm_file_name == 0) if (name == NULL && asm_file_name == 0)
asm_out_file = stdout; asm_out_file = stdout;
...@@ -5107,8 +5067,7 @@ init_asm_output (name) ...@@ -5107,8 +5067,7 @@ init_asm_output (name)
options are parsed. Signal handlers, internationalization etc. options are parsed. Signal handlers, internationalization etc.
ARGV0 is main's argv[0]. */ ARGV0 is main's argv[0]. */
static void static void
general_init (argv0) general_init (char *argv0)
char *argv0;
{ {
char *p; char *p;
...@@ -5164,9 +5123,7 @@ general_init (argv0) ...@@ -5164,9 +5123,7 @@ general_init (argv0)
Return nonzero to suppress compiler back end initialization. */ Return nonzero to suppress compiler back end initialization. */
static void static void
parse_options_and_default_flags (argc, argv) parse_options_and_default_flags (int argc, char **argv)
int argc;
char **argv;
{ {
int i; int i;
...@@ -5409,7 +5366,7 @@ parse_options_and_default_flags (argc, argv) ...@@ -5409,7 +5366,7 @@ parse_options_and_default_flags (argc, argv)
/* Process the options that have been parsed. */ /* Process the options that have been parsed. */
static void static void
process_options () process_options (void)
{ {
/* Allow the front end to perform consistency checks and do further /* Allow the front end to perform consistency checks and do further
initialization based on the command line options. This hook also initialization based on the command line options. This hook also
...@@ -5620,7 +5577,7 @@ process_options () ...@@ -5620,7 +5577,7 @@ process_options ()
/* Initialize the compiler back end. */ /* Initialize the compiler back end. */
static void static void
backend_init () backend_init (void)
{ {
/* init_emit_once uses reg_raw_mode and therefore must be called /* init_emit_once uses reg_raw_mode and therefore must be called
after init_regs which initialized reg_raw_mode. */ after init_regs which initialized reg_raw_mode. */
...@@ -5651,8 +5608,7 @@ backend_init () ...@@ -5651,8 +5608,7 @@ backend_init ()
/* Language-dependent initialization. Returns nonzero on success. */ /* Language-dependent initialization. Returns nonzero on success. */
static int static int
lang_dependent_init (name) lang_dependent_init (const char *name)
const char *name;
{ {
if (dump_base_name == 0) if (dump_base_name == 0)
dump_base_name = name ? name : "gccdump"; dump_base_name = name ? name : "gccdump";
...@@ -5698,7 +5654,7 @@ lang_dependent_init (name) ...@@ -5698,7 +5654,7 @@ lang_dependent_init (name)
/* Clean up: close opened files, etc. */ /* Clean up: close opened files, etc. */
static void static void
finalize () finalize (void)
{ {
/* Close the dump files. */ /* Close the dump files. */
if (flag_gen_aux_info) if (flag_gen_aux_info)
...@@ -5754,7 +5710,7 @@ finalize () ...@@ -5754,7 +5710,7 @@ finalize ()
/* Initialize the compiler, and compile the input file. */ /* Initialize the compiler, and compile the input file. */
static void static void
do_compile () do_compile (void)
{ {
/* Initialize timing first. The C front ends read the main file in /* Initialize timing first. The C front ends read the main file in
the post_options hook, and C++ does file timings. */ the post_options hook, and C++ does file timings. */
...@@ -5791,9 +5747,7 @@ do_compile () ...@@ -5791,9 +5747,7 @@ do_compile ()
It is not safe to call this function more than once. */ It is not safe to call this function more than once. */
int int
toplev_main (argc, argv) toplev_main (int argc, char **argv)
int argc;
char **argv;
{ {
/* Initialization of GCC's environment, and diagnostics. */ /* Initialization of GCC's environment, and diagnostics. */
general_init (argv[0]); general_init (argv[0]);
......
/* toplev.h - Various declarations for functions found in toplev.c /* toplev.h - Various declarations for functions found in toplev.c
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -26,22 +26,22 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -26,22 +26,22 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define skip_leading_substring(whole, part) \ #define skip_leading_substring(whole, part) \
(strncmp (whole, part, strlen (part)) ? NULL : whole + strlen (part)) (strncmp (whole, part, strlen (part)) ? NULL : whole + strlen (part))
extern int toplev_main PARAMS ((int, char **)); extern int toplev_main (int, char **);
extern int read_integral_parameter PARAMS ((const char *, const char *, extern int read_integral_parameter (const char *, const char *,
const int)); const int);
extern void strip_off_ending PARAMS ((char *, int)); extern void strip_off_ending (char *, int);
extern void print_time PARAMS ((const char *, long)); extern void print_time (const char *, long);
extern const char *trim_filename PARAMS ((const char *)); extern const char *trim_filename (const char *);
extern void internal_error PARAMS ((const char *, ...)) extern void internal_error (const char *, ...)
ATTRIBUTE_NORETURN; ATTRIBUTE_NORETURN;
extern void _fatal_insn_not_found PARAMS ((struct rtx_def *, extern void _fatal_insn_not_found (struct rtx_def *,
const char *, int, const char *, int,
const char *)) const char *)
ATTRIBUTE_NORETURN; ATTRIBUTE_NORETURN;
extern void _fatal_insn PARAMS ((const char *, extern void _fatal_insn (const char *,
struct rtx_def *, struct rtx_def *,
const char *, int, const char *, int,
const char *)) const char *)
ATTRIBUTE_NORETURN; ATTRIBUTE_NORETURN;
#define fatal_insn(msgid, insn) \ #define fatal_insn(msgid, insn) \
...@@ -52,48 +52,48 @@ extern void _fatal_insn PARAMS ((const char *, ...@@ -52,48 +52,48 @@ extern void _fatal_insn PARAMS ((const char *,
/* None of these functions are suitable for ATTRIBUTE_PRINTF, because /* None of these functions are suitable for ATTRIBUTE_PRINTF, because
each language front end can extend them with its own set of format each language front end can extend them with its own set of format
specifiers. */ specifiers. */
extern void warning PARAMS ((const char *, ...)); extern void warning (const char *, ...);
extern void error PARAMS ((const char *, ...)); extern void error (const char *, ...);
extern void fatal_error PARAMS ((const char *, ...)) extern void fatal_error (const char *, ...)
ATTRIBUTE_NORETURN; ATTRIBUTE_NORETURN;
extern void pedwarn PARAMS ((const char *, ...)); extern void pedwarn (const char *, ...);
extern void sorry PARAMS ((const char *, ...)); extern void sorry (const char *, ...);
extern void rest_of_decl_compilation PARAMS ((union tree_node *, extern void rest_of_decl_compilation (union tree_node *,
const char *, int, int)); const char *, int, int);
extern void rest_of_type_compilation PARAMS ((union tree_node *, int)); extern void rest_of_type_compilation (union tree_node *, int);
extern void rest_of_compilation PARAMS ((union tree_node *)); extern void rest_of_compilation (union tree_node *);
extern void pedwarn_with_decl PARAMS ((union tree_node *, extern void pedwarn_with_decl (union tree_node *,
const char *, ...)); const char *, ...);
extern void warning_with_decl PARAMS ((union tree_node *, extern void warning_with_decl (union tree_node *,
const char *, ...)); const char *, ...);
extern void error_with_decl PARAMS ((union tree_node *, extern void error_with_decl (union tree_node *,
const char *, ...)); const char *, ...);
extern void announce_function PARAMS ((union tree_node *)); extern void announce_function (union tree_node *);
extern void error_for_asm PARAMS ((struct rtx_def *, extern void error_for_asm (struct rtx_def *,
const char *, ...)); const char *, ...);
extern void warning_for_asm PARAMS ((struct rtx_def *, extern void warning_for_asm (struct rtx_def *,
const char *, ...)); const char *, ...);
extern void warn_deprecated_use PARAMS ((union tree_node *)); extern void warn_deprecated_use (union tree_node *);
extern void output_clean_symbol_name PARAMS ((FILE *, const char *)); extern void output_clean_symbol_name (FILE *, const char *);
#ifdef BUFSIZ #ifdef BUFSIZ
extern void output_quoted_string PARAMS ((FILE *, const char *)); extern void output_quoted_string (FILE *, const char *);
extern void output_file_directive PARAMS ((FILE *, const char *)); extern void output_file_directive (FILE *, const char *);
#endif #endif
#ifdef BUFSIZ #ifdef BUFSIZ
/* N.B. Unlike all the others, fnotice is just gettext+fprintf, and /* N.B. Unlike all the others, fnotice is just gettext+fprintf, and
therefore it can have ATTRIBUTE_PRINTF. */ therefore it can have ATTRIBUTE_PRINTF. */
extern void fnotice PARAMS ((FILE *, const char *, ...)) extern void fnotice (FILE *, const char *, ...)
ATTRIBUTE_PRINTF_2; ATTRIBUTE_PRINTF_2;
#endif #endif
extern int wrapup_global_declarations PARAMS ((union tree_node **, int)); extern int wrapup_global_declarations (union tree_node **, int);
extern void check_global_declarations PARAMS ((union tree_node **, int)); extern void check_global_declarations (union tree_node **, int);
extern const char *progname; extern const char *progname;
extern const char *dump_base_name; extern const char *dump_base_name;
...@@ -106,10 +106,10 @@ extern struct ht *ident_hash; ...@@ -106,10 +106,10 @@ extern struct ht *ident_hash;
/* This function can be used by targets to set the flags originally /* This function can be used by targets to set the flags originally
implied by -ffast-math and -fno-fast-math. */ implied by -ffast-math and -fno-fast-math. */
extern void set_fast_math_flags PARAMS ((int)); extern void set_fast_math_flags (int);
/* Return true iff flags are set as if -ffast-math. */ /* Return true iff flags are set as if -ffast-math. */
extern bool fast_math_flags_set_p PARAMS ((void)); extern bool fast_math_flags_set_p (void);
/* The following functions accept a wide integer argument. Rather /* The following functions accept a wide integer argument. Rather
than having to cast on every function call, we use a macro instead. */ than having to cast on every function call, we use a macro instead. */
...@@ -118,7 +118,7 @@ extern bool fast_math_flags_set_p PARAMS ((void)); ...@@ -118,7 +118,7 @@ extern bool fast_math_flags_set_p PARAMS ((void));
#define exact_log2(N) exact_log2_wide ((unsigned HOST_WIDE_INT) (N)) #define exact_log2(N) exact_log2_wide ((unsigned HOST_WIDE_INT) (N))
#define floor_log2(N) floor_log2_wide ((unsigned HOST_WIDE_INT) (N)) #define floor_log2(N) floor_log2_wide ((unsigned HOST_WIDE_INT) (N))
#endif #endif
extern int exact_log2_wide PARAMS ((unsigned HOST_WIDE_INT)); extern int exact_log2_wide (unsigned HOST_WIDE_INT);
extern int floor_log2_wide PARAMS ((unsigned HOST_WIDE_INT)); extern int floor_log2_wide (unsigned HOST_WIDE_INT);
#endif /* ! GCC_TOPLEV_H */ #endif /* ! GCC_TOPLEV_H */
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