This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: another PROTO -> PARAMS installed [part 2/2]
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Patch: another PROTO -> PARAMS installed [part 2/2]
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 13 Jan 2000 19:48:42 -0500 (EST)
Installed.
Index: diagnostic.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/diagnostic.c,v
retrieving revision 1.3
diff -u -p -r1.3 diagnostic.c
--- diagnostic.c 2000/01/12 01:54:31 1.3
+++ diagnostic.c 2000/01/14 00:44:47
@@ -1,5 +1,5 @@
/* Top level of GNU C compiler
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -51,49 +51,50 @@ struct output_buffer
};
/* Prototypes. */
-static int doing_line_wrapping PROTO((void));
-static void init_output_buffer PROTO((struct output_buffer*,
- const char *, int));
-static const char *get_output_prefix PROTO((const struct output_buffer *));
-static int output_space_left PROTO((const struct output_buffer *));
-static void emit_output_prefix PROTO((struct output_buffer *));
-static void output_newline PROTO((struct output_buffer *));
-static void output_append PROTO((struct output_buffer *, const char *,
- const char *));
-static void output_puts PROTO((struct output_buffer *, const char *));
-static void dump_output PROTO((struct output_buffer *, FILE *));
-static const char *vbuild_message_string PROTO((const char *, va_list));
-static const char *build_message_string PVPROTO((const char *, ...));
-static const char *build_location_prefix PROTO((const char *, int, int));
-static void voutput_notice PROTO((struct output_buffer *, const char *,
- va_list));
-static void output_printf PVPROTO((struct output_buffer *, const char *, ...));
-static void line_wrapper_printf PVPROTO((FILE *, const char *, ...));
-static void vline_wrapper_message_with_location PROTO((const char *, int, int,
- const char *, va_list));
-static void notice PVPROTO((const char *s, ...)) ATTRIBUTE_PRINTF_1;
-static void v_message_with_file_and_line PROTO((const char *, int, int,
+static int doing_line_wrapping PARAMS ((void));
+static void init_output_buffer PARAMS ((struct output_buffer*,
+ const char *, int));
+static const char *get_output_prefix PARAMS ((const struct output_buffer *));
+static int output_space_left PARAMS ((const struct output_buffer *));
+static void emit_output_prefix PARAMS ((struct output_buffer *));
+static void output_newline PARAMS ((struct output_buffer *));
+static void output_append PARAMS ((struct output_buffer *, const char *,
+ const char *));
+static void output_puts PARAMS ((struct output_buffer *, const char *));
+static void dump_output PARAMS ((struct output_buffer *, FILE *));
+static const char *vbuild_message_string PARAMS ((const char *, va_list));
+static const char *build_message_string PARAMS ((const char *, ...));
+static const char *build_location_prefix PARAMS ((const char *, int, int));
+static void voutput_notice PARAMS ((struct output_buffer *, const char *,
+ va_list));
+static void output_printf PARAMS ((struct output_buffer *, const char *, ...));
+static void line_wrapper_printf PARAMS ((FILE *, const char *, ...));
+static void vline_wrapper_message_with_location PARAMS ((const char *, int,
+ int, const char *,
+ va_list));
+static void notice PARAMS ((const char *s, ...)) ATTRIBUTE_PRINTF_1;
+static void v_message_with_file_and_line PARAMS ((const char *, int, int,
+ const char *, va_list));
+static void v_message_with_decl PARAMS ((tree, int, const char *, va_list));
+static void file_and_line_for_asm PARAMS ((rtx, char **, int *));
+static void v_error_with_file_and_line PARAMS ((const char *, int,
const char *, va_list));
-static void v_message_with_decl PROTO((tree, int, const char *, va_list));
-static void file_and_line_for_asm PROTO((rtx, char **, int *));
-static void v_error_with_file_and_line PROTO((const char *, int,
- const char *, va_list));
-static void v_error_with_decl PROTO((tree, const char *, va_list));
-static void v_error_for_asm PROTO((rtx, const char *, va_list));
-static void verror PROTO((const char *, va_list));
-static void vfatal PROTO((const char *, va_list)) ATTRIBUTE_NORETURN;
-static void v_warning_with_file_and_line PROTO ((const char *, int,
- const char *, va_list));
-static void v_warning_with_decl PROTO((tree, const char *, va_list));
-static void v_warning_for_asm PROTO((rtx, const char *, va_list));
-static void vwarning PROTO((const char *, va_list));
-static void vpedwarn PROTO((const char *, va_list));
-static void v_pedwarn_with_decl PROTO((tree, 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));
-static void report_file_and_line PROTO ((const char *, int, int));
-static void vnotice PROTO ((FILE *, const char *, va_list));
+static void v_error_with_decl PARAMS ((tree, const char *, va_list));
+static void v_error_for_asm PARAMS ((rtx, const char *, va_list));
+static void verror PARAMS ((const char *, va_list));
+static void vfatal PARAMS ((const char *, va_list)) ATTRIBUTE_NORETURN;
+static void v_warning_with_file_and_line PARAMS ((const char *, int,
+ const char *, va_list));
+static void v_warning_with_decl PARAMS ((tree, const char *, va_list));
+static void v_warning_for_asm PARAMS ((rtx, const char *, va_list));
+static void vwarning PARAMS ((const char *, va_list));
+static void vpedwarn PARAMS ((const char *, va_list));
+static void v_pedwarn_with_decl PARAMS ((tree, const char *, va_list));
+static void v_pedwarn_with_file_and_line PARAMS ((const char *, int,
+ const char *, va_list));
+static void vsorry PARAMS ((const char *, va_list));
+static void report_file_and_line PARAMS ((const char *, int, int));
+static void vnotice PARAMS ((FILE *, const char *, va_list));
extern int rtl_dump_and_exit;
@@ -115,7 +116,7 @@ static int last_error_tick;
/* Called by report_error_function to print out function name.
* Default may be overridden by language front-ends. */
-void (*print_error_function) PROTO((const char *)) =
+void (*print_error_function) PARAMS ((const char *)) =
default_print_error_function;
/* Maximum characters per line in automatic line wrapping mode.
@@ -283,7 +284,7 @@ vbuild_message_string (msgid, ap)
printf. The caller is reponsible for freeing the memory. */
static const char *
-build_message_string VPROTO((const char *msgid, ...))
+build_message_string VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
@@ -341,7 +342,7 @@ voutput_notice (buffer, msgid, ap)
/* Format a message into BUFFER a la printf. */
static void
-output_printf VPROTO((struct output_buffer *buffer, const char *msgid, ...))
+output_printf VPARAMS ((struct output_buffer *buffer, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
struct output_buffer *buffer;
@@ -365,7 +366,7 @@ output_printf VPROTO((struct output_buff
with PREFIX. */
static void
-line_wrapper_printf VPROTO((FILE *file, const char *msgid, ...))
+line_wrapper_printf VPARAMS ((FILE *file, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
FILE *file;
@@ -422,7 +423,7 @@ vnotice (file, msgid, ap)
/* Print MSGID on stderr. */
static void
-notice VPROTO((const char *msgid, ...))
+notice VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
char *msgid;
@@ -656,7 +657,7 @@ verror (msgid, ap)
/* Report a fatal error at the current line number. Allow a front end to
intercept the message. */
-static void (*fatal_function) PROTO ((const char *, va_list));
+static void (*fatal_function) PARAMS ((const char *, va_list));
static void
vfatal (msgid, ap)
@@ -838,7 +839,7 @@ count_error (warningp)
/* Print a diagnistic MSGID on FILE. */
void
-fnotice VPROTO((FILE *file, const char *msgid, ...))
+fnotice VPARAMS ((FILE *file, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
FILE *file;
@@ -880,7 +881,7 @@ fatal_io_error (name)
/* Issue a pedantic warning MSGID. */
void
-pedwarn VPROTO((const char *msgid, ...))
+pedwarn VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
@@ -899,7 +900,7 @@ pedwarn VPROTO((const char *msgid, ...))
/* Issue a pedantic waring about DECL. */
void
-pedwarn_with_decl VPROTO((tree decl, const char *msgid, ...))
+pedwarn_with_decl VPARAMS ((tree decl, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
tree decl;
@@ -920,8 +921,8 @@ pedwarn_with_decl VPROTO((tree decl, con
/* Same as above but within the context FILE and LINE. */
void
-pedwarn_with_file_and_line VPROTO((const char *file, int line,
- const char *msgid, ...))
+pedwarn_with_file_and_line VPARAMS ((const char *file, int line,
+ const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *file;
@@ -944,7 +945,7 @@ pedwarn_with_file_and_line VPROTO((const
/* Just apologize with MSGID. */
void
-sorry VPROTO((const char *msgid, ...))
+sorry VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
@@ -1081,8 +1082,8 @@ report_error_function (file)
}
void
-error_with_file_and_line VPROTO((const char *file, int line,
- const char *msgid, ...))
+error_with_file_and_line VPARAMS ((const char *file, int line,
+ const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *file;
@@ -1104,7 +1105,7 @@ error_with_file_and_line VPROTO((const c
}
void
-error_with_decl VPROTO((tree decl, const char *msgid, ...))
+error_with_decl VPARAMS ((tree decl, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
tree decl;
@@ -1124,7 +1125,7 @@ error_with_decl VPROTO((tree decl, const
}
void
-error_for_asm VPROTO((rtx insn, const char *msgid, ...))
+error_for_asm VPARAMS ((rtx insn, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
rtx insn;
@@ -1144,7 +1145,7 @@ error_for_asm VPROTO((rtx insn, const ch
}
void
-error VPROTO((const char *msgid, ...))
+error VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
@@ -1165,13 +1166,13 @@ error VPROTO((const char *msgid, ...))
void
set_fatal_function (f)
- void (*f) PROTO ((const char *, va_list));
+ void (*f) PARAMS ((const char *, va_list));
{
fatal_function = f;
}
void
-fatal VPROTO((const char *msgid, ...))
+fatal VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
@@ -1216,8 +1217,8 @@ _fatal_insn_not_found (insn, file, line,
}
void
-warning_with_file_and_line VPROTO((const char *file, int line,
- const char *msgid, ...))
+warning_with_file_and_line VPARAMS ((const char *file, int line,
+ const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *file;
@@ -1239,7 +1240,7 @@ warning_with_file_and_line VPROTO((const
}
void
-warning_with_decl VPROTO((tree decl, const char *msgid, ...))
+warning_with_decl VPARAMS ((tree decl, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
tree decl;
@@ -1259,7 +1260,7 @@ warning_with_decl VPROTO((tree decl, con
}
void
-warning_for_asm VPROTO((rtx insn, const char *msgid, ...))
+warning_for_asm VPARAMS ((rtx insn, const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
rtx insn;
@@ -1279,7 +1280,7 @@ warning_for_asm VPROTO((rtx insn, const
}
void
-warning VPROTO((const char *msgid, ...))
+warning VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
Index: doprint.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doprint.c,v
retrieving revision 1.8
diff -u -p -r1.8 doprint.c
--- doprint.c 1999/12/13 08:01:44 1.8
+++ doprint.c 2000/01/14 00:44:47
@@ -1,5 +1,5 @@
/* Provide a version _doprnt in terms of fprintf.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98
This program is free software; you can redistribute it and/or modify it
@@ -204,10 +204,10 @@ _doprnt (format, ap, stream)
fflush(stdin); \
} while (0)
-static int checkit PVPROTO ((const char * format, ...)) ATTRIBUTE_PRINTF_1;
+static int checkit PARAMS ((const char * format, ...)) ATTRIBUTE_PRINTF_1;
static int
-checkit VPROTO ((const char* format, ...))
+checkit VPARAMS ((const char* format, ...))
{
va_list args;
int result;
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.141
diff -u -p -r1.141 dwarf2out.c
--- dwarf2out.c 2000/01/13 23:43:55 1.141
+++ dwarf2out.c 2000/01/14 00:44:50
@@ -1,5 +1,5 @@
/* Output Dwarf2 format symbol table information from the GNU C compiler.
- Copyright (C) 1992, 93, 95-98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1992, 93, 95-99, 2000 Free Software Foundation, Inc.
Contributed by Gary Funck (gary@intrepid.com).
Derived from DWARF 1 implementation of Ron Guilmette (rfg@monkeys.com).
Extensively modified by Jason Merrill (jason@cygnus.com).
@@ -199,26 +199,26 @@ static unsigned current_funcdef_fde;
/* Forward declarations for functions defined in this file. */
-static char *stripattributes PROTO((const char *));
-static const char *dwarf_cfi_name PROTO((unsigned));
-static dw_cfi_ref new_cfi PROTO((void));
-static void add_cfi PROTO((dw_cfi_ref *, dw_cfi_ref));
-static unsigned long size_of_uleb128 PROTO((unsigned long));
-static unsigned long size_of_sleb128 PROTO((long));
-static void output_uleb128 PROTO((unsigned long));
-static void output_sleb128 PROTO((long));
-static void add_fde_cfi PROTO((char *, dw_cfi_ref));
-static void lookup_cfa_1 PROTO((dw_cfi_ref, unsigned long *,
- long *));
-static void lookup_cfa PROTO((unsigned long *, long *));
-static void reg_save PROTO((char *, unsigned, unsigned,
- long));
-static void initial_return_save PROTO((rtx));
-static void output_cfi PROTO((dw_cfi_ref, dw_fde_ref));
-static void output_call_frame_info PROTO((int));
-static unsigned reg_number PROTO((rtx));
-static void dwarf2out_stack_adjust PROTO((rtx));
-static void dwarf2out_frame_debug_expr PROTO((rtx, char *));
+static char *stripattributes PARAMS ((const char *));
+static const char *dwarf_cfi_name PARAMS ((unsigned));
+static dw_cfi_ref new_cfi PARAMS ((void));
+static void add_cfi PARAMS ((dw_cfi_ref *, dw_cfi_ref));
+static unsigned long size_of_uleb128 PARAMS ((unsigned long));
+static unsigned long size_of_sleb128 PARAMS ((long));
+static void output_uleb128 PARAMS ((unsigned long));
+static void output_sleb128 PARAMS ((long));
+static void add_fde_cfi PARAMS ((char *, dw_cfi_ref));
+static void lookup_cfa_1 PARAMS ((dw_cfi_ref, unsigned long *,
+ long *));
+static void lookup_cfa PARAMS ((unsigned long *, long *));
+static void reg_save PARAMS ((char *, unsigned, unsigned,
+ long));
+static void initial_return_save PARAMS ((rtx));
+static void output_cfi PARAMS ((dw_cfi_ref, dw_fde_ref));
+static void output_call_frame_info PARAMS ((int));
+static unsigned reg_number PARAMS ((rtx));
+static void dwarf2out_stack_adjust PARAMS ((rtx));
+static void dwarf2out_frame_debug_expr PARAMS ((rtx, char *));
/* Definitions of defaults for assembler-dependent names of various
pseudo-ops and section names.
@@ -2332,186 +2332,191 @@ static int comp_unit_has_inlines;
/* Forward declarations for functions defined in this file. */
-static void addr_const_to_string PROTO((dyn_string_t, rtx));
-static char *addr_to_string PROTO((rtx));
-static int is_pseudo_reg PROTO((rtx));
-static tree type_main_variant PROTO((tree));
-static int is_tagged_type PROTO((tree));
-static const char *dwarf_tag_name PROTO((unsigned));
-static const char *dwarf_attr_name PROTO((unsigned));
-static const char *dwarf_form_name PROTO((unsigned));
-static const char *dwarf_stack_op_name PROTO((unsigned));
+static void addr_const_to_string PARAMS ((dyn_string_t, rtx));
+static char *addr_to_string PARAMS ((rtx));
+static int is_pseudo_reg PARAMS ((rtx));
+static tree type_main_variant PARAMS ((tree));
+static int is_tagged_type PARAMS ((tree));
+static const char *dwarf_tag_name PARAMS ((unsigned));
+static const char *dwarf_attr_name PARAMS ((unsigned));
+static const char *dwarf_form_name PARAMS ((unsigned));
+static const char *dwarf_stack_op_name PARAMS ((unsigned));
#if 0
-static const char *dwarf_type_encoding_name PROTO((unsigned));
+static const char *dwarf_type_encoding_name PARAMS ((unsigned));
#endif
-static tree decl_ultimate_origin PROTO((tree));
-static tree block_ultimate_origin PROTO((tree));
-static tree decl_class_context PROTO((tree));
-static void add_dwarf_attr PROTO((dw_die_ref, dw_attr_ref));
-static void add_AT_flag PROTO((dw_die_ref,
- enum dwarf_attribute,
- unsigned));
-static void add_AT_int PROTO((dw_die_ref,
- enum dwarf_attribute, long));
-static void add_AT_unsigned PROTO((dw_die_ref,
- enum dwarf_attribute,
- unsigned long));
-static void add_AT_long_long PROTO((dw_die_ref,
- enum dwarf_attribute,
- unsigned long, unsigned long));
-static void add_AT_float PROTO((dw_die_ref,
- enum dwarf_attribute,
- unsigned, long *));
-static void add_AT_string PROTO((dw_die_ref,
- enum dwarf_attribute,
- const char *));
-static void add_AT_die_ref PROTO((dw_die_ref,
- enum dwarf_attribute,
- dw_die_ref));
-static void add_AT_fde_ref PROTO((dw_die_ref,
- enum dwarf_attribute,
- unsigned));
-static void add_AT_loc PROTO((dw_die_ref,
- enum dwarf_attribute,
- dw_loc_descr_ref));
-static void add_AT_addr PROTO((dw_die_ref,
- enum dwarf_attribute, char *));
-static void add_AT_lbl_id PROTO((dw_die_ref,
- enum dwarf_attribute, char *));
-static void add_AT_lbl_offset PROTO((dw_die_ref,
- enum dwarf_attribute, char *));
-static dw_attr_ref get_AT PROTO((dw_die_ref,
- enum dwarf_attribute));
-static const char *get_AT_low_pc PROTO((dw_die_ref));
-static const char *get_AT_hi_pc PROTO((dw_die_ref));
-static const char *get_AT_string PROTO((dw_die_ref,
- enum dwarf_attribute));
-static int get_AT_flag PROTO((dw_die_ref,
- enum dwarf_attribute));
-static unsigned get_AT_unsigned PROTO((dw_die_ref,
- enum dwarf_attribute));
-static int is_c_family PROTO((void));
-static int is_fortran PROTO((void));
-static void remove_AT PROTO((dw_die_ref,
- enum dwarf_attribute));
-static void remove_children PROTO((dw_die_ref));
-static void add_child_die PROTO((dw_die_ref, dw_die_ref));
-static dw_die_ref new_die PROTO((enum dwarf_tag, dw_die_ref));
-static dw_die_ref lookup_type_die PROTO((tree));
-static void equate_type_number_to_die PROTO((tree, dw_die_ref));
-static dw_die_ref lookup_decl_die PROTO((tree));
-static void equate_decl_number_to_die PROTO((tree, dw_die_ref));
-static dw_loc_descr_ref new_loc_descr PROTO((enum dwarf_location_atom,
- unsigned long, unsigned long));
-static void add_loc_descr PROTO((dw_loc_descr_ref *,
- dw_loc_descr_ref));
-static void print_spaces PROTO((FILE *));
-static void print_die PROTO((dw_die_ref, FILE *));
-static void print_dwarf_line_table PROTO((FILE *));
-static void add_sibling_attributes PROTO((dw_die_ref));
-static void build_abbrev_table PROTO((dw_die_ref));
-static unsigned long size_of_string PROTO((const char *));
-static unsigned long size_of_loc_descr PROTO((dw_loc_descr_ref));
-static unsigned long size_of_locs PROTO((dw_loc_descr_ref));
-static int constant_size PROTO((long unsigned));
-static unsigned long size_of_die PROTO((dw_die_ref));
-static void calc_die_sizes PROTO((dw_die_ref));
-static unsigned long size_of_line_prolog PROTO((void));
-static unsigned long size_of_pubnames PROTO((void));
-static unsigned long size_of_aranges PROTO((void));
-static enum dwarf_form value_format PROTO((dw_attr_ref));
-static void output_value_format PROTO((dw_attr_ref));
-static void output_abbrev_section PROTO((void));
-static void output_loc_operands PROTO((dw_loc_descr_ref));
-static void output_die PROTO((dw_die_ref));
-static void output_compilation_unit_header PROTO((void));
-static const char *dwarf2_name PROTO((tree, int));
-static void add_pubname PROTO((tree, dw_die_ref));
-static void output_pubnames PROTO((void));
-static void add_arange PROTO((tree, dw_die_ref));
-static void output_aranges PROTO((void));
-static void output_line_info PROTO((void));
-static int is_body_block PROTO((tree));
-static dw_die_ref base_type_die PROTO((tree));
-static tree root_type PROTO((tree));
-static int is_base_type PROTO((tree));
-static dw_die_ref modified_type_die PROTO((tree, int, int, dw_die_ref));
-static int type_is_enum PROTO((tree));
-static dw_loc_descr_ref reg_loc_descriptor PROTO((rtx));
-static dw_loc_descr_ref based_loc_descr PROTO((unsigned, long));
-static int is_based_loc PROTO((rtx));
-static dw_loc_descr_ref mem_loc_descriptor PROTO((rtx, enum machine_mode mode));
-static dw_loc_descr_ref concat_loc_descriptor PROTO((rtx, rtx));
-static dw_loc_descr_ref loc_descriptor PROTO((rtx));
-static unsigned ceiling PROTO((unsigned, unsigned));
-static tree field_type PROTO((tree));
-static unsigned simple_type_align_in_bits PROTO((tree));
-static unsigned simple_type_size_in_bits PROTO((tree));
-static unsigned field_byte_offset PROTO((tree));
-static void add_AT_location_description PROTO((dw_die_ref,
- enum dwarf_attribute, rtx));
-static void add_data_member_location_attribute PROTO((dw_die_ref, tree));
-static void add_const_value_attribute PROTO((dw_die_ref, rtx));
-static void add_location_or_const_value_attribute PROTO((dw_die_ref, tree));
-static void add_name_attribute PROTO((dw_die_ref, const char *));
-static void add_bound_info PROTO((dw_die_ref,
- enum dwarf_attribute, tree));
-static void add_subscript_info PROTO((dw_die_ref, tree));
-static void add_byte_size_attribute PROTO((dw_die_ref, tree));
-static void add_bit_offset_attribute PROTO((dw_die_ref, tree));
-static void add_bit_size_attribute PROTO((dw_die_ref, tree));
-static void add_prototyped_attribute PROTO((dw_die_ref, tree));
-static void add_abstract_origin_attribute PROTO((dw_die_ref, tree));
-static void add_pure_or_virtual_attribute PROTO((dw_die_ref, tree));
-static void add_src_coords_attributes PROTO((dw_die_ref, tree));
-static void add_name_and_src_coords_attributes PROTO((dw_die_ref, tree));
-static void push_decl_scope PROTO((tree));
-static dw_die_ref scope_die_for PROTO((tree, dw_die_ref));
-static void pop_decl_scope PROTO((void));
-static void add_type_attribute PROTO((dw_die_ref, tree, int, int,
- dw_die_ref));
-static char *type_tag PROTO((tree));
-static tree member_declared_type PROTO((tree));
+static tree decl_ultimate_origin PARAMS ((tree));
+static tree block_ultimate_origin PARAMS ((tree));
+static tree decl_class_context PARAMS ((tree));
+static void add_dwarf_attr PARAMS ((dw_die_ref, dw_attr_ref));
+static void add_AT_flag PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ unsigned));
+static void add_AT_int PARAMS ((dw_die_ref,
+ enum dwarf_attribute, long));
+static void add_AT_unsigned PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ unsigned long));
+static void add_AT_long_long PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ unsigned long,
+ unsigned long));
+static void add_AT_float PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ unsigned, long *));
+static void add_AT_string PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ const char *));
+static void add_AT_die_ref PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ dw_die_ref));
+static void add_AT_fde_ref PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ unsigned));
+static void add_AT_loc PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ dw_loc_descr_ref));
+static void add_AT_addr PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ char *));
+static void add_AT_lbl_id PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ char *));
+static void add_AT_lbl_offset PARAMS ((dw_die_ref,
+ enum dwarf_attribute,
+ char *));
+static dw_attr_ref get_AT PARAMS ((dw_die_ref,
+ enum dwarf_attribute));
+static const char *get_AT_low_pc PARAMS ((dw_die_ref));
+static const char *get_AT_hi_pc PARAMS ((dw_die_ref));
+static const char *get_AT_string PARAMS ((dw_die_ref,
+ enum dwarf_attribute));
+static int get_AT_flag PARAMS ((dw_die_ref,
+ enum dwarf_attribute));
+static unsigned get_AT_unsigned PARAMS ((dw_die_ref,
+ enum dwarf_attribute));
+static int is_c_family PARAMS ((void));
+static int is_fortran PARAMS ((void));
+static void remove_AT PARAMS ((dw_die_ref,
+ enum dwarf_attribute));
+static void remove_children PARAMS ((dw_die_ref));
+static void add_child_die PARAMS ((dw_die_ref, dw_die_ref));
+static dw_die_ref new_die PARAMS ((enum dwarf_tag, dw_die_ref));
+static dw_die_ref lookup_type_die PARAMS ((tree));
+static void equate_type_number_to_die PARAMS ((tree, dw_die_ref));
+static dw_die_ref lookup_decl_die PARAMS ((tree));
+static void equate_decl_number_to_die PARAMS ((tree, dw_die_ref));
+static dw_loc_descr_ref new_loc_descr PARAMS ((enum dwarf_location_atom,
+ unsigned long,
+ unsigned long));
+static void add_loc_descr PARAMS ((dw_loc_descr_ref *,
+ dw_loc_descr_ref));
+static void print_spaces PARAMS ((FILE *));
+static void print_die PARAMS ((dw_die_ref, FILE *));
+static void print_dwarf_line_table PARAMS ((FILE *));
+static void add_sibling_attributes PARAMS ((dw_die_ref));
+static void build_abbrev_table PARAMS ((dw_die_ref));
+static unsigned long size_of_string PARAMS ((const char *));
+static unsigned long size_of_loc_descr PARAMS ((dw_loc_descr_ref));
+static unsigned long size_of_locs PARAMS ((dw_loc_descr_ref));
+static int constant_size PARAMS ((long unsigned));
+static unsigned long size_of_die PARAMS ((dw_die_ref));
+static void calc_die_sizes PARAMS ((dw_die_ref));
+static unsigned long size_of_line_prolog PARAMS ((void));
+static unsigned long size_of_pubnames PARAMS ((void));
+static unsigned long size_of_aranges PARAMS ((void));
+static enum dwarf_form value_format PARAMS ((dw_attr_ref));
+static void output_value_format PARAMS ((dw_attr_ref));
+static void output_abbrev_section PARAMS ((void));
+static void output_loc_operands PARAMS ((dw_loc_descr_ref));
+static void output_die PARAMS ((dw_die_ref));
+static void output_compilation_unit_header PARAMS ((void));
+static const char *dwarf2_name PARAMS ((tree, int));
+static void add_pubname PARAMS ((tree, dw_die_ref));
+static void output_pubnames PARAMS ((void));
+static void add_arange PARAMS ((tree, dw_die_ref));
+static void output_aranges PARAMS ((void));
+static void output_line_info PARAMS ((void));
+static int is_body_block PARAMS ((tree));
+static dw_die_ref base_type_die PARAMS ((tree));
+static tree root_type PARAMS ((tree));
+static int is_base_type PARAMS ((tree));
+static dw_die_ref modified_type_die PARAMS ((tree, int, int, dw_die_ref));
+static int type_is_enum PARAMS ((tree));
+static dw_loc_descr_ref reg_loc_descriptor PARAMS ((rtx));
+static dw_loc_descr_ref based_loc_descr PARAMS ((unsigned, long));
+static int is_based_loc PARAMS ((rtx));
+static dw_loc_descr_ref mem_loc_descriptor PARAMS ((rtx, enum machine_mode mode));
+static dw_loc_descr_ref concat_loc_descriptor PARAMS ((rtx, rtx));
+static dw_loc_descr_ref loc_descriptor PARAMS ((rtx));
+static unsigned ceiling PARAMS ((unsigned, unsigned));
+static tree field_type PARAMS ((tree));
+static unsigned simple_type_align_in_bits PARAMS ((tree));
+static unsigned simple_type_size_in_bits PARAMS ((tree));
+static unsigned field_byte_offset PARAMS ((tree));
+static void add_AT_location_description PARAMS ((dw_die_ref,
+ enum dwarf_attribute, rtx));
+static void add_data_member_location_attribute PARAMS ((dw_die_ref, tree));
+static void add_const_value_attribute PARAMS ((dw_die_ref, rtx));
+static void add_location_or_const_value_attribute PARAMS ((dw_die_ref, tree));
+static void add_name_attribute PARAMS ((dw_die_ref, const char *));
+static void add_bound_info PARAMS ((dw_die_ref,
+ enum dwarf_attribute, tree));
+static void add_subscript_info PARAMS ((dw_die_ref, tree));
+static void add_byte_size_attribute PARAMS ((dw_die_ref, tree));
+static void add_bit_offset_attribute PARAMS ((dw_die_ref, tree));
+static void add_bit_size_attribute PARAMS ((dw_die_ref, tree));
+static void add_prototyped_attribute PARAMS ((dw_die_ref, tree));
+static void add_abstract_origin_attribute PARAMS ((dw_die_ref, tree));
+static void add_pure_or_virtual_attribute PARAMS ((dw_die_ref, tree));
+static void add_src_coords_attributes PARAMS ((dw_die_ref, tree));
+static void add_name_and_src_coords_attributes PARAMS ((dw_die_ref, tree));
+static void push_decl_scope PARAMS ((tree));
+static dw_die_ref scope_die_for PARAMS ((tree, dw_die_ref));
+static void pop_decl_scope PARAMS ((void));
+static void add_type_attribute PARAMS ((dw_die_ref, tree, int, int,
+ dw_die_ref));
+static char *type_tag PARAMS ((tree));
+static tree member_declared_type PARAMS ((tree));
#if 0
-static char *decl_start_label PROTO((tree));
+static char *decl_start_label PARAMS ((tree));
#endif
-static void gen_array_type_die PROTO((tree, dw_die_ref));
-static void gen_set_type_die PROTO((tree, dw_die_ref));
+static void gen_array_type_die PARAMS ((tree, dw_die_ref));
+static void gen_set_type_die PARAMS ((tree, dw_die_ref));
#if 0
-static void gen_entry_point_die PROTO((tree, dw_die_ref));
+static void gen_entry_point_die PARAMS ((tree, dw_die_ref));
#endif
-static void gen_inlined_enumeration_type_die PROTO((tree, dw_die_ref));
-static void gen_inlined_structure_type_die PROTO((tree, dw_die_ref));
-static void gen_inlined_union_type_die PROTO((tree, dw_die_ref));
-static void gen_enumeration_type_die PROTO((tree, dw_die_ref));
-static dw_die_ref gen_formal_parameter_die PROTO((tree, dw_die_ref));
-static void gen_unspecified_parameters_die PROTO((tree, dw_die_ref));
-static void gen_formal_types_die PROTO((tree, dw_die_ref));
-static void gen_subprogram_die PROTO((tree, dw_die_ref));
-static void gen_variable_die PROTO((tree, dw_die_ref));
-static void gen_label_die PROTO((tree, dw_die_ref));
-static void gen_lexical_block_die PROTO((tree, dw_die_ref, int));
-static void gen_inlined_subroutine_die PROTO((tree, dw_die_ref, int));
-static void gen_field_die PROTO((tree, dw_die_ref));
-static void gen_ptr_to_mbr_type_die PROTO((tree, dw_die_ref));
-static dw_die_ref gen_compile_unit_die PROTO((const char *));
-static void gen_string_type_die PROTO((tree, dw_die_ref));
-static void gen_inheritance_die PROTO((tree, dw_die_ref));
-static void gen_member_die PROTO((tree, dw_die_ref));
-static void gen_struct_or_union_type_die PROTO((tree, dw_die_ref));
-static void gen_subroutine_type_die PROTO((tree, dw_die_ref));
-static void gen_typedef_die PROTO((tree, dw_die_ref));
-static void gen_type_die PROTO((tree, dw_die_ref));
-static void gen_tagged_type_instantiation_die PROTO((tree, dw_die_ref));
-static void gen_block_die PROTO((tree, dw_die_ref, int));
-static void decls_for_scope PROTO((tree, dw_die_ref, int));
-static int is_redundant_typedef PROTO((tree));
-static void gen_decl_die PROTO((tree, dw_die_ref));
-static unsigned lookup_filename PROTO((const char *));
-static void add_incomplete_type PROTO((tree));
-static void retry_incomplete_types PROTO((void));
-static void gen_type_die_for_member PROTO((tree, tree, dw_die_ref));
-static void gen_abstract_function PROTO((tree));
+static void gen_inlined_enumeration_type_die PARAMS ((tree, dw_die_ref));
+static void gen_inlined_structure_type_die PARAMS ((tree, dw_die_ref));
+static void gen_inlined_union_type_die PARAMS ((tree, dw_die_ref));
+static void gen_enumeration_type_die PARAMS ((tree, dw_die_ref));
+static dw_die_ref gen_formal_parameter_die PARAMS ((tree, dw_die_ref));
+static void gen_unspecified_parameters_die PARAMS ((tree, dw_die_ref));
+static void gen_formal_types_die PARAMS ((tree, dw_die_ref));
+static void gen_subprogram_die PARAMS ((tree, dw_die_ref));
+static void gen_variable_die PARAMS ((tree, dw_die_ref));
+static void gen_label_die PARAMS ((tree, dw_die_ref));
+static void gen_lexical_block_die PARAMS ((tree, dw_die_ref, int));
+static void gen_inlined_subroutine_die PARAMS ((tree, dw_die_ref, int));
+static void gen_field_die PARAMS ((tree, dw_die_ref));
+static void gen_ptr_to_mbr_type_die PARAMS ((tree, dw_die_ref));
+static dw_die_ref gen_compile_unit_die PARAMS ((const char *));
+static void gen_string_type_die PARAMS ((tree, dw_die_ref));
+static void gen_inheritance_die PARAMS ((tree, dw_die_ref));
+static void gen_member_die PARAMS ((tree, dw_die_ref));
+static void gen_struct_or_union_type_die PARAMS ((tree, dw_die_ref));
+static void gen_subroutine_type_die PARAMS ((tree, dw_die_ref));
+static void gen_typedef_die PARAMS ((tree, dw_die_ref));
+static void gen_type_die PARAMS ((tree, dw_die_ref));
+static void gen_tagged_type_instantiation_die PARAMS ((tree, dw_die_ref));
+static void gen_block_die PARAMS ((tree, dw_die_ref, int));
+static void decls_for_scope PARAMS ((tree, dw_die_ref, int));
+static int is_redundant_typedef PARAMS ((tree));
+static void gen_decl_die PARAMS ((tree, dw_die_ref));
+static unsigned lookup_filename PARAMS ((const char *));
+static void add_incomplete_type PARAMS ((tree));
+static void retry_incomplete_types PARAMS ((void));
+static void gen_type_die_for_member PARAMS ((tree, tree, dw_die_ref));
+static void gen_abstract_function PARAMS ((tree));
/* Section names used to hold DWARF debugging information. */
#ifndef DEBUG_INFO_SECTION
@@ -2632,11 +2637,11 @@ static char debug_line_section_label[MAX
/* We allow a language front-end to designate a function that is to be
called to "demangle" any name before it it put into a DIE. */
-static const char *(*demangle_name_func) PROTO((const char *));
+static const char *(*demangle_name_func) PARAMS ((const char *));
void
dwarf2out_set_demangle_name_func (func)
- const char *(*func) PROTO((const char *));
+ const char *(*func) PARAMS ((const char *));
{
demangle_name_func = func;
}
Index: dwarf2out.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.h,v
retrieving revision 1.4
diff -u -p -r1.4 dwarf2out.h
--- dwarf2out.h 1999/08/10 13:28:24 1.4
+++ dwarf2out.h 2000/01/14 00:44:50
@@ -1,5 +1,5 @@
/* dwarf2out.h - Various declarations for functions found in dwarf2out.c
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -18,24 +18,24 @@ along with GNU CC; see the file COPYING.
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-extern void dwarf2out_init PROTO ((FILE *asm_out_file,
- char *main_input_filename));
-extern void dwarf2out_finish PROTO ((void));
-
-extern void dwarf2out_define PROTO ((unsigned, const char *));
-extern void dwarf2out_undef PROTO ((unsigned, const char *));
-extern void dwarf2out_start_source_file PROTO ((const char *));
-extern void dwarf2out_end_source_file PROTO ((void));
-
-extern void dwarf2out_begin_block PROTO ((unsigned));
-extern void dwarf2out_end_block PROTO ((unsigned));
-extern void dwarf2out_label PROTO ((rtx));
-extern void dwarf2out_decl PROTO ((tree));
-extern void dwarf2out_line PROTO ((const char *, unsigned));
-extern void dwarf2out_frame_init PROTO ((void));
-extern void dwarf2out_frame_debug PROTO ((rtx));
-extern void dwarf2out_frame_finish PROTO ((void));
+extern void dwarf2out_init PARAMS ((FILE *asm_out_file,
+ char *main_input_filename));
+extern void dwarf2out_finish PARAMS ((void));
+
+extern void dwarf2out_define PARAMS ((unsigned, const char *));
+extern void dwarf2out_undef PARAMS ((unsigned, const char *));
+extern void dwarf2out_start_source_file PARAMS ((const char *));
+extern void dwarf2out_end_source_file PARAMS ((void));
+
+extern void dwarf2out_begin_block PARAMS ((unsigned));
+extern void dwarf2out_end_block PARAMS ((unsigned));
+extern void dwarf2out_label PARAMS ((rtx));
+extern void dwarf2out_decl PARAMS ((tree));
+extern void dwarf2out_line PARAMS ((const char *, unsigned));
+extern void dwarf2out_frame_init PARAMS ((void));
+extern void dwarf2out_frame_debug PARAMS ((rtx));
+extern void dwarf2out_frame_finish PARAMS ((void));
-extern void debug_dwarf PROTO ((void));
+extern void debug_dwarf PARAMS ((void));
struct die_struct;
-extern void debug_dwarf_die PROTO ((struct die_struct *));
+extern void debug_dwarf_die PARAMS ((struct die_struct *));
Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarfout.c,v
retrieving revision 1.49
diff -u -p -r1.49 dwarfout.c
--- dwarfout.c 2000/01/06 14:29:08 1.49
+++ dwarfout.c 2000/01/14 00:44:52
@@ -1,5 +1,5 @@
/* Output Dwarf format symbol table information from the GNU C compiler.
- Copyright (C) 1992, 1993, 95-98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1993, 95-99, 2000 Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@monkeys.com) of Network Computing Devices.
This file is part of GNU CC.
@@ -38,7 +38,7 @@ Boston, MA 02111-1307, USA. */
#if defined(DWARF_TIMESTAMPS)
#if !defined(POSIX)
-extern time_t time PROTO ((time_t *)); /* FIXME: use NEED_DECLARATION_TIME */
+extern time_t time PARAMS ((time_t *)); /* FIXME: use NEED_DECLARATION_TIME */
#endif /* !defined(POSIX) */
#endif /* defined(DWARF_TIMESTAMPS) */
@@ -315,140 +315,140 @@ static int in_class;
/* Forward declarations for functions defined in this file. */
-static const char *dwarf_tag_name PROTO((unsigned));
-static const char *dwarf_attr_name PROTO((unsigned));
-static const char *dwarf_stack_op_name PROTO((unsigned));
-static const char *dwarf_typemod_name PROTO((unsigned));
-static const char *dwarf_fmt_byte_name PROTO((unsigned));
-static const char *dwarf_fund_type_name PROTO((unsigned));
-static tree decl_ultimate_origin PROTO((tree));
-static tree block_ultimate_origin PROTO((tree));
-static tree decl_class_context PROTO((tree));
+static const char *dwarf_tag_name PARAMS ((unsigned));
+static const char *dwarf_attr_name PARAMS ((unsigned));
+static const char *dwarf_stack_op_name PARAMS ((unsigned));
+static const char *dwarf_typemod_name PARAMS ((unsigned));
+static const char *dwarf_fmt_byte_name PARAMS ((unsigned));
+static const char *dwarf_fund_type_name PARAMS ((unsigned));
+static tree decl_ultimate_origin PARAMS ((tree));
+static tree block_ultimate_origin PARAMS ((tree));
+static tree decl_class_context PARAMS ((tree));
#if 0
-static void output_unsigned_leb128 PROTO((unsigned long));
-static void output_signed_leb128 PROTO((long));
+static void output_unsigned_leb128 PARAMS ((unsigned long));
+static void output_signed_leb128 PARAMS ((long));
#endif
-static inline int is_body_block PROTO((tree));
-static int fundamental_type_code PROTO((tree));
-static tree root_type_1 PROTO((tree, int));
-static tree root_type PROTO((tree));
-static void write_modifier_bytes_1 PROTO((tree, int, int, int));
-static void write_modifier_bytes PROTO((tree, int, int));
-static inline int type_is_fundamental PROTO((tree));
-static void equate_decl_number_to_die_number PROTO((tree));
-static inline void equate_type_number_to_die_number PROTO((tree));
-static void output_reg_number PROTO((rtx));
-static void output_mem_loc_descriptor PROTO((rtx));
-static void output_loc_descriptor PROTO((rtx));
-static void output_bound_representation PROTO((tree, unsigned, int));
-static void output_enumeral_list PROTO((tree));
-static inline unsigned ceiling PROTO((unsigned, unsigned));
-static inline tree field_type PROTO((tree));
-static inline unsigned simple_type_align_in_bits PROTO((tree));
-static inline unsigned simple_type_size_in_bits PROTO((tree));
-static unsigned field_byte_offset PROTO((tree));
-static inline void sibling_attribute PROTO((void));
-static void location_attribute PROTO((rtx));
-static void data_member_location_attribute PROTO((tree));
-static void const_value_attribute PROTO((rtx));
-static void location_or_const_value_attribute PROTO((tree));
-static inline void name_attribute PROTO((const char *));
-static inline void fund_type_attribute PROTO((unsigned));
-static void mod_fund_type_attribute PROTO((tree, int, int));
-static inline void user_def_type_attribute PROTO((tree));
-static void mod_u_d_type_attribute PROTO((tree, int, int));
+static inline int is_body_block PARAMS ((tree));
+static int fundamental_type_code PARAMS ((tree));
+static tree root_type_1 PARAMS ((tree, int));
+static tree root_type PARAMS ((tree));
+static void write_modifier_bytes_1 PARAMS ((tree, int, int, int));
+static void write_modifier_bytes PARAMS ((tree, int, int));
+static inline int type_is_fundamental PARAMS ((tree));
+static void equate_decl_number_to_die_number PARAMS ((tree));
+static inline void equate_type_number_to_die_number PARAMS ((tree));
+static void output_reg_number PARAMS ((rtx));
+static void output_mem_loc_descriptor PARAMS ((rtx));
+static void output_loc_descriptor PARAMS ((rtx));
+static void output_bound_representation PARAMS ((tree, unsigned, int));
+static void output_enumeral_list PARAMS ((tree));
+static inline unsigned ceiling PARAMS ((unsigned, unsigned));
+static inline tree field_type PARAMS ((tree));
+static inline unsigned simple_type_align_in_bits PARAMS ((tree));
+static inline unsigned simple_type_size_in_bits PARAMS ((tree));
+static unsigned field_byte_offset PARAMS ((tree));
+static inline void sibling_attribute PARAMS ((void));
+static void location_attribute PARAMS ((rtx));
+static void data_member_location_attribute PARAMS ((tree));
+static void const_value_attribute PARAMS ((rtx));
+static void location_or_const_value_attribute PARAMS ((tree));
+static inline void name_attribute PARAMS ((const char *));
+static inline void fund_type_attribute PARAMS ((unsigned));
+static void mod_fund_type_attribute PARAMS ((tree, int, int));
+static inline void user_def_type_attribute PARAMS ((tree));
+static void mod_u_d_type_attribute PARAMS ((tree, int, int));
#ifdef USE_ORDERING_ATTRIBUTE
-static inline void ordering_attribute PROTO((unsigned));
+static inline void ordering_attribute PARAMS ((unsigned));
#endif /* defined(USE_ORDERING_ATTRIBUTE) */
-static void subscript_data_attribute PROTO((tree));
-static void byte_size_attribute PROTO((tree));
-static inline void bit_offset_attribute PROTO((tree));
-static inline void bit_size_attribute PROTO((tree));
-static inline void element_list_attribute PROTO((tree));
-static inline void stmt_list_attribute PROTO((const char *));
-static inline void low_pc_attribute PROTO((const char *));
-static inline void high_pc_attribute PROTO((const char *));
-static inline void body_begin_attribute PROTO((const char *));
-static inline void body_end_attribute PROTO((const char *));
-static inline void language_attribute PROTO((unsigned));
-static inline void member_attribute PROTO((tree));
+static void subscript_data_attribute PARAMS ((tree));
+static void byte_size_attribute PARAMS ((tree));
+static inline void bit_offset_attribute PARAMS ((tree));
+static inline void bit_size_attribute PARAMS ((tree));
+static inline void element_list_attribute PARAMS ((tree));
+static inline void stmt_list_attribute PARAMS ((const char *));
+static inline void low_pc_attribute PARAMS ((const char *));
+static inline void high_pc_attribute PARAMS ((const char *));
+static inline void body_begin_attribute PARAMS ((const char *));
+static inline void body_end_attribute PARAMS ((const char *));
+static inline void language_attribute PARAMS ((unsigned));
+static inline void member_attribute PARAMS ((tree));
#if 0
-static inline void string_length_attribute PROTO((tree));
+static inline void string_length_attribute PARAMS ((tree));
#endif
-static inline void comp_dir_attribute PROTO((const char *));
-static inline void sf_names_attribute PROTO((const char *));
-static inline void src_info_attribute PROTO((const char *));
-static inline void mac_info_attribute PROTO((const char *));
-static inline void prototyped_attribute PROTO((tree));
-static inline void producer_attribute PROTO((const char *));
-static inline void inline_attribute PROTO((tree));
-static inline void containing_type_attribute PROTO((tree));
-static inline void abstract_origin_attribute PROTO((tree));
+static inline void comp_dir_attribute PARAMS ((const char *));
+static inline void sf_names_attribute PARAMS ((const char *));
+static inline void src_info_attribute PARAMS ((const char *));
+static inline void mac_info_attribute PARAMS ((const char *));
+static inline void prototyped_attribute PARAMS ((tree));
+static inline void producer_attribute PARAMS ((const char *));
+static inline void inline_attribute PARAMS ((tree));
+static inline void containing_type_attribute PARAMS ((tree));
+static inline void abstract_origin_attribute PARAMS ((tree));
#ifdef DWARF_DECL_COORDINATES
-static inline void src_coords_attribute PROTO((unsigned, unsigned));
+static inline void src_coords_attribute PARAMS ((unsigned, unsigned));
#endif /* defined(DWARF_DECL_COORDINATES) */
-static inline void pure_or_virtual_attribute PROTO((tree));
-static void name_and_src_coords_attributes PROTO((tree));
-static void type_attribute PROTO((tree, int, int));
-static char *type_tag PROTO((tree));
-static inline void dienum_push PROTO((void));
-static inline void dienum_pop PROTO((void));
-static inline tree member_declared_type PROTO((tree));
-static char *function_start_label PROTO((tree));
-static void output_array_type_die PROTO((void *));
-static void output_set_type_die PROTO((void *));
+static inline void pure_or_virtual_attribute PARAMS ((tree));
+static void name_and_src_coords_attributes PARAMS ((tree));
+static void type_attribute PARAMS ((tree, int, int));
+static char *type_tag PARAMS ((tree));
+static inline void dienum_push PARAMS ((void));
+static inline void dienum_pop PARAMS ((void));
+static inline tree member_declared_type PARAMS ((tree));
+static char *function_start_label PARAMS ((tree));
+static void output_array_type_die PARAMS ((void *));
+static void output_set_type_die PARAMS ((void *));
#if 0
-static void output_entry_point_die PROTO((void *));
+static void output_entry_point_die PARAMS ((void *));
#endif
-static void output_inlined_enumeration_type_die PROTO((void *));
-static void output_inlined_structure_type_die PROTO((void *));
-static void output_inlined_union_type_die PROTO((void *));
-static void output_enumeration_type_die PROTO((void *));
-static void output_formal_parameter_die PROTO((void *));
-static void output_global_subroutine_die PROTO((void *));
-static void output_global_variable_die PROTO((void *));
-static void output_label_die PROTO((void *));
-static void output_lexical_block_die PROTO((void *));
-static void output_inlined_subroutine_die PROTO((void *));
-static void output_local_variable_die PROTO((void *));
-static void output_member_die PROTO((void *));
+static void output_inlined_enumeration_type_die PARAMS ((void *));
+static void output_inlined_structure_type_die PARAMS ((void *));
+static void output_inlined_union_type_die PARAMS ((void *));
+static void output_enumeration_type_die PARAMS ((void *));
+static void output_formal_parameter_die PARAMS ((void *));
+static void output_global_subroutine_die PARAMS ((void *));
+static void output_global_variable_die PARAMS ((void *));
+static void output_label_die PARAMS ((void *));
+static void output_lexical_block_die PARAMS ((void *));
+static void output_inlined_subroutine_die PARAMS ((void *));
+static void output_local_variable_die PARAMS ((void *));
+static void output_member_die PARAMS ((void *));
#if 0
-static void output_pointer_type_die PROTO((void *));
-static void output_reference_type_die PROTO((void *));
+static void output_pointer_type_die PARAMS ((void *));
+static void output_reference_type_die PARAMS ((void *));
#endif
-static void output_ptr_to_mbr_type_die PROTO((void *));
-static void output_compile_unit_die PROTO((void *));
-static void output_string_type_die PROTO((void *));
-static void output_inheritance_die PROTO((void *));
-static void output_structure_type_die PROTO((void *));
-static void output_local_subroutine_die PROTO((void *));
-static void output_subroutine_type_die PROTO((void *));
-static void output_typedef_die PROTO((void *));
-static void output_union_type_die PROTO((void *));
-static void output_unspecified_parameters_die PROTO((void *));
-static void output_padded_null_die PROTO((void *));
-static void output_die PROTO((void (*) PROTO((void *)), void *));
-static void end_sibling_chain PROTO((void));
-static void output_formal_types PROTO((tree));
-static void pend_type PROTO((tree));
-static int type_ok_for_scope PROTO((tree, tree));
-static void output_pending_types_for_scope PROTO((tree));
-static void output_type PROTO((tree, tree));
-static void output_tagged_type_instantiation PROTO((tree));
-static void output_block PROTO((tree, int));
-static void output_decls_for_scope PROTO((tree, int));
-static void output_decl PROTO((tree, tree));
-static void shuffle_filename_entry PROTO((filename_entry *));
-static void generate_new_sfname_entry PROTO((void));
-static unsigned lookup_filename PROTO((const char *));
-static void generate_srcinfo_entry PROTO((unsigned, unsigned));
-static void generate_macinfo_entry PROTO((const char *, const char *));
-static int is_pseudo_reg PROTO((rtx));
-static tree type_main_variant PROTO((tree));
-static int is_tagged_type PROTO((tree));
-static int is_redundant_typedef PROTO((tree));
-static void add_incomplete_type PROTO((tree));
-static void retry_incomplete_types PROTO((void));
+static void output_ptr_to_mbr_type_die PARAMS ((void *));
+static void output_compile_unit_die PARAMS ((void *));
+static void output_string_type_die PARAMS ((void *));
+static void output_inheritance_die PARAMS ((void *));
+static void output_structure_type_die PARAMS ((void *));
+static void output_local_subroutine_die PARAMS ((void *));
+static void output_subroutine_type_die PARAMS ((void *));
+static void output_typedef_die PARAMS ((void *));
+static void output_union_type_die PARAMS ((void *));
+static void output_unspecified_parameters_die PARAMS ((void *));
+static void output_padded_null_die PARAMS ((void *));
+static void output_die PARAMS ((void (*)(void *), void *));
+static void end_sibling_chain PARAMS ((void));
+static void output_formal_types PARAMS ((tree));
+static void pend_type PARAMS ((tree));
+static int type_ok_for_scope PARAMS ((tree, tree));
+static void output_pending_types_for_scope PARAMS ((tree));
+static void output_type PARAMS ((tree, tree));
+static void output_tagged_type_instantiation PARAMS ((tree));
+static void output_block PARAMS ((tree, int));
+static void output_decls_for_scope PARAMS ((tree, int));
+static void output_decl PARAMS ((tree, tree));
+static void shuffle_filename_entry PARAMS ((filename_entry *));
+static void generate_new_sfname_entry PARAMS ((void));
+static unsigned lookup_filename PARAMS ((const char *));
+static void generate_srcinfo_entry PARAMS ((unsigned, unsigned));
+static void generate_macinfo_entry PARAMS ((const char *, const char *));
+static int is_pseudo_reg PARAMS ((rtx));
+static tree type_main_variant PARAMS ((tree));
+static int is_tagged_type PARAMS ((tree));
+static int is_redundant_typedef PARAMS ((tree));
+static void add_incomplete_type PARAMS ((tree));
+static void retry_incomplete_types PARAMS ((void));
/* Definitions of defaults for assembler-dependent names of various
pseudo-ops and section names.
@@ -3999,7 +3999,7 @@ output_padded_null_die (arg)
static void
output_die (die_specific_output_function, param)
- register void (*die_specific_output_function) PROTO ((void *));
+ register void (*die_specific_output_function) PARAMS ((void *));
register void *param;
{
char begin_label[MAX_ARTIFICIAL_LABEL_BYTES];
@@ -5094,7 +5094,7 @@ output_decl (decl, containing_scope)
function. */
{
- register void (*func) PROTO((void *));
+ register void (*func) PARAMS ((void *));
register tree origin = decl_ultimate_origin (decl);
if (origin != NULL && TREE_CODE (origin) == PARM_DECL)
Index: dwarfout.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarfout.h,v
retrieving revision 1.4
diff -u -p -r1.4 dwarfout.h
--- dwarfout.h 1999/10/26 02:54:22 1.4
+++ dwarfout.h 2000/01/14 00:44:52
@@ -1,5 +1,5 @@
/* dwarfout.h - Various declarations for functions found in dwarfout.c
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -18,25 +18,25 @@ along with GNU CC; see the file COPYING.
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-extern void dwarfout_init PROTO ((FILE *asm_out_file,
+extern void dwarfout_init PARAMS ((FILE *asm_out_file,
char *main_input_filename));
-extern void dwarfout_finish PROTO ((void));
+extern void dwarfout_finish PARAMS ((void));
-extern void dwarfout_define PROTO ((unsigned, const char *));
-extern void dwarfout_undef PROTO ((unsigned, const char *));
-extern void dwarfout_file_scope_decl PROTO ((tree , int));
-extern void dwarfout_start_new_source_file PROTO ((const char *));
-extern void dwarfout_resume_previous_source_file PROTO((unsigned));
-
-extern void dwarfout_begin_function PROTO ((void));
-extern void dwarfout_end_function PROTO ((void));
-extern void dwarfout_begin_epilogue PROTO ((void));
-extern void dwarfout_end_epilogue PROTO ((void));
-extern void dwarfout_begin_block PROTO ((unsigned));
-extern void dwarfout_end_block PROTO ((unsigned));
+extern void dwarfout_define PARAMS ((unsigned, const char *));
+extern void dwarfout_undef PARAMS ((unsigned, const char *));
+extern void dwarfout_file_scope_decl PARAMS ((tree , int));
+extern void dwarfout_start_new_source_file PARAMS ((const char *));
+extern void dwarfout_resume_previous_source_file PARAMS ((unsigned));
+
+extern void dwarfout_begin_function PARAMS ((void));
+extern void dwarfout_end_function PARAMS ((void));
+extern void dwarfout_begin_epilogue PARAMS ((void));
+extern void dwarfout_end_epilogue PARAMS ((void));
+extern void dwarfout_begin_block PARAMS ((unsigned));
+extern void dwarfout_end_block PARAMS ((unsigned));
#ifdef RTX_CODE
-extern void dwarfout_label PROTO ((rtx));
+extern void dwarfout_label PARAMS ((rtx));
#endif
-extern void dwarfout_line PROTO ((const char *, unsigned));
+extern void dwarfout_line PARAMS ((const char *, unsigned));
Index: dyn-string.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dyn-string.h,v
retrieving revision 1.6
diff -u -p -r1.6 dyn-string.h
--- dyn-string.h 1999/09/07 05:47:44 1.6
+++ dyn-string.h 2000/01/14 00:44:52
@@ -1,5 +1,5 @@
/* An abstract string datatype.
- Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
This file is part of GNU CC.
@@ -27,7 +27,7 @@ typedef struct dyn_string
char *s; /* The string itself, NUL-terminated. */
}* dyn_string_t;
-extern dyn_string_t dyn_string_new PROTO((int));
-extern void dyn_string_delete PROTO((dyn_string_t));
-extern dyn_string_t dyn_string_append PROTO((dyn_string_t, const char*));
-extern dyn_string_t dyn_string_resize PROTO((dyn_string_t, int));
+extern dyn_string_t dyn_string_new PARAMS ((int));
+extern void dyn_string_delete PARAMS ((dyn_string_t));
+extern dyn_string_t dyn_string_append PARAMS ((dyn_string_t, const char*));
+extern dyn_string_t dyn_string_resize PARAMS ((dyn_string_t, int));