+Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
+
+ * print-rtl.c (get_insn_name): Remove prototype.
+
+ * toplev.h (progname): Declare const.
+
+ * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
+ init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
+ dump_sched_info, dump_local_alloc, regset_release_memory,
+ print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
+ error_with_file_and_line, error_with_decl, error_for_asm, error,
+ fatal, warning_with_file_and_line, warning_with_decl, warning,
+ pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
+ Remove redundant prototypes.
+
+ (notice, check_lang_option, report_file_and_line, vnotice,
+ mark_file_stack): Add static prototype.
+ (set_fatal_function): Add prototype.
+ (vnotice, report_file_and_line, set_fatal_function,
+ check_lang_option): Constify a char*.
+ (main): Prototype. Call return, not exit.
+
Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
extern int size_directive_output;
extern tree last_assemble_variable_decl;
-extern void init_decl_processing ();
-extern void init_obstacks ();
-extern void init_tree_codes ();
-extern void init_regs ();
-extern void init_optabs ();
-extern void init_stmt ();
-extern void init_reg_sets ();
-extern void dump_flow_info ();
-extern void dump_sched_info ();
-extern void dump_local_alloc ();
-extern void regset_release_memory ();
-
-extern void print_rtl ();
-extern void print_rtl_with_bb ();
-
-void rest_of_decl_compilation ();
-void error_with_file_and_line PVPROTO((const char *file,
- int line, const char *s, ...));
-void error_with_decl PVPROTO((tree decl, const char *s, ...));
-void error_for_asm PVPROTO((rtx insn, const char *s, ...));
-void notice PVPROTO((const char *s, ...));
-void error PVPROTO((const char *s, ...));
-void fatal PVPROTO((const char *s, ...));
-void warning_with_file_and_line PVPROTO((const char *file,
- int line, const char *s, ...));
-void warning_with_decl PVPROTO((tree decl, const char *s, ...));
-void warning PVPROTO((const char *s, ...));
-void pedwarn PVPROTO((const char *s, ...));
-void pedwarn_with_decl PVPROTO((tree decl, const char *s, ...));
-void pedwarn_with_file_and_line PVPROTO((const char *file,
- int line, const char *s, ...));
-void sorry PVPROTO((const char *s, ...));
+static void notice PVPROTO((const char *s, ...)) ATTRIBUTE_PRINTF_1;
static void set_target_switch PROTO((const char *));
static const char *decl_name PROTO((tree, int));
static void vmessage PROTO((const char *, const char *, va_list));
static void v_pedwarn_with_file_and_line PROTO((const char *, int,
const char *, va_list));
static void vsorry PROTO((const char *, va_list));
+extern void set_fatal_function PROTO((void (*)(const char *, va_list)));
static void float_signal PROTO((int)) ATTRIBUTE_NORETURN;
static void pipe_closed PROTO((int)) ATTRIBUTE_NORETURN;
#ifdef ASM_IDENTIFY_LANGUAGE
static void clean_dump_file PROTO((const char *));
static void compile_file PROTO((char *));
static void display_help PROTO ((void));
+static int check_lang_option PROTO ((const char *, const char *));
+static void report_file_and_line PROTO ((const char *, int, int));
+static void vnotice PROTO ((FILE *, const char *, va_list));
+static void mark_file_stack PROTO ((void *));
static void print_version PROTO((FILE *, const char *));
static int print_single_switch PROTO((FILE *, int, int, const char *,
/* Name of program invoked, sans directories. */
-char *progname;
+const char *progname;
/* Copy of arguments to main. */
int save_argc;
static void
vnotice (file, msgid, ap)
FILE *file;
- char *msgid;
+ const char *msgid;
va_list ap;
{
vfprintf (file, _(msgid), ap);
}
-void
+static void
notice VPROTO((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
static void
report_file_and_line (file, line, warn)
- char *file;
+ const char *file;
int line;
int warn;
{
void
set_fatal_function (f)
- void (*f) PROTO((char *, va_list));
+ void (*f) PROTO((const char *, va_list));
{
fatal_function = f;
}
static int
check_lang_option (option, lang_option)
- char * option;
- char * lang_option;
+ const char * option;
+ const char * lang_option;
{
lang_independent_options * indep_options;
int len;
long k;
- char * space;
+ const char * space;
/* Ignore NULL entries. */
if (option == NULL || lang_option == NULL)
Exit code is 35 if can't open files, 34 if fatal error,
33 if had nonfatal errors, else success. */
+extern int main PROTO ((int, char **));
+
int
main (argc, argv)
int argc;
if (!strcmp (argv[i], "--help"))
{
display_help ();
- exit (0);
+ return (0);
}
if (strings_processed != 0)
else if (!strcmp (str, "-help"))
{
display_help ();
- exit (0);
+ return (0);
}
else
error ("Invalid option `%s'", argv[i]);
#endif /* ! OS2 && ! VMS && (! _WIN32 || CYGWIN) && ! __INTERIX */
if (errorcount)
- exit (FATAL_EXIT_CODE);
+ return (FATAL_EXIT_CODE);
if (sorrycount)
- exit (FATAL_EXIT_CODE);
- exit (SUCCESS_EXIT_CODE);
- return 0;
+ return (FATAL_EXIT_CODE);
+ return (SUCCESS_EXIT_CODE);
}
\f
/* Decode -m switches. */