Commit 94edc4ab by Nathanael Nerode

class.c, parser.c: ANSIfy function definitions and declarations.

2003-01-22  Nathanael Nerode  <neroden@gcc.gnu.org>

	* class.c, parser.c: ANSIfy function definitions and declarations.

From-SVN: r61641
parent 850ccfae
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
* class.c, parser.c: ANSIfy function definitions and declarations.
2003-01-22 Mark Mitchell <mark@codesourcery.com> 2003-01-22 Mark Mitchell <mark@codesourcery.com>
PR c++/9328 PR c++/9328
......
...@@ -94,7 +94,7 @@ typedef struct vtbl_init_data_s ...@@ -94,7 +94,7 @@ typedef struct vtbl_init_data_s
} vtbl_init_data; } vtbl_init_data;
/* The type of a function passed to walk_subobject_offsets. */ /* The type of a function passed to walk_subobject_offsets. */
typedef int (*subobject_offset_fn) PARAMS ((tree, tree, splay_tree)); typedef int (*subobject_offset_fn) (tree, tree, splay_tree);
/* The stack itself. This is a dynamically resized array. The /* The stack itself. This is a dynamically resized array. The
number of elements allocated is CURRENT_CLASS_STACK_SIZE. */ number of elements allocated is CURRENT_CLASS_STACK_SIZE. */
...@@ -105,112 +105,112 @@ static class_stack_node_t current_class_stack; ...@@ -105,112 +105,112 @@ static class_stack_node_t current_class_stack;
declaration order. */ declaration order. */
varray_type local_classes; varray_type local_classes;
static tree get_vfield_name PARAMS ((tree)); static tree get_vfield_name (tree);
static void finish_struct_anon PARAMS ((tree)); static void finish_struct_anon (tree);
static tree get_vtable_name PARAMS ((tree)); static tree get_vtable_name (tree);
static tree get_basefndecls PARAMS ((tree, tree)); static tree get_basefndecls (tree, tree);
static int build_primary_vtable PARAMS ((tree, tree)); static int build_primary_vtable (tree, tree);
static int build_secondary_vtable PARAMS ((tree, tree)); static int build_secondary_vtable (tree, tree);
static void finish_vtbls PARAMS ((tree)); static void finish_vtbls (tree);
static void modify_vtable_entry PARAMS ((tree, tree, tree, tree, tree *)); static void modify_vtable_entry (tree, tree, tree, tree, tree *);
static tree delete_duplicate_fields_1 PARAMS ((tree, tree)); static tree delete_duplicate_fields_1 (tree, tree);
static void delete_duplicate_fields PARAMS ((tree)); static void delete_duplicate_fields (tree);
static void finish_struct_bits PARAMS ((tree)); static void finish_struct_bits (tree);
static int alter_access PARAMS ((tree, tree, tree)); static int alter_access (tree, tree, tree);
static void handle_using_decl PARAMS ((tree, tree)); static void handle_using_decl (tree, tree);
static void check_for_override PARAMS ((tree, tree)); static void check_for_override (tree, tree);
static tree dfs_modify_vtables PARAMS ((tree, void *)); static tree dfs_modify_vtables (tree, void *);
static tree modify_all_vtables PARAMS ((tree, tree)); static tree modify_all_vtables (tree, tree);
static void determine_primary_base PARAMS ((tree)); static void determine_primary_base (tree);
static void finish_struct_methods PARAMS ((tree)); static void finish_struct_methods (tree);
static void maybe_warn_about_overly_private_class PARAMS ((tree)); static void maybe_warn_about_overly_private_class (tree);
static int field_decl_cmp PARAMS ((const void *, const void *)); static int field_decl_cmp (const void *, const void *);
static int resort_field_decl_cmp PARAMS ((const void *, const void *)); static int resort_field_decl_cmp (const void *, const void *);
static int method_name_cmp PARAMS ((const void *, const void *)); static int method_name_cmp (const void *, const void *);
static int resort_method_name_cmp PARAMS ((const void *, const void *)); static int resort_method_name_cmp (const void *, const void *);
static void add_implicitly_declared_members PARAMS ((tree, int, int, int)); static void add_implicitly_declared_members (tree, int, int, int);
static tree fixed_type_or_null PARAMS ((tree, int *, int *)); static tree fixed_type_or_null (tree, int *, int *);
static tree resolve_address_of_overloaded_function PARAMS ((tree, tree, int, static tree resolve_address_of_overloaded_function (tree, tree, int,
int, int, tree)); int, int, tree);
static tree build_vtable_entry_ref PARAMS ((tree, tree, tree)); static tree build_vtable_entry_ref (tree, tree, tree);
static tree build_vtbl_ref_1 PARAMS ((tree, tree)); static tree build_vtbl_ref_1 (tree, tree);
static tree build_vtbl_initializer PARAMS ((tree, tree, tree, tree, int *)); static tree build_vtbl_initializer (tree, tree, tree, tree, int *);
static int count_fields PARAMS ((tree)); static int count_fields (tree);
static int add_fields_to_vec PARAMS ((tree, tree, int)); static int add_fields_to_vec (tree, tree, int);
static void check_bitfield_decl PARAMS ((tree)); static void check_bitfield_decl (tree);
static void check_field_decl (tree, tree, int *, int *, int *, int *); static void check_field_decl (tree, tree, int *, int *, int *, int *);
static void check_field_decls (tree, tree *, int *, int *, int *); static void check_field_decls (tree, tree *, int *, int *, int *);
static tree *build_base_field (record_layout_info, tree, splay_tree, tree *); static tree *build_base_field (record_layout_info, tree, splay_tree, tree *);
static void build_base_fields (record_layout_info, splay_tree, tree *); static void build_base_fields (record_layout_info, splay_tree, tree *);
static void check_methods PARAMS ((tree)); static void check_methods (tree);
static void remove_zero_width_bit_fields PARAMS ((tree)); static void remove_zero_width_bit_fields (tree);
static void check_bases PARAMS ((tree, int *, int *, int *)); static void check_bases (tree, int *, int *, int *);
static void check_bases_and_members (tree); static void check_bases_and_members (tree);
static tree create_vtable_ptr (tree, tree *); static tree create_vtable_ptr (tree, tree *);
static void include_empty_classes (record_layout_info); static void include_empty_classes (record_layout_info);
static void layout_class_type (tree, tree *); static void layout_class_type (tree, tree *);
static void fixup_pending_inline PARAMS ((tree)); static void fixup_pending_inline (tree);
static void fixup_inline_methods PARAMS ((tree)); static void fixup_inline_methods (tree);
static void set_primary_base PARAMS ((tree, tree)); static void set_primary_base (tree, tree);
static void propagate_binfo_offsets PARAMS ((tree, tree, tree)); static void propagate_binfo_offsets (tree, tree, tree);
static void layout_virtual_bases (record_layout_info, splay_tree); static void layout_virtual_bases (record_layout_info, splay_tree);
static tree dfs_set_offset_for_unshared_vbases PARAMS ((tree, void *)); static tree dfs_set_offset_for_unshared_vbases (tree, void *);
static void build_vbase_offset_vtbl_entries PARAMS ((tree, vtbl_init_data *)); static void build_vbase_offset_vtbl_entries (tree, vtbl_init_data *);
static void add_vcall_offset_vtbl_entries_r PARAMS ((tree, vtbl_init_data *)); static void add_vcall_offset_vtbl_entries_r (tree, vtbl_init_data *);
static void add_vcall_offset_vtbl_entries_1 PARAMS ((tree, vtbl_init_data *)); static void add_vcall_offset_vtbl_entries_1 (tree, vtbl_init_data *);
static void build_vcall_offset_vtbl_entries PARAMS ((tree, vtbl_init_data *)); static void build_vcall_offset_vtbl_entries (tree, vtbl_init_data *);
static void add_vcall_offset (tree, tree, vtbl_init_data *); static void add_vcall_offset (tree, tree, vtbl_init_data *);
static void layout_vtable_decl PARAMS ((tree, int)); static void layout_vtable_decl (tree, int);
static tree dfs_find_final_overrider PARAMS ((tree, void *)); static tree dfs_find_final_overrider (tree, void *);
static tree find_final_overrider PARAMS ((tree, tree, tree)); static tree find_final_overrider (tree, tree, tree);
static int make_new_vtable PARAMS ((tree, tree)); static int make_new_vtable (tree, tree);
static int maybe_indent_hierarchy PARAMS ((FILE *, int, int)); static int maybe_indent_hierarchy (FILE *, int, int);
static void dump_class_hierarchy_r PARAMS ((FILE *, int, tree, tree, int)); static void dump_class_hierarchy_r (FILE *, int, tree, tree, int);
static void dump_class_hierarchy PARAMS ((tree)); static void dump_class_hierarchy (tree);
static void dump_array PARAMS ((FILE *, tree)); static void dump_array (FILE *, tree);
static void dump_vtable PARAMS ((tree, tree, tree)); static void dump_vtable (tree, tree, tree);
static void dump_vtt PARAMS ((tree, tree)); static void dump_vtt (tree, tree);
static tree build_vtable PARAMS ((tree, tree, tree)); static tree build_vtable (tree, tree, tree);
static void initialize_vtable PARAMS ((tree, tree)); static void initialize_vtable (tree, tree);
static void initialize_array PARAMS ((tree, tree)); static void initialize_array (tree, tree);
static void layout_nonempty_base_or_field PARAMS ((record_layout_info, static void layout_nonempty_base_or_field (record_layout_info,
tree, tree, splay_tree)); tree, tree, splay_tree);
static tree end_of_class PARAMS ((tree, int)); static tree end_of_class (tree, int);
static bool layout_empty_base PARAMS ((tree, tree, splay_tree, tree)); static bool layout_empty_base (tree, tree, splay_tree, tree);
static void accumulate_vtbl_inits PARAMS ((tree, tree, tree, tree, tree)); static void accumulate_vtbl_inits (tree, tree, tree, tree, tree);
static tree dfs_accumulate_vtbl_inits PARAMS ((tree, tree, tree, tree, static tree dfs_accumulate_vtbl_inits (tree, tree, tree, tree,
tree)); tree);
static void build_rtti_vtbl_entries PARAMS ((tree, vtbl_init_data *)); static void build_rtti_vtbl_entries (tree, vtbl_init_data *);
static void build_vcall_and_vbase_vtbl_entries PARAMS ((tree, static void build_vcall_and_vbase_vtbl_entries (tree,
vtbl_init_data *)); vtbl_init_data *);
static void force_canonical_binfo_r PARAMS ((tree, tree, tree, tree)); static void force_canonical_binfo_r (tree, tree, tree, tree);
static void force_canonical_binfo PARAMS ((tree, tree, tree, tree)); static void force_canonical_binfo (tree, tree, tree, tree);
static tree dfs_unshared_virtual_bases PARAMS ((tree, void *)); static tree dfs_unshared_virtual_bases (tree, void *);
static void mark_primary_bases PARAMS ((tree)); static void mark_primary_bases (tree);
static tree mark_primary_virtual_base PARAMS ((tree, tree)); static tree mark_primary_virtual_base (tree, tree);
static void clone_constructors_and_destructors PARAMS ((tree)); static void clone_constructors_and_destructors (tree);
static tree build_clone PARAMS ((tree, tree)); static tree build_clone (tree, tree);
static void update_vtable_entry_for_fn PARAMS ((tree, tree, tree, tree *)); static void update_vtable_entry_for_fn (tree, tree, tree, tree *);
static tree copy_virtuals PARAMS ((tree)); static tree copy_virtuals (tree);
static void build_ctor_vtbl_group PARAMS ((tree, tree)); static void build_ctor_vtbl_group (tree, tree);
static void build_vtt PARAMS ((tree)); static void build_vtt (tree);
static tree binfo_ctor_vtable PARAMS ((tree)); static tree binfo_ctor_vtable (tree);
static tree *build_vtt_inits PARAMS ((tree, tree, tree *, tree *)); static tree *build_vtt_inits (tree, tree, tree *, tree *);
static tree dfs_build_secondary_vptr_vtt_inits PARAMS ((tree, void *)); static tree dfs_build_secondary_vptr_vtt_inits (tree, void *);
static tree dfs_ctor_vtable_bases_queue_p PARAMS ((tree, void *data)); static tree dfs_ctor_vtable_bases_queue_p (tree, void *data);
static tree dfs_fixup_binfo_vtbls PARAMS ((tree, void *)); static tree dfs_fixup_binfo_vtbls (tree, void *);
static tree get_original_base PARAMS ((tree, tree)); static tree get_original_base (tree, tree);
static tree dfs_get_primary_binfo PARAMS ((tree, void*)); static tree dfs_get_primary_binfo (tree, void*);
static int record_subobject_offset PARAMS ((tree, tree, splay_tree)); static int record_subobject_offset (tree, tree, splay_tree);
static int check_subobject_offset PARAMS ((tree, tree, splay_tree)); static int check_subobject_offset (tree, tree, splay_tree);
static int walk_subobject_offsets PARAMS ((tree, subobject_offset_fn, static int walk_subobject_offsets (tree, subobject_offset_fn,
tree, splay_tree, tree, int)); tree, splay_tree, tree, int);
static void record_subobject_offsets PARAMS ((tree, tree, splay_tree, int)); static void record_subobject_offsets (tree, tree, splay_tree, int);
static int layout_conflict_p PARAMS ((tree, tree, splay_tree, int)); static int layout_conflict_p (tree, tree, splay_tree, int);
static int splay_tree_compare_integer_csts PARAMS ((splay_tree_key k1, static int splay_tree_compare_integer_csts (splay_tree_key k1,
splay_tree_key k2)); splay_tree_key k2);
static void warn_about_ambiguous_bases PARAMS ((tree)); static void warn_about_ambiguous_bases (tree);
static bool type_requires_array_cookie PARAMS ((tree)); static bool type_requires_array_cookie (tree);
static bool contains_empty_class_p (tree); static bool contains_empty_class_p (tree);
static tree dfs_base_derived_from (tree, void *); static tree dfs_base_derived_from (tree, void *);
static bool base_derived_from (tree, tree); static bool base_derived_from (tree, tree);
...@@ -248,11 +248,10 @@ int n_inner_fields_searched = 0; ...@@ -248,11 +248,10 @@ int n_inner_fields_searched = 0;
from EXPR. */ from EXPR. */
tree tree
build_base_path (code, expr, binfo, nonnull) build_base_path (enum tree_code code,
enum tree_code code; tree expr,
tree expr; tree binfo,
tree binfo; int nonnull)
int nonnull;
{ {
tree v_binfo = NULL_TREE; tree v_binfo = NULL_TREE;
tree d_binfo = NULL_TREE; tree d_binfo = NULL_TREE;
...@@ -389,8 +388,7 @@ convert_to_base (tree object, tree type, bool check_access) ...@@ -389,8 +388,7 @@ convert_to_base (tree object, tree type, bool check_access)
/* Virtual function things. */ /* Virtual function things. */
static tree static tree
build_vtable_entry_ref (array_ref, instance, idx) build_vtable_entry_ref (tree array_ref, tree instance, tree idx)
tree array_ref, instance, idx;
{ {
tree i, i2, vtable, first_fn, basetype; tree i, i2, vtable, first_fn, basetype;
...@@ -421,8 +419,7 @@ build_vtable_entry_ref (array_ref, instance, idx) ...@@ -421,8 +419,7 @@ build_vtable_entry_ref (array_ref, instance, idx)
creating extra tree nodes when we don't have to. */ creating extra tree nodes when we don't have to. */
static tree static tree
build_vtbl_ref_1 (instance, idx) build_vtbl_ref_1 (tree instance, tree idx)
tree instance, idx;
{ {
tree aref; tree aref;
tree vtbl = NULL_TREE; tree vtbl = NULL_TREE;
...@@ -459,8 +456,7 @@ build_vtbl_ref_1 (instance, idx) ...@@ -459,8 +456,7 @@ build_vtbl_ref_1 (instance, idx)
} }
tree tree
build_vtbl_ref (instance, idx) build_vtbl_ref (tree instance, tree idx)
tree instance, idx;
{ {
tree aref = build_vtbl_ref_1 (instance, idx); tree aref = build_vtbl_ref_1 (instance, idx);
...@@ -474,8 +470,7 @@ build_vtbl_ref (instance, idx) ...@@ -474,8 +470,7 @@ build_vtbl_ref (instance, idx)
function pointer corresponding to vtable element INDEX. */ function pointer corresponding to vtable element INDEX. */
tree tree
build_vfn_ref (instance, idx) build_vfn_ref (tree instance, tree idx)
tree instance, idx;
{ {
tree aref = build_vtbl_ref_1 (instance, idx); tree aref = build_vtbl_ref_1 (instance, idx);
...@@ -495,8 +490,7 @@ build_vfn_ref (instance, idx) ...@@ -495,8 +490,7 @@ build_vfn_ref (instance, idx)
for the given TYPE. */ for the given TYPE. */
static tree static tree
get_vtable_name (type) get_vtable_name (tree type)
tree type;
{ {
return mangle_vtbl_for_type (type); return mangle_vtbl_for_type (type);
} }
...@@ -505,8 +499,7 @@ get_vtable_name (type) ...@@ -505,8 +499,7 @@ get_vtable_name (type)
for TYPE. */ for TYPE. */
tree tree
get_vtt_name (type) get_vtt_name (tree type)
tree type;
{ {
return mangle_vtt_for_type (type); return mangle_vtt_for_type (type);
} }
...@@ -516,10 +509,7 @@ get_vtt_name (type) ...@@ -516,10 +509,7 @@ get_vtt_name (type)
Use NAME for the name of the vtable, and VTABLE_TYPE for its type. */ Use NAME for the name of the vtable, and VTABLE_TYPE for its type. */
static tree static tree
build_vtable (class_type, name, vtable_type) build_vtable (tree class_type, tree name, tree vtable_type)
tree class_type;
tree name;
tree vtable_type;
{ {
tree decl; tree decl;
...@@ -546,9 +536,7 @@ build_vtable (class_type, name, vtable_type) ...@@ -546,9 +536,7 @@ build_vtable (class_type, name, vtable_type)
which are known to exist in the runtime. */ which are known to exist in the runtime. */
tree tree
get_vtable_decl (type, complete) get_vtable_decl (tree type, int complete)
tree type;
int complete;
{ {
tree decl; tree decl;
...@@ -576,8 +564,7 @@ get_vtable_decl (type, complete) ...@@ -576,8 +564,7 @@ get_vtable_decl (type, complete)
BV_VCALL_INDEX for each entry is cleared. */ BV_VCALL_INDEX for each entry is cleared. */
static tree static tree
copy_virtuals (binfo) copy_virtuals (tree binfo)
tree binfo;
{ {
tree copies; tree copies;
tree t; tree t;
...@@ -596,8 +583,7 @@ copy_virtuals (binfo) ...@@ -596,8 +583,7 @@ copy_virtuals (binfo)
created. */ created. */
static int static int
build_primary_vtable (binfo, type) build_primary_vtable (tree binfo, tree type)
tree binfo, type;
{ {
tree decl; tree decl;
tree virtuals; tree virtuals;
...@@ -651,8 +637,7 @@ build_primary_vtable (binfo, type) ...@@ -651,8 +637,7 @@ build_primary_vtable (binfo, type)
can result. */ can result. */
static int static int
build_secondary_vtable (binfo, for_type) build_secondary_vtable (tree binfo, tree for_type)
tree binfo, for_type;
{ {
my_friendly_assert (binfo == CANONICAL_BINFO (binfo, for_type), 20010605); my_friendly_assert (binfo == CANONICAL_BINFO (binfo, for_type), 20010605);
...@@ -678,9 +663,7 @@ build_secondary_vtable (binfo, for_type) ...@@ -678,9 +663,7 @@ build_secondary_vtable (binfo, for_type)
T. Return nonzero if we actually created a new vtable. */ T. Return nonzero if we actually created a new vtable. */
static int static int
make_new_vtable (t, binfo) make_new_vtable (tree t, tree binfo)
tree t;
tree binfo;
{ {
if (binfo == TYPE_BINFO (t)) if (binfo == TYPE_BINFO (t))
/* In this case, it is *type*'s vtable we are modifying. We start /* In this case, it is *type*'s vtable we are modifying. We start
...@@ -705,12 +688,11 @@ make_new_vtable (t, binfo) ...@@ -705,12 +688,11 @@ make_new_vtable (t, binfo)
the function is actually called. */ the function is actually called. */
static void static void
modify_vtable_entry (t, binfo, fndecl, delta, virtuals) modify_vtable_entry (tree t,
tree t; tree binfo,
tree binfo; tree fndecl,
tree fndecl; tree delta,
tree delta; tree* virtuals)
tree *virtuals;
{ {
tree v; tree v;
...@@ -744,10 +726,7 @@ modify_vtable_entry (t, binfo, fndecl, delta, virtuals) ...@@ -744,10 +726,7 @@ modify_vtable_entry (t, binfo, fndecl, delta, virtuals)
add the method for improved error recovery.) */ add the method for improved error recovery.) */
void void
add_method (type, method, error_p) add_method (tree type, tree method, int error_p)
tree type;
tree method;
int error_p;
{ {
int using = (DECL_CONTEXT (method) != type); int using = (DECL_CONTEXT (method) != type);
int len; int len;
...@@ -984,8 +963,7 @@ add_method (type, method, error_p) ...@@ -984,8 +963,7 @@ add_method (type, method, error_p)
when we have unnamed bitfields, for example. */ when we have unnamed bitfields, for example. */
static tree static tree
delete_duplicate_fields_1 (field, fields) delete_duplicate_fields_1 (tree field, tree fields)
tree field, fields;
{ {
tree x; tree x;
tree prev = 0; tree prev = 0;
...@@ -1063,8 +1041,7 @@ delete_duplicate_fields_1 (field, fields) ...@@ -1063,8 +1041,7 @@ delete_duplicate_fields_1 (field, fields)
} }
static void static void
delete_duplicate_fields (fields) delete_duplicate_fields (tree fields)
tree fields;
{ {
tree x; tree x;
for (x = fields; x && TREE_CHAIN (x); x = TREE_CHAIN (x)) for (x = fields; x && TREE_CHAIN (x); x = TREE_CHAIN (x))
...@@ -1075,10 +1052,7 @@ delete_duplicate_fields (fields) ...@@ -1075,10 +1052,7 @@ delete_duplicate_fields (fields)
legit, otherwise return 0. */ legit, otherwise return 0. */
static int static int
alter_access (t, fdecl, access) alter_access (tree t, tree fdecl, tree access)
tree t;
tree fdecl;
tree access;
{ {
tree elem; tree elem;
...@@ -1118,9 +1092,7 @@ alter_access (t, fdecl, access) ...@@ -1118,9 +1092,7 @@ alter_access (t, fdecl, access)
/* Process the USING_DECL, which is a member of T. */ /* Process the USING_DECL, which is a member of T. */
static void static void
handle_using_decl (using_decl, t) handle_using_decl (tree using_decl, tree t)
tree using_decl;
tree t;
{ {
tree ctype = DECL_INITIAL (using_decl); tree ctype = DECL_INITIAL (using_decl);
tree name = DECL_NAME (using_decl); tree name = DECL_NAME (using_decl);
...@@ -1216,12 +1188,10 @@ handle_using_decl (using_decl, t) ...@@ -1216,12 +1188,10 @@ handle_using_decl (using_decl, t)
the bases. */ the bases. */
static void static void
check_bases (t, cant_have_default_ctor_p, cant_have_const_ctor_p, check_bases (tree t,
no_const_asn_ref_p) int* cant_have_default_ctor_p,
tree t; int* cant_have_const_ctor_p,
int *cant_have_default_ctor_p; int* no_const_asn_ref_p)
int *cant_have_const_ctor_p;
int *no_const_asn_ref_p;
{ {
int n_baseclasses; int n_baseclasses;
int i; int i;
...@@ -1332,11 +1302,7 @@ check_bases (t, cant_have_default_ctor_p, cant_have_const_ctor_p, ...@@ -1332,11 +1302,7 @@ check_bases (t, cant_have_default_ctor_p, cant_have_const_ctor_p,
assoc list of binfos that have already been reseated. */ assoc list of binfos that have already been reseated. */
static void static void
force_canonical_binfo_r (to, from, type, mappings) force_canonical_binfo_r (tree to, tree from, tree type, tree mappings)
tree to;
tree from;
tree type;
tree mappings;
{ {
int i, n_baseclasses = BINFO_N_BASETYPES (from); int i, n_baseclasses = BINFO_N_BASETYPES (from);
...@@ -1404,11 +1370,7 @@ force_canonical_binfo_r (to, from, type, mappings) ...@@ -1404,11 +1370,7 @@ force_canonical_binfo_r (to, from, type, mappings)
primary. */ primary. */
static void static void
force_canonical_binfo (to, from, type, mappings) force_canonical_binfo (tree to, tree from, tree type, tree mappings)
tree to;
tree from;
tree type;
tree mappings;
{ {
tree assoc = purpose_member (BINFO_TYPE (to), tree assoc = purpose_member (BINFO_TYPE (to),
CLASSTYPE_VBASECLASSES (type)); CLASSTYPE_VBASECLASSES (type));
...@@ -1424,9 +1386,7 @@ force_canonical_binfo (to, from, type, mappings) ...@@ -1424,9 +1386,7 @@ force_canonical_binfo (to, from, type, mappings)
otherwise (because something else has already made it primary). */ otherwise (because something else has already made it primary). */
static tree static tree
mark_primary_virtual_base (base_binfo, type) mark_primary_virtual_base (tree base_binfo, tree type)
tree base_binfo;
tree type;
{ {
tree shared_binfo = binfo_for_vbase (BINFO_TYPE (base_binfo), type); tree shared_binfo = binfo_for_vbase (BINFO_TYPE (base_binfo), type);
...@@ -1453,9 +1413,7 @@ mark_primary_virtual_base (base_binfo, type) ...@@ -1453,9 +1413,7 @@ mark_primary_virtual_base (base_binfo, type)
mark_primary_bases. DATA is the most derived type. */ mark_primary_bases. DATA is the most derived type. */
static tree static tree
dfs_unshared_virtual_bases (binfo, data) dfs_unshared_virtual_bases (tree binfo, void* data)
tree binfo;
void *data;
{ {
tree t = (tree) data; tree t = (tree) data;
...@@ -1506,8 +1464,7 @@ dfs_unshared_virtual_bases (binfo, data) ...@@ -1506,8 +1464,7 @@ dfs_unshared_virtual_bases (binfo, data)
dominated by TYPE that are primary bases. */ dominated by TYPE that are primary bases. */
static void static void
mark_primary_bases (type) mark_primary_bases (tree type)
tree type;
{ {
tree binfo; tree binfo;
...@@ -1546,9 +1503,7 @@ mark_primary_bases (type) ...@@ -1546,9 +1503,7 @@ mark_primary_bases (type)
/* Make the BINFO the primary base of T. */ /* Make the BINFO the primary base of T. */
static void static void
set_primary_base (t, binfo) set_primary_base (tree t, tree binfo)
tree t;
tree binfo;
{ {
tree basetype; tree basetype;
...@@ -1562,8 +1517,7 @@ set_primary_base (t, binfo) ...@@ -1562,8 +1517,7 @@ set_primary_base (t, binfo)
/* Determine the primary class for T. */ /* Determine the primary class for T. */
static void static void
determine_primary_base (t) determine_primary_base (tree t)
tree t;
{ {
int i, n_baseclasses = CLASSTYPE_N_BASECLASSES (t); int i, n_baseclasses = CLASSTYPE_N_BASECLASSES (t);
tree vbases; tree vbases;
...@@ -1705,8 +1659,7 @@ determine_primary_base (t) ...@@ -1705,8 +1659,7 @@ determine_primary_base (t)
use. */ use. */
static void static void
finish_struct_bits (t) finish_struct_bits (tree t)
tree t;
{ {
int i, n_baseclasses = CLASSTYPE_N_BASECLASSES (t); int i, n_baseclasses = CLASSTYPE_N_BASECLASSES (t);
...@@ -1785,8 +1738,7 @@ finish_struct_bits (t) ...@@ -1785,8 +1738,7 @@ finish_struct_bits (t)
non-private static member functions. */ non-private static member functions. */
static void static void
maybe_warn_about_overly_private_class (t) maybe_warn_about_overly_private_class (tree t)
tree t;
{ {
int has_member_fn = 0; int has_member_fn = 0;
int has_nonprivate_method = 0; int has_nonprivate_method = 0;
...@@ -1927,8 +1879,7 @@ maybe_warn_about_overly_private_class (t) ...@@ -1927,8 +1879,7 @@ maybe_warn_about_overly_private_class (t)
/* Function to help qsort sort FIELD_DECLs by name order. */ /* Function to help qsort sort FIELD_DECLs by name order. */
static int static int
field_decl_cmp (x_p, y_p) field_decl_cmp (const void* x_p, const void* y_p)
const void *x_p, *y_p;
{ {
const tree *const x = x_p; const tree *const x = x_p;
const tree *const y = y_p; const tree *const y = y_p;
...@@ -1953,8 +1904,7 @@ static struct { ...@@ -1953,8 +1904,7 @@ static struct {
pointer operator in resort_data. */ pointer operator in resort_data. */
static int static int
resort_field_decl_cmp (x_p, y_p) resort_field_decl_cmp (const void* x_p, const void* y_p)
const void *x_p, *y_p;
{ {
const tree *const x = x_p; const tree *const x = x_p;
const tree *const y = y_p; const tree *const y = y_p;
...@@ -1980,11 +1930,10 @@ resort_field_decl_cmp (x_p, y_p) ...@@ -1980,11 +1930,10 @@ resort_field_decl_cmp (x_p, y_p)
/* Resort DECL_SORTED_FIELDS because pointers have been reordered. */ /* Resort DECL_SORTED_FIELDS because pointers have been reordered. */
void void
resort_sorted_fields (obj, orig_obj, new_value, cookie) resort_sorted_fields (void* obj,
void *obj; void* orig_obj ATTRIBUTE_UNUSED ,
void *orig_obj ATTRIBUTE_UNUSED; gt_pointer_operator new_value,
gt_pointer_operator new_value; void* cookie)
void *cookie;
{ {
tree sf = obj; tree sf = obj;
resort_data.new_value = new_value; resort_data.new_value = new_value;
...@@ -1996,8 +1945,7 @@ resort_sorted_fields (obj, orig_obj, new_value, cookie) ...@@ -1996,8 +1945,7 @@ resort_sorted_fields (obj, orig_obj, new_value, cookie)
/* Comparison function to compare two TYPE_METHOD_VEC entries by name. */ /* Comparison function to compare two TYPE_METHOD_VEC entries by name. */
static int static int
method_name_cmp (m1_p, m2_p) method_name_cmp (const void* m1_p, const void* m2_p)
const void *m1_p, *m2_p;
{ {
const tree *const m1 = m1_p; const tree *const m1 = m1_p;
const tree *const m2 = m2_p; const tree *const m2 = m2_p;
...@@ -2017,8 +1965,7 @@ method_name_cmp (m1_p, m2_p) ...@@ -2017,8 +1965,7 @@ method_name_cmp (m1_p, m2_p)
pointer operator in resort_field_decl_data. */ pointer operator in resort_field_decl_data. */
static int static int
resort_method_name_cmp (m1_p, m2_p) resort_method_name_cmp (const void* m1_p, const void* m2_p)
const void *m1_p, *m2_p;
{ {
const tree *const m1 = m1_p; const tree *const m1 = m1_p;
const tree *const m2 = m2_p; const tree *const m2 = m2_p;
...@@ -2042,11 +1989,10 @@ resort_method_name_cmp (m1_p, m2_p) ...@@ -2042,11 +1989,10 @@ resort_method_name_cmp (m1_p, m2_p)
/* Resort TYPE_METHOD_VEC because pointers have been reordered. */ /* Resort TYPE_METHOD_VEC because pointers have been reordered. */
void void
resort_type_method_vec (obj, orig_obj, new_value, cookie) resort_type_method_vec (void* obj,
void *obj; void* orig_obj ATTRIBUTE_UNUSED ,
void *orig_obj ATTRIBUTE_UNUSED; gt_pointer_operator new_value,
gt_pointer_operator new_value; void* cookie)
void *cookie;
{ {
tree method_vec = obj; tree method_vec = obj;
int len = TREE_VEC_LENGTH (method_vec); int len = TREE_VEC_LENGTH (method_vec);
...@@ -2087,8 +2033,7 @@ resort_type_method_vec (obj, orig_obj, new_value, cookie) ...@@ -2087,8 +2033,7 @@ resort_type_method_vec (obj, orig_obj, new_value, cookie)
search. */ search. */
static void static void
finish_struct_methods (t) finish_struct_methods (tree t)
tree t;
{ {
tree fn_fields; tree fn_fields;
tree method_vec; tree method_vec;
...@@ -2146,8 +2091,7 @@ finish_struct_methods (t) ...@@ -2146,8 +2091,7 @@ finish_struct_methods (t)
/* Emit error when a duplicate definition of a type is seen. Patch up. */ /* Emit error when a duplicate definition of a type is seen. Patch up. */
void void
duplicate_tag_error (t) duplicate_tag_error (tree t)
tree t;
{ {
error ("redefinition of `%#T'", t); error ("redefinition of `%#T'", t);
cp_error_at ("previous definition of `%#T'", t); cp_error_at ("previous definition of `%#T'", t);
...@@ -2221,9 +2165,7 @@ duplicate_tag_error (t) ...@@ -2221,9 +2165,7 @@ duplicate_tag_error (t)
to lay it out. */ to lay it out. */
static void static void
layout_vtable_decl (binfo, n) layout_vtable_decl (tree binfo, int n)
tree binfo;
int n;
{ {
tree atype; tree atype;
tree vtable; tree vtable;
...@@ -2251,8 +2193,7 @@ layout_vtable_decl (binfo, n) ...@@ -2251,8 +2193,7 @@ layout_vtable_decl (binfo, n)
have the same signature. */ have the same signature. */
int int
same_signature_p (fndecl, base_fndecl) same_signature_p (tree fndecl, tree base_fndecl)
tree fndecl, base_fndecl;
{ {
/* One destructor overrides another if they are the same kind of /* One destructor overrides another if they are the same kind of
destructor. */ destructor. */
...@@ -2316,9 +2257,7 @@ typedef struct find_final_overrider_data_s { ...@@ -2316,9 +2257,7 @@ typedef struct find_final_overrider_data_s {
/* Called from find_final_overrider via dfs_walk. */ /* Called from find_final_overrider via dfs_walk. */
static tree static tree
dfs_find_final_overrider (binfo, data) dfs_find_final_overrider (tree binfo, void* data)
tree binfo;
void *data;
{ {
find_final_overrider_data *ffod = (find_final_overrider_data *) data; find_final_overrider_data *ffod = (find_final_overrider_data *) data;
...@@ -2386,10 +2325,7 @@ dfs_find_final_overrider (binfo, data) ...@@ -2386,10 +2325,7 @@ dfs_find_final_overrider (binfo, data)
DERIVED) is the base object in which FN is declared. */ DERIVED) is the base object in which FN is declared. */
static tree static tree
find_final_overrider (derived, binfo, fn) find_final_overrider (tree derived, tree binfo, tree fn)
tree derived;
tree binfo;
tree fn;
{ {
find_final_overrider_data ffod; find_final_overrider_data ffod;
...@@ -2459,11 +2395,7 @@ get_vcall_index (tree fn, tree type) ...@@ -2459,11 +2395,7 @@ get_vcall_index (tree fn, tree type)
corresponding position in the BINFO_VIRTUALS list. */ corresponding position in the BINFO_VIRTUALS list. */
static void static void
update_vtable_entry_for_fn (t, binfo, fn, virtuals) update_vtable_entry_for_fn (tree t, tree binfo, tree fn, tree* virtuals)
tree t;
tree binfo;
tree fn;
tree *virtuals;
{ {
tree b; tree b;
tree overrider; tree overrider;
...@@ -2622,9 +2554,7 @@ update_vtable_entry_for_fn (t, binfo, fn, virtuals) ...@@ -2622,9 +2554,7 @@ update_vtable_entry_for_fn (t, binfo, fn, virtuals)
/* Called from modify_all_vtables via dfs_walk. */ /* Called from modify_all_vtables via dfs_walk. */
static tree static tree
dfs_modify_vtables (binfo, data) dfs_modify_vtables (tree binfo, void* data)
tree binfo;
void *data;
{ {
if (/* There's no need to modify the vtable for a non-virtual if (/* There's no need to modify the vtable for a non-virtual
primary base; we're not going to use that vtable anyhow. primary base; we're not going to use that vtable anyhow.
...@@ -2671,9 +2601,7 @@ dfs_modify_vtables (binfo, data) ...@@ -2671,9 +2601,7 @@ dfs_modify_vtables (binfo, data)
should therefore be appended to the end of the vtable for T. */ should therefore be appended to the end of the vtable for T. */
static tree static tree
modify_all_vtables (t, virtuals) modify_all_vtables (tree t, tree virtuals)
tree t;
tree virtuals;
{ {
tree binfo = TYPE_BINFO (t); tree binfo = TYPE_BINFO (t);
tree *fnsp; tree *fnsp;
...@@ -2716,8 +2644,7 @@ modify_all_vtables (t, virtuals) ...@@ -2716,8 +2644,7 @@ modify_all_vtables (t, virtuals)
indicated NAME. */ indicated NAME. */
static tree static tree
get_basefndecls (name, t) get_basefndecls (tree name, tree t)
tree name, t;
{ {
tree methods; tree methods;
tree base_fndecls = NULL_TREE; tree base_fndecls = NULL_TREE;
...@@ -2748,8 +2675,7 @@ get_basefndecls (name, t) ...@@ -2748,8 +2675,7 @@ get_basefndecls (name, t)
mark this field as being virtual as well. */ mark this field as being virtual as well. */
static void static void
check_for_override (decl, ctype) check_for_override (tree decl, tree ctype)
tree decl, ctype;
{ {
if (TREE_CODE (decl) == TEMPLATE_DECL) if (TREE_CODE (decl) == TEMPLATE_DECL)
/* In [temp.mem] we have: /* In [temp.mem] we have:
...@@ -2778,8 +2704,7 @@ check_for_override (decl, ctype) ...@@ -2778,8 +2704,7 @@ check_for_override (decl, ctype)
We know that constructors and destructors don't apply. */ We know that constructors and destructors don't apply. */
void void
warn_hidden (t) warn_hidden (tree t)
tree t;
{ {
tree method_vec = CLASSTYPE_METHOD_VEC (t); tree method_vec = CLASSTYPE_METHOD_VEC (t);
int n_methods = method_vec ? TREE_VEC_LENGTH (method_vec) : 0; int n_methods = method_vec ? TREE_VEC_LENGTH (method_vec) : 0;
...@@ -2848,8 +2773,7 @@ warn_hidden (t) ...@@ -2848,8 +2773,7 @@ warn_hidden (t)
things we should check for also. */ things we should check for also. */
static void static void
finish_struct_anon (t) finish_struct_anon (tree t)
tree t;
{ {
tree field; tree field;
...@@ -2914,10 +2838,7 @@ finish_struct_anon (t) ...@@ -2914,10 +2838,7 @@ finish_struct_anon (t)
(FUNCTION_DECL, TEMPLATE_DECL). */ (FUNCTION_DECL, TEMPLATE_DECL). */
void void
maybe_add_class_template_decl_list (type, t, friend_p) maybe_add_class_template_decl_list (tree type, tree t, int friend_p)
tree type;
tree t;
int friend_p;
{ {
/* Save some memory by not creating TREE_LIST if TYPE is not template. */ /* Save some memory by not creating TREE_LIST if TYPE is not template. */
if (CLASSTYPE_TEMPLATE_INFO (type)) if (CLASSTYPE_TEMPLATE_INFO (type))
...@@ -2936,13 +2857,10 @@ maybe_add_class_template_decl_list (type, t, friend_p) ...@@ -2936,13 +2857,10 @@ maybe_add_class_template_decl_list (type, t, friend_p)
DECL is returned; otherwise the return value is NULL_TREE. */ DECL is returned; otherwise the return value is NULL_TREE. */
static void static void
add_implicitly_declared_members (t, cant_have_default_ctor, add_implicitly_declared_members (tree t,
cant_have_const_cctor, int cant_have_default_ctor,
cant_have_const_assignment) int cant_have_const_cctor,
tree t; int cant_have_const_assignment)
int cant_have_default_ctor;
int cant_have_const_cctor;
int cant_have_const_assignment;
{ {
tree default_fn; tree default_fn;
tree implicit_fns = NULL_TREE; tree implicit_fns = NULL_TREE;
...@@ -3033,8 +2951,7 @@ add_implicitly_declared_members (t, cant_have_default_ctor, ...@@ -3033,8 +2951,7 @@ add_implicitly_declared_members (t, cant_have_default_ctor,
in TYPE, including anonymous union members. */ in TYPE, including anonymous union members. */
static int static int
count_fields (fields) count_fields (tree fields)
tree fields;
{ {
tree x; tree x;
int n_fields = 0; int n_fields = 0;
...@@ -3052,9 +2969,7 @@ count_fields (fields) ...@@ -3052,9 +2969,7 @@ count_fields (fields)
TREE_LIST FIELDS to the TREE_VEC FIELD_VEC, starting at offset IDX. */ TREE_LIST FIELDS to the TREE_VEC FIELD_VEC, starting at offset IDX. */
static int static int
add_fields_to_vec (fields, field_vec, idx) add_fields_to_vec (tree fields, tree field_vec, int idx)
tree fields, field_vec;
int idx;
{ {
tree x; tree x;
for (x = fields; x; x = TREE_CHAIN (x)) for (x = fields; x; x = TREE_CHAIN (x))
...@@ -3072,8 +2987,7 @@ add_fields_to_vec (fields, field_vec, idx) ...@@ -3072,8 +2987,7 @@ add_fields_to_vec (fields, field_vec, idx)
flags. */ flags. */
static void static void
check_bitfield_decl (field) check_bitfield_decl (tree field)
tree field;
{ {
tree type = TREE_TYPE (field); tree type = TREE_TYPE (field);
tree w = NULL_TREE; tree w = NULL_TREE;
...@@ -3173,15 +3087,12 @@ check_bitfield_decl (field) ...@@ -3173,15 +3087,12 @@ check_bitfield_decl (field)
flags. */ flags. */
static void static void
check_field_decl (field, t, cant_have_const_ctor, check_field_decl (tree field,
cant_have_default_ctor, no_const_asn_ref, tree t,
any_default_members) int* cant_have_const_ctor,
tree field; int* cant_have_default_ctor,
tree t; int* no_const_asn_ref,
int *cant_have_const_ctor; int* any_default_members)
int *cant_have_default_ctor;
int *no_const_asn_ref;
int *any_default_members;
{ {
tree type = strip_array_types (TREE_TYPE (field)); tree type = strip_array_types (TREE_TYPE (field));
...@@ -3524,10 +3435,7 @@ check_field_decls (tree t, tree *access_decls, ...@@ -3524,10 +3435,7 @@ check_field_decls (tree t, tree *access_decls,
OFFSETS. */ OFFSETS. */
static int static int
record_subobject_offset (type, offset, offsets) record_subobject_offset (tree type, tree offset, splay_tree offsets)
tree type;
tree offset;
splay_tree offsets;
{ {
splay_tree_node n; splay_tree_node n;
...@@ -3552,10 +3460,7 @@ record_subobject_offset (type, offset, offsets) ...@@ -3552,10 +3460,7 @@ record_subobject_offset (type, offset, offsets)
already an entry in OFFSETS for the same TYPE as the same OFFSET. */ already an entry in OFFSETS for the same TYPE as the same OFFSET. */
static int static int
check_subobject_offset (type, offset, offsets) check_subobject_offset (tree type, tree offset, splay_tree offsets)
tree type;
tree offset;
splay_tree offsets;
{ {
splay_tree_node n; splay_tree_node n;
tree t; tree t;
...@@ -3587,13 +3492,12 @@ check_subobject_offset (type, offset, offsets) ...@@ -3587,13 +3492,12 @@ check_subobject_offset (type, offset, offsets)
is returned. Otherwise, returns zero. */ is returned. Otherwise, returns zero. */
static int static int
walk_subobject_offsets (type, f, offset, offsets, max_offset, vbases_p) walk_subobject_offsets (tree type,
tree type; subobject_offset_fn f,
subobject_offset_fn f; tree offset,
tree offset; splay_tree offsets,
splay_tree offsets; tree max_offset,
tree max_offset; int vbases_p)
int vbases_p;
{ {
int r = 0; int r = 0;
tree type_binfo = NULL_TREE; tree type_binfo = NULL_TREE;
...@@ -3791,11 +3695,10 @@ walk_subobject_offsets (type, f, offset, offsets, max_offset, vbases_p) ...@@ -3791,11 +3695,10 @@ walk_subobject_offsets (type, f, offset, offsets, max_offset, vbases_p)
examined. */ examined. */
static void static void
record_subobject_offsets (type, offset, offsets, vbases_p) record_subobject_offsets (tree type,
tree type; tree offset,
tree offset; splay_tree offsets,
splay_tree offsets; int vbases_p)
int vbases_p;
{ {
walk_subobject_offsets (type, record_subobject_offset, offset, walk_subobject_offsets (type, record_subobject_offset, offset,
offsets, /*max_offset=*/NULL_TREE, vbases_p); offsets, /*max_offset=*/NULL_TREE, vbases_p);
...@@ -3806,11 +3709,10 @@ record_subobject_offsets (type, offset, offsets, vbases_p) ...@@ -3806,11 +3709,10 @@ record_subobject_offsets (type, offset, offsets, vbases_p)
virtual bases of TYPE are examined. */ virtual bases of TYPE are examined. */
static int static int
layout_conflict_p (type, offset, offsets, vbases_p) layout_conflict_p (tree type,
tree type; tree offset,
tree offset; splay_tree offsets,
splay_tree offsets; int vbases_p)
int vbases_p;
{ {
splay_tree_node max_node; splay_tree_node max_node;
...@@ -3941,11 +3843,7 @@ empty_base_at_nonzero_offset_p (tree type, ...@@ -3941,11 +3843,7 @@ empty_base_at_nonzero_offset_p (tree type,
type. Return nonzero iff we added it at the end. */ type. Return nonzero iff we added it at the end. */
static bool static bool
layout_empty_base (binfo, eoc, offsets, t) layout_empty_base (tree binfo, tree eoc, splay_tree offsets, tree t)
tree binfo;
tree eoc;
splay_tree offsets;
tree t;
{ {
tree alignment; tree alignment;
tree basetype = BINFO_TYPE (binfo); tree basetype = BINFO_TYPE (binfo);
...@@ -4142,8 +4040,7 @@ build_base_fields (record_layout_info rli, ...@@ -4142,8 +4040,7 @@ build_base_fields (record_layout_info rli,
methods, and so forth. */ methods, and so forth. */
static void static void
check_methods (t) check_methods (tree t)
tree t;
{ {
tree x; tree x;
...@@ -4175,9 +4072,7 @@ check_methods (t) ...@@ -4175,9 +4072,7 @@ check_methods (t)
NAME. */ NAME. */
static tree static tree
build_clone (fn, name) build_clone (tree fn, tree name)
tree fn;
tree name;
{ {
tree parms; tree parms;
tree clone; tree clone;
...@@ -4296,9 +4191,7 @@ build_clone (fn, name) ...@@ -4296,9 +4191,7 @@ build_clone (fn, name)
CLASTYPE_METHOD_VEC as well. */ CLASTYPE_METHOD_VEC as well. */
void void
clone_function_decl (fn, update_method_vec_p) clone_function_decl (tree fn, int update_method_vec_p)
tree fn;
int update_method_vec_p;
{ {
tree clone; tree clone;
...@@ -4357,8 +4250,7 @@ clone_function_decl (fn, update_method_vec_p) ...@@ -4357,8 +4250,7 @@ clone_function_decl (fn, update_method_vec_p)
clones. */ clones. */
void void
adjust_clone_args (decl) adjust_clone_args (tree decl)
tree decl;
{ {
tree clone; tree clone;
...@@ -4427,8 +4319,7 @@ adjust_clone_args (decl) ...@@ -4427,8 +4319,7 @@ adjust_clone_args (decl)
in-charge and not-in-charge variant. */ in-charge and not-in-charge variant. */
static void static void
clone_constructors_and_destructors (t) clone_constructors_and_destructors (tree t)
tree t;
{ {
tree fns; tree fns;
...@@ -4446,8 +4337,7 @@ clone_constructors_and_destructors (t) ...@@ -4446,8 +4337,7 @@ clone_constructors_and_destructors (t)
/* Remove all zero-width bit-fields from T. */ /* Remove all zero-width bit-fields from T. */
static void static void
remove_zero_width_bit_fields (t) remove_zero_width_bit_fields (tree t)
tree t;
{ {
tree *fieldsp; tree *fieldsp;
...@@ -4467,8 +4357,7 @@ remove_zero_width_bit_fields (t) ...@@ -4467,8 +4357,7 @@ remove_zero_width_bit_fields (t)
array whose elements have the indicated class TYPE. */ array whose elements have the indicated class TYPE. */
static bool static bool
type_requires_array_cookie (type) type_requires_array_cookie (tree type)
tree type;
{ {
tree fns; tree fns;
bool has_two_argument_delete_p = false; bool has_two_argument_delete_p = false;
...@@ -4610,9 +4499,7 @@ check_bases_and_members (tree t) ...@@ -4610,9 +4499,7 @@ check_bases_and_members (tree t)
on VIRTUALS_P. */ on VIRTUALS_P. */
static tree static tree
create_vtable_ptr (t, virtuals_p) create_vtable_ptr (tree t, tree* virtuals_p)
tree t;
tree *virtuals_p;
{ {
tree fn; tree fn;
...@@ -4688,8 +4575,7 @@ create_vtable_ptr (t, virtuals_p) ...@@ -4688,8 +4575,7 @@ create_vtable_ptr (t, virtuals_p)
complete. */ complete. */
static void static void
fixup_pending_inline (fn) fixup_pending_inline (tree fn)
tree fn;
{ {
if (DECL_PENDING_INLINE_INFO (fn)) if (DECL_PENDING_INLINE_INFO (fn))
{ {
...@@ -4706,8 +4592,7 @@ fixup_pending_inline (fn) ...@@ -4706,8 +4592,7 @@ fixup_pending_inline (fn)
complete. */ complete. */
static void static void
fixup_inline_methods (type) fixup_inline_methods (tree type)
tree type;
{ {
tree method = TYPE_METHODS (type); tree method = TYPE_METHODS (type);
...@@ -4739,10 +4624,7 @@ fixup_inline_methods (type) ...@@ -4739,10 +4624,7 @@ fixup_inline_methods (type)
OFFSET, which is a type offset, is number of bytes. */ OFFSET, which is a type offset, is number of bytes. */
static void static void
propagate_binfo_offsets (binfo, offset, t) propagate_binfo_offsets (tree binfo, tree offset, tree t)
tree binfo;
tree offset;
tree t;
{ {
int i; int i;
tree primary_binfo; tree primary_binfo;
...@@ -4794,9 +4676,7 @@ propagate_binfo_offsets (binfo, offset, t) ...@@ -4794,9 +4676,7 @@ propagate_binfo_offsets (binfo, offset, t)
/* Called via dfs_walk from layout_virtual bases. */ /* Called via dfs_walk from layout_virtual bases. */
static tree static tree
dfs_set_offset_for_unshared_vbases (binfo, data) dfs_set_offset_for_unshared_vbases (tree binfo, void* data)
tree binfo;
void *data;
{ {
/* If this is a virtual base, make sure it has the same offset as /* If this is a virtual base, make sure it has the same offset as
the shared copy. If it's a primary base, then we know it's the shared copy. If it's a primary base, then we know it's
...@@ -4931,9 +4811,7 @@ end_of_base (tree binfo) ...@@ -4931,9 +4811,7 @@ end_of_base (tree binfo)
only non-virtual bases are included. */ only non-virtual bases are included. */
static tree static tree
end_of_class (t, include_virtuals_p) end_of_class (tree t, int include_virtuals_p)
tree t;
int include_virtuals_p;
{ {
tree result = size_zero_node; tree result = size_zero_node;
tree binfo; tree binfo;
...@@ -4979,8 +4857,7 @@ end_of_class (t, include_virtuals_p) ...@@ -4979,8 +4857,7 @@ end_of_class (t, include_virtuals_p)
subobjects of U. */ subobjects of U. */
static void static void
warn_about_ambiguous_bases (t) warn_about_ambiguous_bases (tree t)
tree t;
{ {
int i; int i;
tree vbases; tree vbases;
...@@ -5013,9 +4890,7 @@ warn_about_ambiguous_bases (t) ...@@ -5013,9 +4890,7 @@ warn_about_ambiguous_bases (t)
/* Compare two INTEGER_CSTs K1 and K2. */ /* Compare two INTEGER_CSTs K1 and K2. */
static int static int
splay_tree_compare_integer_csts (k1, k2) splay_tree_compare_integer_csts (splay_tree_key k1, splay_tree_key k2)
splay_tree_key k1;
splay_tree_key k2;
{ {
return tree_int_cst_compare ((tree) k1, (tree) k2); return tree_int_cst_compare ((tree) k1, (tree) k2);
} }
...@@ -5384,8 +5259,7 @@ key_method (tree type) ...@@ -5384,8 +5259,7 @@ key_method (tree type)
is complete. */ is complete. */
void void
finish_struct_1 (t) finish_struct_1 (tree t)
tree t;
{ {
tree x; tree x;
/* A TREE_LIST. The TREE_VALUE of each node is a FUNCTION_DECL. */ /* A TREE_LIST. The TREE_VALUE of each node is a FUNCTION_DECL. */
...@@ -5580,8 +5454,7 @@ finish_struct_1 (t) ...@@ -5580,8 +5454,7 @@ finish_struct_1 (t)
order. Rearrange them to declaration order. */ order. Rearrange them to declaration order. */
void void
unreverse_member_declarations (t) unreverse_member_declarations (tree t)
tree t;
{ {
tree next; tree next;
tree prev; tree prev;
...@@ -5613,8 +5486,7 @@ unreverse_member_declarations (t) ...@@ -5613,8 +5486,7 @@ unreverse_member_declarations (t)
} }
tree tree
finish_struct (t, attributes) finish_struct (tree t, tree attributes)
tree t, attributes;
{ {
const char *saved_filename = input_filename; const char *saved_filename = input_filename;
int saved_lineno = lineno; int saved_lineno = lineno;
...@@ -5663,10 +5535,7 @@ finish_struct (t, attributes) ...@@ -5663,10 +5535,7 @@ finish_struct (t, attributes)
before this function is called. */ before this function is called. */
static tree static tree
fixed_type_or_null (instance, nonnull, cdtorp) fixed_type_or_null (tree instance, int* nonnull, int* cdtorp)
tree instance;
int *nonnull;
int *cdtorp;
{ {
switch (TREE_CODE (instance)) switch (TREE_CODE (instance))
{ {
...@@ -5788,9 +5657,7 @@ fixed_type_or_null (instance, nonnull, cdtorp) ...@@ -5788,9 +5657,7 @@ fixed_type_or_null (instance, nonnull, cdtorp)
before this function is called. */ before this function is called. */
int int
resolves_to_fixed_type_p (instance, nonnull) resolves_to_fixed_type_p (tree instance, int* nonnull)
tree instance;
int *nonnull;
{ {
tree t = TREE_TYPE (instance); tree t = TREE_TYPE (instance);
int cdtorp = 0; int cdtorp = 0;
...@@ -5807,7 +5674,7 @@ resolves_to_fixed_type_p (instance, nonnull) ...@@ -5807,7 +5674,7 @@ resolves_to_fixed_type_p (instance, nonnull)
void void
init_class_processing () init_class_processing (void)
{ {
current_class_depth = 0; current_class_depth = 0;
current_class_stack_size = 10; current_class_stack_size = 10;
...@@ -5858,9 +5725,7 @@ init_class_processing () ...@@ -5858,9 +5725,7 @@ init_class_processing ()
that name becomes `error_mark_node'. */ that name becomes `error_mark_node'. */
void void
pushclass (type, modify) pushclass (tree type, int modify)
tree type;
int modify;
{ {
type = TYPE_MAIN_VARIANT (type); type = TYPE_MAIN_VARIANT (type);
...@@ -5945,7 +5810,7 @@ pushclass (type, modify) ...@@ -5945,7 +5810,7 @@ pushclass (type, modify)
must invalidate our cache. */ must invalidate our cache. */
void void
invalidate_class_lookup_cache () invalidate_class_lookup_cache (void)
{ {
tree t; tree t;
...@@ -5961,7 +5826,7 @@ invalidate_class_lookup_cache () ...@@ -5961,7 +5826,7 @@ invalidate_class_lookup_cache ()
previously, that is the one popped to. */ previously, that is the one popped to. */
void void
popclass () popclass (void)
{ {
poplevel_class (); poplevel_class ();
pop_class_decls (); pop_class_decls ();
...@@ -5979,8 +5844,7 @@ popclass () ...@@ -5979,8 +5844,7 @@ popclass ()
no type. */ no type. */
int int
currently_open_class (t) currently_open_class (tree t)
tree t;
{ {
int i; int i;
if (t == current_class_type) if (t == current_class_type)
...@@ -5996,8 +5860,7 @@ currently_open_class (t) ...@@ -5996,8 +5860,7 @@ currently_open_class (t)
something via unqualified lookup. */ something via unqualified lookup. */
tree tree
currently_open_derived_class (t) currently_open_derived_class (tree t)
tree t;
{ {
int i; int i;
...@@ -6023,9 +5886,7 @@ currently_open_derived_class (t) ...@@ -6023,9 +5886,7 @@ currently_open_derived_class (t)
formal of the same name. */ formal of the same name. */
void void
push_nested_class (type, modify) push_nested_class (tree type, int modify)
tree type;
int modify;
{ {
tree context; tree context;
...@@ -6048,7 +5909,7 @@ push_nested_class (type, modify) ...@@ -6048,7 +5909,7 @@ push_nested_class (type, modify)
/* Undoes a push_nested_class call. */ /* Undoes a push_nested_class call. */
void void
pop_nested_class () pop_nested_class (void)
{ {
tree context = DECL_CONTEXT (TYPE_MAIN_DECL (current_class_type)); tree context = DECL_CONTEXT (TYPE_MAIN_DECL (current_class_type));
...@@ -6060,7 +5921,7 @@ pop_nested_class () ...@@ -6060,7 +5921,7 @@ pop_nested_class ()
/* Returns the number of extern "LANG" blocks we are nested within. */ /* Returns the number of extern "LANG" blocks we are nested within. */
int int
current_lang_depth () current_lang_depth (void)
{ {
return VARRAY_ACTIVE_SIZE (current_lang_base); return VARRAY_ACTIVE_SIZE (current_lang_base);
} }
...@@ -6069,8 +5930,7 @@ current_lang_depth () ...@@ -6069,8 +5930,7 @@ current_lang_depth ()
so that behavior of name-mangling machinery is correct. */ so that behavior of name-mangling machinery is correct. */
void void
push_lang_context (name) push_lang_context (tree name)
tree name;
{ {
VARRAY_PUSH_TREE (current_lang_base, current_lang_name); VARRAY_PUSH_TREE (current_lang_base, current_lang_name);
...@@ -6105,7 +5965,7 @@ push_lang_context (name) ...@@ -6105,7 +5965,7 @@ push_lang_context (name)
/* Get out of the current language scope. */ /* Get out of the current language scope. */
void void
pop_lang_context () pop_lang_context (void)
{ {
current_lang_name = VARRAY_TOP_TREE (current_lang_base); current_lang_name = VARRAY_TOP_TREE (current_lang_base);
VARRAY_POP (current_lang_base); VARRAY_POP (current_lang_base);
...@@ -6122,18 +5982,12 @@ pop_lang_context () ...@@ -6122,18 +5982,12 @@ pop_lang_context ()
template arguments. */ template arguments. */
static tree static tree
resolve_address_of_overloaded_function (target_type, resolve_address_of_overloaded_function (tree target_type,
overload, tree overload,
complain, int complain,
ptrmem, int ptrmem,
template_only, int template_only,
explicit_targs) tree explicit_targs)
tree target_type;
tree overload;
int complain;
int ptrmem;
int template_only;
tree explicit_targs;
{ {
/* Here's what the standard says: /* Here's what the standard says:
...@@ -6398,9 +6252,7 @@ cannot resolve overloaded function `%D' based on conversion to type `%T'", ...@@ -6398,9 +6252,7 @@ cannot resolve overloaded function `%D' based on conversion to type `%T'",
function, or a pointer to member function. */ function, or a pointer to member function. */
tree tree
instantiate_type (lhstype, rhs, flags) instantiate_type (tree lhstype, tree rhs, tsubst_flags_t flags)
tree lhstype, rhs;
tsubst_flags_t flags;
{ {
int complain = (flags & tf_error); int complain = (flags & tf_error);
int strict = (flags & tf_no_attributes) int strict = (flags & tf_no_attributes)
...@@ -6651,8 +6503,7 @@ instantiate_type (lhstype, rhs, flags) ...@@ -6651,8 +6503,7 @@ instantiate_type (lhstype, rhs, flags)
all be the same name. Who knows for multiple inheritance). */ all be the same name. Who knows for multiple inheritance). */
static tree static tree
get_vfield_name (type) get_vfield_name (tree type)
tree type;
{ {
tree binfo = TYPE_BINFO (type); tree binfo = TYPE_BINFO (type);
char *buf; char *buf;
...@@ -6671,7 +6522,7 @@ get_vfield_name (type) ...@@ -6671,7 +6522,7 @@ get_vfield_name (type)
} }
void void
print_class_statistics () print_class_statistics (void)
{ {
#ifdef GATHER_STATISTICS #ifdef GATHER_STATISTICS
fprintf (stderr, "convert_harshness = %d\n", n_convert_harshness); fprintf (stderr, "convert_harshness = %d\n", n_convert_harshness);
...@@ -6695,7 +6546,7 @@ print_class_statistics () ...@@ -6695,7 +6546,7 @@ print_class_statistics ()
the inserted class name is treated as if it were a public member name. */ the inserted class name is treated as if it were a public member name. */
void void
build_self_reference () build_self_reference (void)
{ {
tree name = constructor_name (current_class_type); tree name = constructor_name (current_class_type);
tree value = build_lang_decl (TYPE_DECL, name, current_class_type); tree value = build_lang_decl (TYPE_DECL, name, current_class_type);
...@@ -6717,8 +6568,7 @@ build_self_reference () ...@@ -6717,8 +6568,7 @@ build_self_reference ()
/* Returns 1 if TYPE contains only padding bytes. */ /* Returns 1 if TYPE contains only padding bytes. */
int int
is_empty_class (type) is_empty_class (tree type)
tree type;
{ {
if (type == error_mark_node) if (type == error_mark_node)
return 0; return 0;
...@@ -6764,8 +6614,7 @@ contains_empty_class_p (tree type) ...@@ -6764,8 +6614,7 @@ contains_empty_class_p (tree type)
a *_TYPE node. NODE can also be a local class. */ a *_TYPE node. NODE can also be a local class. */
tree tree
get_enclosing_class (type) get_enclosing_class (tree type)
tree type;
{ {
tree node = type; tree node = type;
...@@ -6793,8 +6642,7 @@ get_enclosing_class (type) ...@@ -6793,8 +6642,7 @@ get_enclosing_class (type)
/* Return 1 if TYPE or one of its enclosing classes is derived from BASE. */ /* Return 1 if TYPE or one of its enclosing classes is derived from BASE. */
int int
is_base_of_enclosing_class (base, type) is_base_of_enclosing_class (tree base, tree type)
tree base, type;
{ {
while (type) while (type)
{ {
...@@ -6810,9 +6658,7 @@ is_base_of_enclosing_class (base, type) ...@@ -6810,9 +6658,7 @@ is_base_of_enclosing_class (base, type)
defined and that the result of that lookup was DECL. */ defined and that the result of that lookup was DECL. */
void void
maybe_note_name_used_in_class (name, decl) maybe_note_name_used_in_class (tree name, tree decl)
tree name;
tree decl;
{ {
splay_tree names_used; splay_tree names_used;
...@@ -6839,9 +6685,7 @@ maybe_note_name_used_in_class (name, decl) ...@@ -6839,9 +6685,7 @@ maybe_note_name_used_in_class (name, decl)
to see that the declaration is valid. */ to see that the declaration is valid. */
void void
note_name_declared_in_class (name, decl) note_name_declared_in_class (tree name, tree decl)
tree name;
tree decl;
{ {
splay_tree names_used; splay_tree names_used;
splay_tree_node n; splay_tree_node n;
...@@ -6872,8 +6716,7 @@ note_name_declared_in_class (name, decl) ...@@ -6872,8 +6716,7 @@ note_name_declared_in_class (name, decl)
will return the VAR_DECL for the primary vtable. */ will return the VAR_DECL for the primary vtable. */
tree tree
get_vtbl_decl_for_binfo (binfo) get_vtbl_decl_for_binfo (tree binfo)
tree binfo;
{ {
tree decl; tree decl;
...@@ -6894,9 +6737,7 @@ get_vtbl_decl_for_binfo (binfo) ...@@ -6894,9 +6737,7 @@ get_vtbl_decl_for_binfo (binfo)
who's TREE_VALUE is a list of candidate binfos that we fill in. */ who's TREE_VALUE is a list of candidate binfos that we fill in. */
static tree static tree
dfs_get_primary_binfo (binfo, data) dfs_get_primary_binfo (tree binfo, void* data)
tree binfo;
void *data;
{ {
tree cons = (tree) data; tree cons = (tree) data;
tree primary_base = TREE_PURPOSE (cons); tree primary_base = TREE_PURPOSE (cons);
...@@ -6919,8 +6760,7 @@ dfs_get_primary_binfo (binfo, data) ...@@ -6919,8 +6760,7 @@ dfs_get_primary_binfo (binfo, data)
object. Check BINFO_PRIMARY_P to be sure. */ object. Check BINFO_PRIMARY_P to be sure. */
tree tree
get_primary_binfo (binfo) get_primary_binfo (tree binfo)
tree binfo;
{ {
tree primary_base; tree primary_base;
tree result = NULL_TREE; tree result = NULL_TREE;
...@@ -6994,10 +6834,7 @@ get_primary_binfo (binfo) ...@@ -6994,10 +6834,7 @@ get_primary_binfo (binfo)
/* If INDENTED_P is zero, indent to INDENT. Return nonzero. */ /* If INDENTED_P is zero, indent to INDENT. Return nonzero. */
static int static int
maybe_indent_hierarchy (stream, indent, indented_p) maybe_indent_hierarchy (FILE * stream, int indent, int indented_p)
FILE *stream;
int indent;
int indented_p;
{ {
if (!indented_p) if (!indented_p)
fprintf (stream, "%*s", indent, ""); fprintf (stream, "%*s", indent, "");
...@@ -7009,12 +6846,11 @@ maybe_indent_hierarchy (stream, indent, indented_p) ...@@ -7009,12 +6846,11 @@ maybe_indent_hierarchy (stream, indent, indented_p)
the top level; it is incremented recursively. */ the top level; it is incremented recursively. */
static void static void
dump_class_hierarchy_r (stream, flags, t, binfo, indent) dump_class_hierarchy_r (FILE * stream,
FILE *stream; int flags,
int flags; tree t,
tree t; tree binfo,
tree binfo; int indent)
int indent;
{ {
int i; int i;
int indented = 0; int indented = 0;
...@@ -7105,8 +6941,7 @@ dump_class_hierarchy_r (stream, flags, t, binfo, indent) ...@@ -7105,8 +6941,7 @@ dump_class_hierarchy_r (stream, flags, t, binfo, indent)
/* Dump the BINFO hierarchy for T. */ /* Dump the BINFO hierarchy for T. */
static void static void
dump_class_hierarchy (t) dump_class_hierarchy (tree t)
tree t;
{ {
int flags; int flags;
FILE *stream = dump_begin (TDI_class, &flags); FILE *stream = dump_begin (TDI_class, &flags);
...@@ -7124,9 +6959,7 @@ dump_class_hierarchy (t) ...@@ -7124,9 +6959,7 @@ dump_class_hierarchy (t)
} }
static void static void
dump_array (stream, decl) dump_array (FILE * stream, tree decl)
FILE *stream;
tree decl;
{ {
tree inits; tree inits;
int ix; int ix;
...@@ -7148,10 +6981,7 @@ dump_array (stream, decl) ...@@ -7148,10 +6981,7 @@ dump_array (stream, decl)
} }
static void static void
dump_vtable (t, binfo, vtable) dump_vtable (tree t, tree binfo, tree vtable)
tree t;
tree binfo;
tree vtable;
{ {
int flags; int flags;
FILE *stream = dump_begin (TDI_class, &flags); FILE *stream = dump_begin (TDI_class, &flags);
...@@ -7181,9 +7011,7 @@ dump_vtable (t, binfo, vtable) ...@@ -7181,9 +7011,7 @@ dump_vtable (t, binfo, vtable)
} }
static void static void
dump_vtt (t, vtt) dump_vtt (tree t, tree vtt)
tree t;
tree vtt;
{ {
int flags; int flags;
FILE *stream = dump_begin (TDI_class, &flags); FILE *stream = dump_begin (TDI_class, &flags);
...@@ -7207,8 +7035,7 @@ dump_vtt (t, vtt) ...@@ -7207,8 +7035,7 @@ dump_vtt (t, vtt)
/* Create all the necessary vtables for T and its base classes. */ /* Create all the necessary vtables for T and its base classes. */
static void static void
finish_vtbls (t) finish_vtbls (tree t)
tree t;
{ {
tree list; tree list;
tree vbase; tree vbase;
...@@ -7256,9 +7083,7 @@ finish_vtbls (t) ...@@ -7256,9 +7083,7 @@ finish_vtbls (t)
/* Initialize the vtable for BINFO with the INITS. */ /* Initialize the vtable for BINFO with the INITS. */
static void static void
initialize_vtable (binfo, inits) initialize_vtable (tree binfo, tree inits)
tree binfo;
tree inits;
{ {
tree decl; tree decl;
...@@ -7272,9 +7097,7 @@ initialize_vtable (binfo, inits) ...@@ -7272,9 +7097,7 @@ initialize_vtable (binfo, inits)
the INITS. */ the INITS. */
static void static void
initialize_array (decl, inits) initialize_array (tree decl, tree inits)
tree decl;
tree inits;
{ {
tree context; tree context;
...@@ -7300,8 +7123,7 @@ initialize_array (decl, inits) ...@@ -7300,8 +7123,7 @@ initialize_array (decl, inits)
Secondary VTTs look like complete object VTTs without part 4. */ Secondary VTTs look like complete object VTTs without part 4. */
static void static void
build_vtt (t) build_vtt (tree t)
tree t;
{ {
tree inits; tree inits;
tree type; tree type;
...@@ -7337,9 +7159,7 @@ build_vtt (t) ...@@ -7337,9 +7159,7 @@ build_vtt (t)
BINFO. */ BINFO. */
static tree static tree
get_original_base (base_binfo, binfo) get_original_base (tree base_binfo, tree binfo)
tree base_binfo;
tree binfo;
{ {
tree derived; tree derived;
int ix; int ix;
...@@ -7364,8 +7184,7 @@ get_original_base (base_binfo, binfo) ...@@ -7364,8 +7184,7 @@ get_original_base (base_binfo, binfo)
complete. VALUE can also be another BINFO, in which case we recurse. */ complete. VALUE can also be another BINFO, in which case we recurse. */
static tree static tree
binfo_ctor_vtable (binfo) binfo_ctor_vtable (tree binfo)
tree binfo;
{ {
tree vt; tree vt;
...@@ -7392,11 +7211,7 @@ binfo_ctor_vtable (binfo) ...@@ -7392,11 +7211,7 @@ binfo_ctor_vtable (binfo)
vtables for the BINFO-in-T variant. */ vtables for the BINFO-in-T variant. */
static tree * static tree *
build_vtt_inits (binfo, t, inits, index) build_vtt_inits (tree binfo, tree t, tree* inits, tree* index)
tree binfo;
tree t;
tree *inits;
tree *index;
{ {
int i; int i;
tree b; tree b;
...@@ -7503,9 +7318,7 @@ build_vtt_inits (binfo, t, inits, index) ...@@ -7503,9 +7318,7 @@ build_vtt_inits (binfo, t, inits, index)
TREE_TOP_LEVEL flag indicates that this is the primary VTT. */ TREE_TOP_LEVEL flag indicates that this is the primary VTT. */
static tree static tree
dfs_build_secondary_vptr_vtt_inits (binfo, data) dfs_build_secondary_vptr_vtt_inits (tree binfo, void* data)
tree binfo;
void *data;
{ {
tree l; tree l;
tree t; tree t;
...@@ -7568,9 +7381,7 @@ dfs_build_secondary_vptr_vtt_inits (binfo, data) ...@@ -7568,9 +7381,7 @@ dfs_build_secondary_vptr_vtt_inits (binfo, data)
hierarchy. */ hierarchy. */
static tree static tree
dfs_ctor_vtable_bases_queue_p (binfo, data) dfs_ctor_vtable_bases_queue_p (tree binfo, void* data)
tree binfo;
void *data;
{ {
if (TREE_VIA_VIRTUAL (binfo)) if (TREE_VIA_VIRTUAL (binfo))
/* Get the shared version. */ /* Get the shared version. */
...@@ -7587,9 +7398,7 @@ dfs_ctor_vtable_bases_queue_p (binfo, data) ...@@ -7587,9 +7398,7 @@ dfs_ctor_vtable_bases_queue_p (binfo, data)
TREE_VALUE is the TREE_TYPE of the base whose sub vtt was generated. */ TREE_VALUE is the TREE_TYPE of the base whose sub vtt was generated. */
static tree static tree
dfs_fixup_binfo_vtbls (binfo, data) dfs_fixup_binfo_vtbls (tree binfo, void* data)
tree binfo;
void *data;
{ {
CLEAR_BINFO_MARKED (binfo); CLEAR_BINFO_MARKED (binfo);
...@@ -7612,9 +7421,7 @@ dfs_fixup_binfo_vtbls (binfo, data) ...@@ -7612,9 +7421,7 @@ dfs_fixup_binfo_vtbls (binfo, data)
hierarchy dominated by T. */ hierarchy dominated by T. */
static void static void
build_ctor_vtbl_group (binfo, t) build_ctor_vtbl_group (tree binfo, tree t)
tree binfo;
tree t;
{ {
tree list; tree list;
tree type; tree type;
...@@ -7677,12 +7484,11 @@ build_ctor_vtbl_group (binfo, t) ...@@ -7677,12 +7484,11 @@ build_ctor_vtbl_group (binfo, t)
but are not necessarily the same in terms of layout. */ but are not necessarily the same in terms of layout. */
static void static void
accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, inits) accumulate_vtbl_inits (tree binfo,
tree binfo; tree orig_binfo,
tree orig_binfo; tree rtti_binfo,
tree rtti_binfo; tree t,
tree t; tree inits)
tree inits;
{ {
int i; int i;
int ctor_vtbl_p = !same_type_p (BINFO_TYPE (rtti_binfo), t); int ctor_vtbl_p = !same_type_p (BINFO_TYPE (rtti_binfo), t);
...@@ -7731,12 +7537,11 @@ accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, inits) ...@@ -7731,12 +7537,11 @@ accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, inits)
the BINFO vtable. */ the BINFO vtable. */
static tree static tree
dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l) dfs_accumulate_vtbl_inits (tree binfo,
tree binfo; tree orig_binfo,
tree orig_binfo; tree rtti_binfo,
tree rtti_binfo; tree t,
tree t; tree l)
tree l;
{ {
tree inits = NULL_TREE; tree inits = NULL_TREE;
tree vtbl = NULL_TREE; tree vtbl = NULL_TREE;
...@@ -7858,12 +7663,11 @@ dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l) ...@@ -7858,12 +7663,11 @@ dfs_accumulate_vtbl_inits (binfo, orig_binfo, rtti_binfo, t, l)
constructed. */ constructed. */
static tree static tree
build_vtbl_initializer (binfo, orig_binfo, t, rtti_binfo, non_fn_entries_p) build_vtbl_initializer (tree binfo,
tree binfo; tree orig_binfo,
tree orig_binfo; tree t,
tree t; tree rtti_binfo,
tree rtti_binfo; int* non_fn_entries_p)
int *non_fn_entries_p;
{ {
tree v, b; tree v, b;
tree vfun_inits; tree vfun_inits;
...@@ -8028,9 +7832,7 @@ build_vtbl_initializer (binfo, orig_binfo, t, rtti_binfo, non_fn_entries_p) ...@@ -8028,9 +7832,7 @@ build_vtbl_initializer (binfo, orig_binfo, t, rtti_binfo, non_fn_entries_p)
offsets in BINFO, which is in the hierarchy dominated by T. */ offsets in BINFO, which is in the hierarchy dominated by T. */
static void static void
build_vcall_and_vbase_vtbl_entries (binfo, vid) build_vcall_and_vbase_vtbl_entries (tree binfo, vtbl_init_data* vid)
tree binfo;
vtbl_init_data *vid;
{ {
tree b; tree b;
...@@ -8052,9 +7854,7 @@ build_vcall_and_vbase_vtbl_entries (binfo, vid) ...@@ -8052,9 +7854,7 @@ build_vcall_and_vbase_vtbl_entries (binfo, vid)
where the next vbase offset will go. */ where the next vbase offset will go. */
static void static void
build_vbase_offset_vtbl_entries (binfo, vid) build_vbase_offset_vtbl_entries (tree binfo, vtbl_init_data* vid)
tree binfo;
vtbl_init_data *vid;
{ {
tree vbase; tree vbase;
tree t; tree t;
...@@ -8158,9 +7958,7 @@ build_vbase_offset_vtbl_entries (binfo, vid) ...@@ -8158,9 +7958,7 @@ build_vbase_offset_vtbl_entries (binfo, vid)
to VID->INITS. */ to VID->INITS. */
static void static void
build_vcall_offset_vtbl_entries (binfo, vid) build_vcall_offset_vtbl_entries (tree binfo, vtbl_init_data* vid)
tree binfo;
vtbl_init_data *vid;
{ {
/* We only need these entries if this base is a virtual base. We /* We only need these entries if this base is a virtual base. We
compute the indices -- but do not add to the vtable -- when compute the indices -- but do not add to the vtable -- when
...@@ -8198,9 +7996,7 @@ build_vcall_offset_vtbl_entries (binfo, vid) ...@@ -8198,9 +7996,7 @@ build_vcall_offset_vtbl_entries (binfo, vid)
/* Build vcall offsets, starting with those for BINFO. */ /* Build vcall offsets, starting with those for BINFO. */
static void static void
add_vcall_offset_vtbl_entries_r (binfo, vid) add_vcall_offset_vtbl_entries_r (tree binfo, vtbl_init_data* vid)
tree binfo;
vtbl_init_data *vid;
{ {
int i; int i;
tree primary_binfo; tree primary_binfo;
...@@ -8234,9 +8030,7 @@ add_vcall_offset_vtbl_entries_r (binfo, vid) ...@@ -8234,9 +8030,7 @@ add_vcall_offset_vtbl_entries_r (binfo, vid)
/* Called from build_vcall_offset_vtbl_entries_r. */ /* Called from build_vcall_offset_vtbl_entries_r. */
static void static void
add_vcall_offset_vtbl_entries_1 (binfo, vid) add_vcall_offset_vtbl_entries_1 (tree binfo, vtbl_init_data* vid)
tree binfo;
vtbl_init_data* vid;
{ {
/* Make entries for the rest of the virtuals. */ /* Make entries for the rest of the virtuals. */
if (abi_version_at_least (2)) if (abi_version_at_least (2))
...@@ -8394,9 +8188,7 @@ add_vcall_offset (tree orig_fn, tree binfo, vtbl_init_data *vid) ...@@ -8394,9 +8188,7 @@ add_vcall_offset (tree orig_fn, tree binfo, vtbl_init_data *vid)
by VID->rtti_binfo. */ by VID->rtti_binfo. */
static void static void
build_rtti_vtbl_entries (binfo, vid) build_rtti_vtbl_entries (tree binfo, vtbl_init_data* vid)
tree binfo;
vtbl_init_data *vid;
{ {
tree b; tree b;
tree t; tree t;
......
...@@ -213,53 +213,53 @@ typedef struct cp_lexer GTY (()) ...@@ -213,53 +213,53 @@ typedef struct cp_lexer GTY (())
/* Prototypes. */ /* Prototypes. */
static cp_lexer *cp_lexer_new_main static cp_lexer *cp_lexer_new_main
PARAMS ((void)); (void);
static cp_lexer *cp_lexer_new_from_tokens static cp_lexer *cp_lexer_new_from_tokens
PARAMS ((struct cp_token_cache *)); (struct cp_token_cache *);
static int cp_lexer_saving_tokens static int cp_lexer_saving_tokens
PARAMS ((const cp_lexer *)); (const cp_lexer *);
static cp_token *cp_lexer_next_token static cp_token *cp_lexer_next_token
PARAMS ((cp_lexer *, cp_token *)); (cp_lexer *, cp_token *);
static ptrdiff_t cp_lexer_token_difference static ptrdiff_t cp_lexer_token_difference
PARAMS ((cp_lexer *, cp_token *, cp_token *)); (cp_lexer *, cp_token *, cp_token *);
static cp_token *cp_lexer_read_token static cp_token *cp_lexer_read_token
PARAMS ((cp_lexer *)); (cp_lexer *);
static void cp_lexer_maybe_grow_buffer static void cp_lexer_maybe_grow_buffer
PARAMS ((cp_lexer *)); (cp_lexer *);
static void cp_lexer_get_preprocessor_token static void cp_lexer_get_preprocessor_token
PARAMS ((cp_lexer *, cp_token *)); (cp_lexer *, cp_token *);
static cp_token *cp_lexer_peek_token static cp_token *cp_lexer_peek_token
PARAMS ((cp_lexer *)); (cp_lexer *);
static cp_token *cp_lexer_peek_nth_token static cp_token *cp_lexer_peek_nth_token
PARAMS ((cp_lexer *, size_t)); (cp_lexer *, size_t);
static inline bool cp_lexer_next_token_is static inline bool cp_lexer_next_token_is
PARAMS ((cp_lexer *, enum cpp_ttype)); (cp_lexer *, enum cpp_ttype);
static bool cp_lexer_next_token_is_not static bool cp_lexer_next_token_is_not
PARAMS ((cp_lexer *, enum cpp_ttype)); (cp_lexer *, enum cpp_ttype);
static bool cp_lexer_next_token_is_keyword static bool cp_lexer_next_token_is_keyword
PARAMS ((cp_lexer *, enum rid)); (cp_lexer *, enum rid);
static cp_token *cp_lexer_consume_token static cp_token *cp_lexer_consume_token
PARAMS ((cp_lexer *)); (cp_lexer *);
static void cp_lexer_purge_token static void cp_lexer_purge_token
(cp_lexer *); (cp_lexer *);
static void cp_lexer_purge_tokens_after static void cp_lexer_purge_tokens_after
(cp_lexer *, cp_token *); (cp_lexer *, cp_token *);
static void cp_lexer_save_tokens static void cp_lexer_save_tokens
PARAMS ((cp_lexer *)); (cp_lexer *);
static void cp_lexer_commit_tokens static void cp_lexer_commit_tokens
PARAMS ((cp_lexer *)); (cp_lexer *);
static void cp_lexer_rollback_tokens static void cp_lexer_rollback_tokens
PARAMS ((cp_lexer *)); (cp_lexer *);
static inline void cp_lexer_set_source_position_from_token static inline void cp_lexer_set_source_position_from_token
PARAMS ((cp_lexer *, const cp_token *)); (cp_lexer *, const cp_token *);
static void cp_lexer_print_token static void cp_lexer_print_token
PARAMS ((FILE *, cp_token *)); (FILE *, cp_token *);
static inline bool cp_lexer_debugging_p static inline bool cp_lexer_debugging_p
PARAMS ((cp_lexer *)); (cp_lexer *);
static void cp_lexer_start_debugging static void cp_lexer_start_debugging
PARAMS ((cp_lexer *)) ATTRIBUTE_UNUSED; (cp_lexer *) ATTRIBUTE_UNUSED;
static void cp_lexer_stop_debugging static void cp_lexer_stop_debugging
PARAMS ((cp_lexer *)) ATTRIBUTE_UNUSED; (cp_lexer *) ATTRIBUTE_UNUSED;
/* Manifest constants. */ /* Manifest constants. */
...@@ -398,9 +398,8 @@ cp_lexer_debugging_p (cp_lexer *lexer) ...@@ -398,9 +398,8 @@ cp_lexer_debugging_p (cp_lexer *lexer)
TOKEN. */ TOKEN. */
static inline void static inline void
cp_lexer_set_source_position_from_token (lexer, token) cp_lexer_set_source_position_from_token (cp_lexer *lexer ATTRIBUTE_UNUSED ,
cp_lexer *lexer ATTRIBUTE_UNUSED; const cp_token *token)
const cp_token *token;
{ {
/* Ideally, the source position information would not be a global /* Ideally, the source position information would not be a global
variable, but it is. */ variable, but it is. */
...@@ -417,9 +416,7 @@ cp_lexer_set_source_position_from_token (lexer, token) ...@@ -417,9 +416,7 @@ cp_lexer_set_source_position_from_token (lexer, token)
the next token in the buffer. */ the next token in the buffer. */
static inline cp_token * static inline cp_token *
cp_lexer_next_token (lexer, token) cp_lexer_next_token (cp_lexer* lexer, cp_token* token)
cp_lexer *lexer;
cp_token *token;
{ {
token++; token++;
if (token == lexer->buffer_end) if (token == lexer->buffer_end)
...@@ -430,8 +427,7 @@ cp_lexer_next_token (lexer, token) ...@@ -430,8 +427,7 @@ cp_lexer_next_token (lexer, token)
/* Non-zero if we are presently saving tokens. */ /* Non-zero if we are presently saving tokens. */
static int static int
cp_lexer_saving_tokens (lexer) cp_lexer_saving_tokens (const cp_lexer* lexer)
const cp_lexer *lexer;
{ {
return VARRAY_ACTIVE_SIZE (lexer->saved_tokens) != 0; return VARRAY_ACTIVE_SIZE (lexer->saved_tokens) != 0;
} }
...@@ -452,10 +448,7 @@ cp_lexer_advance_token (cp_lexer *lexer, cp_token *token, ptrdiff_t n) ...@@ -452,10 +448,7 @@ cp_lexer_advance_token (cp_lexer *lexer, cp_token *token, ptrdiff_t n)
to reach FINISH. If START and FINISH are the same, returns zero. */ to reach FINISH. If START and FINISH are the same, returns zero. */
static ptrdiff_t static ptrdiff_t
cp_lexer_token_difference (lexer, start, finish) cp_lexer_token_difference (cp_lexer* lexer, cp_token* start, cp_token* finish)
cp_lexer *lexer;
cp_token *start;
cp_token *finish;
{ {
if (finish >= start) if (finish >= start)
return finish - start; return finish - start;
...@@ -468,8 +461,7 @@ cp_lexer_token_difference (lexer, start, finish) ...@@ -468,8 +461,7 @@ cp_lexer_token_difference (lexer, start, finish)
token buffer. Returns the newly read token. */ token buffer. Returns the newly read token. */
static cp_token * static cp_token *
cp_lexer_read_token (lexer) cp_lexer_read_token (cp_lexer* lexer)
cp_lexer *lexer;
{ {
cp_token *token; cp_token *token;
...@@ -560,8 +552,7 @@ cp_lexer_read_token (lexer) ...@@ -560,8 +552,7 @@ cp_lexer_read_token (lexer)
/* If the circular buffer is full, make it bigger. */ /* If the circular buffer is full, make it bigger. */
static void static void
cp_lexer_maybe_grow_buffer (lexer) cp_lexer_maybe_grow_buffer (cp_lexer* lexer)
cp_lexer *lexer;
{ {
/* If the buffer is full, enlarge it. */ /* If the buffer is full, enlarge it. */
if (lexer->last_token == lexer->first_token) if (lexer->last_token == lexer->first_token)
...@@ -621,9 +612,8 @@ cp_lexer_maybe_grow_buffer (lexer) ...@@ -621,9 +612,8 @@ cp_lexer_maybe_grow_buffer (lexer)
/* Store the next token from the preprocessor in *TOKEN. */ /* Store the next token from the preprocessor in *TOKEN. */
static void static void
cp_lexer_get_preprocessor_token (lexer, token) cp_lexer_get_preprocessor_token (cp_lexer *lexer ATTRIBUTE_UNUSED ,
cp_lexer *lexer ATTRIBUTE_UNUSED; cp_token *token)
cp_token *token;
{ {
bool done; bool done;
...@@ -690,8 +680,7 @@ cp_lexer_get_preprocessor_token (lexer, token) ...@@ -690,8 +680,7 @@ cp_lexer_get_preprocessor_token (lexer, token)
consume it. */ consume it. */
static cp_token * static cp_token *
cp_lexer_peek_token (lexer) cp_lexer_peek_token (cp_lexer* lexer)
cp_lexer *lexer;
{ {
cp_token *token; cp_token *token;
...@@ -715,9 +704,7 @@ cp_lexer_peek_token (lexer) ...@@ -715,9 +704,7 @@ cp_lexer_peek_token (lexer)
/* Return true if the next token has the indicated TYPE. */ /* Return true if the next token has the indicated TYPE. */
static bool static bool
cp_lexer_next_token_is (lexer, type) cp_lexer_next_token_is (cp_lexer* lexer, enum cpp_ttype type)
cp_lexer *lexer;
enum cpp_ttype type;
{ {
cp_token *token; cp_token *token;
...@@ -730,9 +717,7 @@ cp_lexer_next_token_is (lexer, type) ...@@ -730,9 +717,7 @@ cp_lexer_next_token_is (lexer, type)
/* Return true if the next token does not have the indicated TYPE. */ /* Return true if the next token does not have the indicated TYPE. */
static bool static bool
cp_lexer_next_token_is_not (lexer, type) cp_lexer_next_token_is_not (cp_lexer* lexer, enum cpp_ttype type)
cp_lexer *lexer;
enum cpp_ttype type;
{ {
return !cp_lexer_next_token_is (lexer, type); return !cp_lexer_next_token_is (lexer, type);
} }
...@@ -740,9 +725,7 @@ cp_lexer_next_token_is_not (lexer, type) ...@@ -740,9 +725,7 @@ cp_lexer_next_token_is_not (lexer, type)
/* Return true if the next token is the indicated KEYWORD. */ /* Return true if the next token is the indicated KEYWORD. */
static bool static bool
cp_lexer_next_token_is_keyword (lexer, keyword) cp_lexer_next_token_is_keyword (cp_lexer* lexer, enum rid keyword)
cp_lexer *lexer;
enum rid keyword;
{ {
cp_token *token; cp_token *token;
...@@ -756,9 +739,7 @@ cp_lexer_next_token_is_keyword (lexer, keyword) ...@@ -756,9 +739,7 @@ cp_lexer_next_token_is_keyword (lexer, keyword)
then this is precisely equivalent to cp_lexer_peek_token. */ then this is precisely equivalent to cp_lexer_peek_token. */
static cp_token * static cp_token *
cp_lexer_peek_nth_token (lexer, n) cp_lexer_peek_nth_token (cp_lexer* lexer, size_t n)
cp_lexer *lexer;
size_t n;
{ {
cp_token *token; cp_token *token;
...@@ -793,8 +774,7 @@ cp_lexer_peek_nth_token (lexer, n) ...@@ -793,8 +774,7 @@ cp_lexer_peek_nth_token (lexer, n)
time. */ time. */
static cp_token * static cp_token *
cp_lexer_consume_token (lexer) cp_lexer_consume_token (cp_lexer* lexer)
cp_lexer *lexer;
{ {
cp_token *token; cp_token *token;
...@@ -901,8 +881,7 @@ cp_lexer_purge_tokens_after (cp_lexer *lexer, cp_token *token) ...@@ -901,8 +881,7 @@ cp_lexer_purge_tokens_after (cp_lexer *lexer, cp_token *token)
preserved. */ preserved. */
static void static void
cp_lexer_save_tokens (lexer) cp_lexer_save_tokens (cp_lexer* lexer)
cp_lexer *lexer;
{ {
/* Provide debugging output. */ /* Provide debugging output. */
if (cp_lexer_debugging_p (lexer)) if (cp_lexer_debugging_p (lexer))
...@@ -922,8 +901,7 @@ cp_lexer_save_tokens (lexer) ...@@ -922,8 +901,7 @@ cp_lexer_save_tokens (lexer)
/* Commit to the portion of the token stream most recently saved. */ /* Commit to the portion of the token stream most recently saved. */
static void static void
cp_lexer_commit_tokens (lexer) cp_lexer_commit_tokens (cp_lexer* lexer)
cp_lexer *lexer;
{ {
/* Provide debugging output. */ /* Provide debugging output. */
if (cp_lexer_debugging_p (lexer)) if (cp_lexer_debugging_p (lexer))
...@@ -936,8 +914,7 @@ cp_lexer_commit_tokens (lexer) ...@@ -936,8 +914,7 @@ cp_lexer_commit_tokens (lexer)
to the token stream. Stop saving tokens. */ to the token stream. Stop saving tokens. */
static void static void
cp_lexer_rollback_tokens (lexer) cp_lexer_rollback_tokens (cp_lexer* lexer)
cp_lexer *lexer;
{ {
size_t delta; size_t delta;
...@@ -964,9 +941,7 @@ cp_lexer_rollback_tokens (lexer) ...@@ -964,9 +941,7 @@ cp_lexer_rollback_tokens (lexer)
/* Print a representation of the TOKEN on the STREAM. */ /* Print a representation of the TOKEN on the STREAM. */
static void static void
cp_lexer_print_token (stream, token) cp_lexer_print_token (FILE * stream, cp_token* token)
FILE *stream;
cp_token *token;
{ {
const char *token_type = NULL; const char *token_type = NULL;
...@@ -1036,8 +1011,7 @@ cp_lexer_print_token (stream, token) ...@@ -1036,8 +1011,7 @@ cp_lexer_print_token (stream, token)
/* Start emitting debugging information. */ /* Start emitting debugging information. */
static void static void
cp_lexer_start_debugging (lexer) cp_lexer_start_debugging (cp_lexer* lexer)
cp_lexer *lexer;
{ {
++lexer->debugging_p; ++lexer->debugging_p;
} }
...@@ -1045,8 +1019,7 @@ cp_lexer_start_debugging (lexer) ...@@ -1045,8 +1019,7 @@ cp_lexer_start_debugging (lexer)
/* Stop emitting debugging information. */ /* Stop emitting debugging information. */
static void static void
cp_lexer_stop_debugging (lexer) cp_lexer_stop_debugging (cp_lexer* lexer)
cp_lexer *lexer;
{ {
--lexer->debugging_p; --lexer->debugging_p;
} }
...@@ -1203,7 +1176,7 @@ typedef struct cp_parser_context GTY (()) ...@@ -1203,7 +1176,7 @@ typedef struct cp_parser_context GTY (())
/* Constructors and destructors. */ /* Constructors and destructors. */
static cp_parser_context *cp_parser_context_new static cp_parser_context *cp_parser_context_new
PARAMS ((cp_parser_context *)); (cp_parser_context *);
/* Class variables. */ /* Class variables. */
...@@ -1215,8 +1188,7 @@ static GTY((deletable (""))) cp_parser_context* cp_parser_context_free_list; ...@@ -1215,8 +1188,7 @@ static GTY((deletable (""))) cp_parser_context* cp_parser_context_free_list;
is given by NEXT. */ is given by NEXT. */
static cp_parser_context * static cp_parser_context *
cp_parser_context_new (next) cp_parser_context_new (cp_parser_context* next)
cp_parser_context *next;
{ {
cp_parser_context *context; cp_parser_context *context;
...@@ -1346,14 +1318,14 @@ typedef struct cp_parser GTY(()) ...@@ -1346,14 +1318,14 @@ typedef struct cp_parser GTY(())
} cp_parser; } cp_parser;
/* The type of a function that parses some kind of expression */ /* The type of a function that parses some kind of expression */
typedef tree (*cp_parser_expression_fn) PARAMS ((cp_parser *)); typedef tree (*cp_parser_expression_fn) (cp_parser *);
/* Prototypes. */ /* Prototypes. */
/* Constructors and destructors. */ /* Constructors and destructors. */
static cp_parser *cp_parser_new static cp_parser *cp_parser_new
PARAMS ((void)); (void);
/* Routines to parse various constructs. /* Routines to parse various constructs.
...@@ -1370,21 +1342,21 @@ static cp_parser *cp_parser_new ...@@ -1370,21 +1342,21 @@ static cp_parser *cp_parser_new
/* Lexical conventions [gram.lex] */ /* Lexical conventions [gram.lex] */
static tree cp_parser_identifier static tree cp_parser_identifier
PARAMS ((cp_parser *)); (cp_parser *);
/* Basic concepts [gram.basic] */ /* Basic concepts [gram.basic] */
static bool cp_parser_translation_unit static bool cp_parser_translation_unit
PARAMS ((cp_parser *)); (cp_parser *);
/* Expressions [gram.expr] */ /* Expressions [gram.expr] */
static tree cp_parser_primary_expression static tree cp_parser_primary_expression
(cp_parser *, cp_parser_id_kind *, tree *); (cp_parser *, cp_parser_id_kind *, tree *);
static tree cp_parser_id_expression static tree cp_parser_id_expression
PARAMS ((cp_parser *, bool, bool, bool *)); (cp_parser *, bool, bool, bool *);
static tree cp_parser_unqualified_id static tree cp_parser_unqualified_id
PARAMS ((cp_parser *, bool, bool)); (cp_parser *, bool, bool);
static tree cp_parser_nested_name_specifier_opt static tree cp_parser_nested_name_specifier_opt
(cp_parser *, bool, bool, bool); (cp_parser *, bool, bool, bool);
static tree cp_parser_nested_name_specifier static tree cp_parser_nested_name_specifier
...@@ -1394,179 +1366,179 @@ static tree cp_parser_class_or_namespace_name ...@@ -1394,179 +1366,179 @@ static tree cp_parser_class_or_namespace_name
static tree cp_parser_postfix_expression static tree cp_parser_postfix_expression
(cp_parser *, bool); (cp_parser *, bool);
static tree cp_parser_expression_list static tree cp_parser_expression_list
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_pseudo_destructor_name static void cp_parser_pseudo_destructor_name
PARAMS ((cp_parser *, tree *, tree *)); (cp_parser *, tree *, tree *);
static tree cp_parser_unary_expression static tree cp_parser_unary_expression
(cp_parser *, bool); (cp_parser *, bool);
static enum tree_code cp_parser_unary_operator static enum tree_code cp_parser_unary_operator
PARAMS ((cp_token *)); (cp_token *);
static tree cp_parser_new_expression static tree cp_parser_new_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_new_placement static tree cp_parser_new_placement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_new_type_id static tree cp_parser_new_type_id
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_new_declarator_opt static tree cp_parser_new_declarator_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_direct_new_declarator static tree cp_parser_direct_new_declarator
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_new_initializer static tree cp_parser_new_initializer
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_delete_expression static tree cp_parser_delete_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_cast_expression static tree cp_parser_cast_expression
(cp_parser *, bool); (cp_parser *, bool);
static tree cp_parser_pm_expression static tree cp_parser_pm_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_multiplicative_expression static tree cp_parser_multiplicative_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_additive_expression static tree cp_parser_additive_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_shift_expression static tree cp_parser_shift_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_relational_expression static tree cp_parser_relational_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_equality_expression static tree cp_parser_equality_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_and_expression static tree cp_parser_and_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_exclusive_or_expression static tree cp_parser_exclusive_or_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_inclusive_or_expression static tree cp_parser_inclusive_or_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_logical_and_expression static tree cp_parser_logical_and_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_logical_or_expression static tree cp_parser_logical_or_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_conditional_expression static tree cp_parser_conditional_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_question_colon_clause static tree cp_parser_question_colon_clause
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static tree cp_parser_assignment_expression static tree cp_parser_assignment_expression
PARAMS ((cp_parser *)); (cp_parser *);
static enum tree_code cp_parser_assignment_operator_opt static enum tree_code cp_parser_assignment_operator_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_expression static tree cp_parser_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_constant_expression static tree cp_parser_constant_expression
PARAMS ((cp_parser *)); (cp_parser *);
/* Statements [gram.stmt.stmt] */ /* Statements [gram.stmt.stmt] */
static void cp_parser_statement static void cp_parser_statement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_labeled_statement static tree cp_parser_labeled_statement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_expression_statement static tree cp_parser_expression_statement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_compound_statement static tree cp_parser_compound_statement
(cp_parser *); (cp_parser *);
static void cp_parser_statement_seq_opt static void cp_parser_statement_seq_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_selection_statement static tree cp_parser_selection_statement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_condition static tree cp_parser_condition
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_iteration_statement static tree cp_parser_iteration_statement
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_for_init_statement static void cp_parser_for_init_statement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_jump_statement static tree cp_parser_jump_statement
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_declaration_statement static void cp_parser_declaration_statement
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_implicitly_scoped_statement static tree cp_parser_implicitly_scoped_statement
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_already_scoped_statement static void cp_parser_already_scoped_statement
PARAMS ((cp_parser *)); (cp_parser *);
/* Declarations [gram.dcl.dcl] */ /* Declarations [gram.dcl.dcl] */
static void cp_parser_declaration_seq_opt static void cp_parser_declaration_seq_opt
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_declaration static void cp_parser_declaration
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_block_declaration static void cp_parser_block_declaration
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static void cp_parser_simple_declaration static void cp_parser_simple_declaration
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static tree cp_parser_decl_specifier_seq static tree cp_parser_decl_specifier_seq
PARAMS ((cp_parser *, cp_parser_flags, tree *, bool *)); (cp_parser *, cp_parser_flags, tree *, bool *);
static tree cp_parser_storage_class_specifier_opt static tree cp_parser_storage_class_specifier_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_function_specifier_opt static tree cp_parser_function_specifier_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_type_specifier static tree cp_parser_type_specifier
(cp_parser *, cp_parser_flags, bool, bool, bool *, bool *); (cp_parser *, cp_parser_flags, bool, bool, bool *, bool *);
static tree cp_parser_simple_type_specifier static tree cp_parser_simple_type_specifier
PARAMS ((cp_parser *, cp_parser_flags)); (cp_parser *, cp_parser_flags);
static tree cp_parser_type_name static tree cp_parser_type_name
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_elaborated_type_specifier static tree cp_parser_elaborated_type_specifier
PARAMS ((cp_parser *, bool, bool)); (cp_parser *, bool, bool);
static tree cp_parser_enum_specifier static tree cp_parser_enum_specifier
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_enumerator_list static void cp_parser_enumerator_list
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static void cp_parser_enumerator_definition static void cp_parser_enumerator_definition
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static tree cp_parser_namespace_name static tree cp_parser_namespace_name
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_namespace_definition static void cp_parser_namespace_definition
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_namespace_body static void cp_parser_namespace_body
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_qualified_namespace_specifier static tree cp_parser_qualified_namespace_specifier
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_namespace_alias_definition static void cp_parser_namespace_alias_definition
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_using_declaration static void cp_parser_using_declaration
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_using_directive static void cp_parser_using_directive
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_asm_definition static void cp_parser_asm_definition
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_linkage_specification static void cp_parser_linkage_specification
PARAMS ((cp_parser *)); (cp_parser *);
/* Declarators [gram.dcl.decl] */ /* Declarators [gram.dcl.decl] */
static tree cp_parser_init_declarator static tree cp_parser_init_declarator
PARAMS ((cp_parser *, tree, tree, bool, bool, bool *)); (cp_parser *, tree, tree, bool, bool, bool *);
static tree cp_parser_declarator static tree cp_parser_declarator
PARAMS ((cp_parser *, cp_parser_declarator_kind, bool *)); (cp_parser *, cp_parser_declarator_kind, bool *);
static tree cp_parser_direct_declarator static tree cp_parser_direct_declarator
PARAMS ((cp_parser *, cp_parser_declarator_kind, bool *)); (cp_parser *, cp_parser_declarator_kind, bool *);
static enum tree_code cp_parser_ptr_operator static enum tree_code cp_parser_ptr_operator
PARAMS ((cp_parser *, tree *, tree *)); (cp_parser *, tree *, tree *);
static tree cp_parser_cv_qualifier_seq_opt static tree cp_parser_cv_qualifier_seq_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_cv_qualifier_opt static tree cp_parser_cv_qualifier_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_declarator_id static tree cp_parser_declarator_id
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_type_id static tree cp_parser_type_id
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_type_specifier_seq static tree cp_parser_type_specifier_seq
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_parameter_declaration_clause static tree cp_parser_parameter_declaration_clause
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_parameter_declaration_list static tree cp_parser_parameter_declaration_list
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_parameter_declaration static tree cp_parser_parameter_declaration
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static tree cp_parser_function_definition static tree cp_parser_function_definition
PARAMS ((cp_parser *, bool *)); (cp_parser *, bool *);
static void cp_parser_function_body static void cp_parser_function_body
(cp_parser *); (cp_parser *);
static tree cp_parser_initializer static tree cp_parser_initializer
PARAMS ((cp_parser *, bool *)); (cp_parser *, bool *);
static tree cp_parser_initializer_clause static tree cp_parser_initializer_clause
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_initializer_list static tree cp_parser_initializer_list
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_ctor_initializer_opt_and_function_body static bool cp_parser_ctor_initializer_opt_and_function_body
(cp_parser *); (cp_parser *);
...@@ -1576,162 +1548,160 @@ static bool cp_parser_ctor_initializer_opt_and_function_body ...@@ -1576,162 +1548,160 @@ static bool cp_parser_ctor_initializer_opt_and_function_body
static tree cp_parser_class_name static tree cp_parser_class_name
(cp_parser *, bool, bool, bool, bool, bool, bool); (cp_parser *, bool, bool, bool, bool, bool, bool);
static tree cp_parser_class_specifier static tree cp_parser_class_specifier
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_class_head static tree cp_parser_class_head
PARAMS ((cp_parser *, bool *)); (cp_parser *, bool *);
static enum tag_types cp_parser_class_key static enum tag_types cp_parser_class_key
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_member_specification_opt static void cp_parser_member_specification_opt
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_member_declaration static void cp_parser_member_declaration
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_pure_specifier static tree cp_parser_pure_specifier
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_constant_initializer static tree cp_parser_constant_initializer
PARAMS ((cp_parser *)); (cp_parser *);
/* Derived classes [gram.class.derived] */ /* Derived classes [gram.class.derived] */
static tree cp_parser_base_clause static tree cp_parser_base_clause
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_base_specifier static tree cp_parser_base_specifier
PARAMS ((cp_parser *)); (cp_parser *);
/* Special member functions [gram.special] */ /* Special member functions [gram.special] */
static tree cp_parser_conversion_function_id static tree cp_parser_conversion_function_id
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_conversion_type_id static tree cp_parser_conversion_type_id
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_conversion_declarator_opt static tree cp_parser_conversion_declarator_opt
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_ctor_initializer_opt static bool cp_parser_ctor_initializer_opt
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_mem_initializer_list static void cp_parser_mem_initializer_list
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_mem_initializer static tree cp_parser_mem_initializer
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_mem_initializer_id static tree cp_parser_mem_initializer_id
PARAMS ((cp_parser *)); (cp_parser *);
/* Overloading [gram.over] */ /* Overloading [gram.over] */
static tree cp_parser_operator_function_id static tree cp_parser_operator_function_id
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_operator static tree cp_parser_operator
PARAMS ((cp_parser *)); (cp_parser *);
/* Templates [gram.temp] */ /* Templates [gram.temp] */
static void cp_parser_template_declaration static void cp_parser_template_declaration
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static tree cp_parser_template_parameter_list static tree cp_parser_template_parameter_list
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_template_parameter static tree cp_parser_template_parameter
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_type_parameter static tree cp_parser_type_parameter
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_template_id static tree cp_parser_template_id
PARAMS ((cp_parser *, bool, bool)); (cp_parser *, bool, bool);
static tree cp_parser_template_name static tree cp_parser_template_name
PARAMS ((cp_parser *, bool, bool)); (cp_parser *, bool, bool);
static tree cp_parser_template_argument_list static tree cp_parser_template_argument_list
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_template_argument static tree cp_parser_template_argument
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_explicit_instantiation static void cp_parser_explicit_instantiation
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_explicit_specialization static void cp_parser_explicit_specialization
PARAMS ((cp_parser *)); (cp_parser *);
/* Exception handling [gram.exception] */ /* Exception handling [gram.exception] */
static tree cp_parser_try_block static tree cp_parser_try_block
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_function_try_block static bool cp_parser_function_try_block
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_handler_seq static void cp_parser_handler_seq
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_handler static void cp_parser_handler
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_exception_declaration static tree cp_parser_exception_declaration
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_throw_expression static tree cp_parser_throw_expression
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_exception_specification_opt static tree cp_parser_exception_specification_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_type_id_list static tree cp_parser_type_id_list
PARAMS ((cp_parser *)); (cp_parser *);
/* GNU Extensions */ /* GNU Extensions */
static tree cp_parser_asm_specification_opt static tree cp_parser_asm_specification_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_asm_operand_list static tree cp_parser_asm_operand_list
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_asm_clobber_list static tree cp_parser_asm_clobber_list
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_attributes_opt static tree cp_parser_attributes_opt
PARAMS ((cp_parser *)); (cp_parser *);
static tree cp_parser_attribute_list static tree cp_parser_attribute_list
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_extension_opt static bool cp_parser_extension_opt
PARAMS ((cp_parser *, int *)); (cp_parser *, int *);
static void cp_parser_label_declaration static void cp_parser_label_declaration
PARAMS ((cp_parser *)); (cp_parser *);
/* Utility Routines */ /* Utility Routines */
static tree cp_parser_lookup_name static tree cp_parser_lookup_name
PARAMS ((cp_parser *, tree, bool, bool, bool, bool)); (cp_parser *, tree, bool, bool, bool, bool);
static tree cp_parser_lookup_name_simple static tree cp_parser_lookup_name_simple
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static tree cp_parser_resolve_typename_type static tree cp_parser_resolve_typename_type
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static tree cp_parser_maybe_treat_template_as_class static tree cp_parser_maybe_treat_template_as_class
(tree, bool); (tree, bool);
static bool cp_parser_check_declarator_template_parameters static bool cp_parser_check_declarator_template_parameters
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static bool cp_parser_check_template_parameters static bool cp_parser_check_template_parameters
PARAMS ((cp_parser *, unsigned)); (cp_parser *, unsigned);
static tree cp_parser_binary_expression static tree cp_parser_binary_expression
PARAMS ((cp_parser *, (cp_parser *, const cp_parser_token_tree_map, cp_parser_expression_fn);
const cp_parser_token_tree_map,
cp_parser_expression_fn));
static tree cp_parser_global_scope_opt static tree cp_parser_global_scope_opt
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static bool cp_parser_constructor_declarator_p static bool cp_parser_constructor_declarator_p
(cp_parser *, bool); (cp_parser *, bool);
static tree cp_parser_function_definition_from_specifiers_and_declarator static tree cp_parser_function_definition_from_specifiers_and_declarator
PARAMS ((cp_parser *, tree, tree, tree)); (cp_parser *, tree, tree, tree);
static tree cp_parser_function_definition_after_declarator static tree cp_parser_function_definition_after_declarator
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static void cp_parser_template_declaration_after_export static void cp_parser_template_declaration_after_export
PARAMS ((cp_parser *, bool)); (cp_parser *, bool);
static tree cp_parser_single_declaration static tree cp_parser_single_declaration
PARAMS ((cp_parser *, bool, bool *)); (cp_parser *, bool, bool *);
static tree cp_parser_functional_cast static tree cp_parser_functional_cast
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static void cp_parser_late_parsing_for_member static void cp_parser_late_parsing_for_member
PARAMS ((cp_parser *, tree)); (cp_parser *, tree);
static void cp_parser_late_parsing_default_args static void cp_parser_late_parsing_default_args
(cp_parser *, tree); (cp_parser *, tree);
static tree cp_parser_sizeof_operand static tree cp_parser_sizeof_operand
PARAMS ((cp_parser *, enum rid)); (cp_parser *, enum rid);
static bool cp_parser_declares_only_class_p static bool cp_parser_declares_only_class_p
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_friend_p static bool cp_parser_friend_p
PARAMS ((tree)); (tree);
static cp_token *cp_parser_require static cp_token *cp_parser_require
PARAMS ((cp_parser *, enum cpp_ttype, const char *)); (cp_parser *, enum cpp_ttype, const char *);
static cp_token *cp_parser_require_keyword static cp_token *cp_parser_require_keyword
PARAMS ((cp_parser *, enum rid, const char *)); (cp_parser *, enum rid, const char *);
static bool cp_parser_token_starts_function_definition_p static bool cp_parser_token_starts_function_definition_p
PARAMS ((cp_token *)); (cp_token *);
static bool cp_parser_next_token_starts_class_definition_p static bool cp_parser_next_token_starts_class_definition_p
(cp_parser *); (cp_parser *);
static enum tag_types cp_parser_token_is_class_key static enum tag_types cp_parser_token_is_class_key
PARAMS ((cp_token *)); (cp_token *);
static void cp_parser_check_class_key static void cp_parser_check_class_key
(enum tag_types, tree type); (enum tag_types, tree type);
static bool cp_parser_optional_template_keyword static bool cp_parser_optional_template_keyword
...@@ -1741,55 +1711,54 @@ static void cp_parser_pre_parsed_nested_name_specifier ...@@ -1741,55 +1711,54 @@ static void cp_parser_pre_parsed_nested_name_specifier
static void cp_parser_cache_group static void cp_parser_cache_group
(cp_parser *, cp_token_cache *, enum cpp_ttype, unsigned); (cp_parser *, cp_token_cache *, enum cpp_ttype, unsigned);
static void cp_parser_parse_tentatively static void cp_parser_parse_tentatively
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_commit_to_tentative_parse static void cp_parser_commit_to_tentative_parse
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_abort_tentative_parse static void cp_parser_abort_tentative_parse
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_parse_definitely static bool cp_parser_parse_definitely
PARAMS ((cp_parser *)); (cp_parser *);
static inline bool cp_parser_parsing_tentatively static inline bool cp_parser_parsing_tentatively
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_committed_to_tentative_parse static bool cp_parser_committed_to_tentative_parse
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_error static void cp_parser_error
PARAMS ((cp_parser *, const char *)); (cp_parser *, const char *);
static bool cp_parser_simulate_error static bool cp_parser_simulate_error
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_check_type_definition static void cp_parser_check_type_definition
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_diagnose_invalid_type_name static bool cp_parser_diagnose_invalid_type_name
(cp_parser *); (cp_parser *);
static bool cp_parser_skip_to_closing_parenthesis static bool cp_parser_skip_to_closing_parenthesis
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_skip_to_closing_parenthesis_or_comma static bool cp_parser_skip_to_closing_parenthesis_or_comma
(cp_parser *); (cp_parser *);
static void cp_parser_skip_to_end_of_statement static void cp_parser_skip_to_end_of_statement
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_consume_semicolon_at_end_of_statement static void cp_parser_consume_semicolon_at_end_of_statement
(cp_parser *); (cp_parser *);
static void cp_parser_skip_to_end_of_block_or_statement static void cp_parser_skip_to_end_of_block_or_statement
PARAMS ((cp_parser *)); (cp_parser *);
static void cp_parser_skip_to_closing_brace static void cp_parser_skip_to_closing_brace
(cp_parser *); (cp_parser *);
static void cp_parser_skip_until_found static void cp_parser_skip_until_found
PARAMS ((cp_parser *, enum cpp_ttype, const char *)); (cp_parser *, enum cpp_ttype, const char *);
static bool cp_parser_error_occurred static bool cp_parser_error_occurred
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_allow_gnu_extensions_p static bool cp_parser_allow_gnu_extensions_p
PARAMS ((cp_parser *)); (cp_parser *);
static bool cp_parser_is_string_literal static bool cp_parser_is_string_literal
PARAMS ((cp_token *)); (cp_token *);
static bool cp_parser_is_keyword static bool cp_parser_is_keyword
PARAMS ((cp_token *, enum rid)); (cp_token *, enum rid);
static tree cp_parser_scope_through_which_access_occurs static tree cp_parser_scope_through_which_access_occurs
(tree, tree, tree); (tree, tree, tree);
/* Returns non-zero if we are parsing tentatively. */ /* Returns non-zero if we are parsing tentatively. */
static inline bool static inline bool
cp_parser_parsing_tentatively (parser) cp_parser_parsing_tentatively (cp_parser* parser)
cp_parser *parser;
{ {
return parser->context->next != NULL; return parser->context->next != NULL;
} }
...@@ -1797,8 +1766,7 @@ cp_parser_parsing_tentatively (parser) ...@@ -1797,8 +1766,7 @@ cp_parser_parsing_tentatively (parser)
/* Returns non-zero if TOKEN is a string literal. */ /* Returns non-zero if TOKEN is a string literal. */
static bool static bool
cp_parser_is_string_literal (token) cp_parser_is_string_literal (cp_token* token)
cp_token *token;
{ {
return (token->type == CPP_STRING || token->type == CPP_WSTRING); return (token->type == CPP_STRING || token->type == CPP_WSTRING);
} }
...@@ -1806,9 +1774,7 @@ cp_parser_is_string_literal (token) ...@@ -1806,9 +1774,7 @@ cp_parser_is_string_literal (token)
/* Returns non-zero if TOKEN is the indicated KEYWORD. */ /* Returns non-zero if TOKEN is the indicated KEYWORD. */
static bool static bool
cp_parser_is_keyword (token, keyword) cp_parser_is_keyword (cp_token* token, enum rid keyword)
cp_token *token;
enum rid keyword;
{ {
return token->keyword == keyword; return token->keyword == keyword;
} }
...@@ -1820,12 +1786,9 @@ cp_parser_is_keyword (token, keyword) ...@@ -1820,12 +1786,9 @@ cp_parser_is_keyword (token, keyword)
NESTED_NAME_SPECIFIER is `A'. */ NESTED_NAME_SPECIFIER is `A'. */
tree tree
cp_parser_scope_through_which_access_occurs (decl, cp_parser_scope_through_which_access_occurs (tree decl,
object_type, tree object_type,
nested_name_specifier) tree nested_name_specifier)
tree decl;
tree object_type;
tree nested_name_specifier;
{ {
tree scope; tree scope;
tree qualifying_type = NULL_TREE; tree qualifying_type = NULL_TREE;
...@@ -1875,9 +1838,7 @@ cp_parser_scope_through_which_access_occurs (decl, ...@@ -1875,9 +1838,7 @@ cp_parser_scope_through_which_access_occurs (decl,
/* Issue the indicated error MESSAGE. */ /* Issue the indicated error MESSAGE. */
static void static void
cp_parser_error (parser, message) cp_parser_error (cp_parser* parser, const char* message)
cp_parser *parser;
const char *message;
{ {
/* Output the MESSAGE -- unless we're parsing tentatively. */ /* Output the MESSAGE -- unless we're parsing tentatively. */
if (!cp_parser_simulate_error (parser)) if (!cp_parser_simulate_error (parser))
...@@ -1889,8 +1850,7 @@ cp_parser_error (parser, message) ...@@ -1889,8 +1850,7 @@ cp_parser_error (parser, message)
simulated; false if a messgae should be issued by the caller. */ simulated; false if a messgae should be issued by the caller. */
static bool static bool
cp_parser_simulate_error (parser) cp_parser_simulate_error (cp_parser* parser)
cp_parser *parser;
{ {
if (cp_parser_parsing_tentatively (parser) if (cp_parser_parsing_tentatively (parser)
&& !cp_parser_committed_to_tentative_parse (parser)) && !cp_parser_committed_to_tentative_parse (parser))
...@@ -1906,8 +1866,7 @@ cp_parser_simulate_error (parser) ...@@ -1906,8 +1866,7 @@ cp_parser_simulate_error (parser)
issued. */ issued. */
static void static void
cp_parser_check_type_definition (parser) cp_parser_check_type_definition (cp_parser* parser)
cp_parser *parser;
{ {
/* If types are forbidden here, issue a message. */ /* If types are forbidden here, issue a message. */
if (parser->type_definition_forbidden_message) if (parser->type_definition_forbidden_message)
...@@ -2053,8 +2012,7 @@ cp_parser_skip_to_closing_parenthesis_or_comma (cp_parser *parser) ...@@ -2053,8 +2012,7 @@ cp_parser_skip_to_closing_parenthesis_or_comma (cp_parser *parser)
non-nested `}' comes first, then we stop before consuming that. */ non-nested `}' comes first, then we stop before consuming that. */
static void static void
cp_parser_skip_to_end_of_statement (parser) cp_parser_skip_to_end_of_statement (cp_parser* parser)
cp_parser *parser;
{ {
unsigned nesting_depth = 0; unsigned nesting_depth = 0;
...@@ -2132,8 +2090,7 @@ cp_parser_consume_semicolon_at_end_of_statement (cp_parser *parser) ...@@ -2132,8 +2090,7 @@ cp_parser_consume_semicolon_at_end_of_statement (cp_parser *parser)
have consumed a non-nested `;'. */ have consumed a non-nested `;'. */
static void static void
cp_parser_skip_to_end_of_block_or_statement (parser) cp_parser_skip_to_end_of_block_or_statement (cp_parser* parser)
cp_parser *parser;
{ {
unsigned nesting_depth = 0; unsigned nesting_depth = 0;
...@@ -2201,7 +2158,7 @@ cp_parser_skip_to_closing_brace (cp_parser *parser) ...@@ -2201,7 +2158,7 @@ cp_parser_skip_to_closing_brace (cp_parser *parser)
/* Create a new C++ parser. */ /* Create a new C++ parser. */
static cp_parser * static cp_parser *
cp_parser_new () cp_parser_new (void)
{ {
cp_parser *parser; cp_parser *parser;
cp_lexer *lexer; cp_lexer *lexer;
...@@ -2253,8 +2210,7 @@ cp_parser_new () ...@@ -2253,8 +2210,7 @@ cp_parser_new ()
identifier. */ identifier. */
static tree static tree
cp_parser_identifier (parser) cp_parser_identifier (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
...@@ -2274,8 +2230,7 @@ cp_parser_identifier (parser) ...@@ -2274,8 +2230,7 @@ cp_parser_identifier (parser)
Returns TRUE if all went well. */ Returns TRUE if all went well. */
static bool static bool
cp_parser_translation_unit (parser) cp_parser_translation_unit (cp_parser* parser)
cp_parser *parser;
{ {
while (true) while (true)
{ {
...@@ -2943,11 +2898,9 @@ cp_parser_id_expression (cp_parser *parser, ...@@ -2943,11 +2898,9 @@ cp_parser_id_expression (cp_parser *parser,
names are looked up in uninstantiated templates. */ names are looked up in uninstantiated templates. */
static tree static tree
cp_parser_unqualified_id (parser, template_keyword_p, cp_parser_unqualified_id (cp_parser* parser,
check_dependency_p) bool template_keyword_p,
cp_parser *parser; bool check_dependency_p)
bool template_keyword_p;
bool check_dependency_p;
{ {
cp_token *token; cp_token *token;
...@@ -4121,8 +4074,7 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p) ...@@ -4121,8 +4074,7 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p)
is returned even if there is only a single expression in the list. */ is returned even if there is only a single expression in the list. */
static tree static tree
cp_parser_expression_list (parser) cp_parser_expression_list (cp_parser* parser)
cp_parser *parser;
{ {
tree expression_list = NULL_TREE; tree expression_list = NULL_TREE;
...@@ -4171,10 +4123,9 @@ cp_parser_expression_list (parser) ...@@ -4171,10 +4123,9 @@ cp_parser_expression_list (parser)
or ERROR_MARK_NODE if no type-name is present. */ or ERROR_MARK_NODE if no type-name is present. */
static void static void
cp_parser_pseudo_destructor_name (parser, scope, type) cp_parser_pseudo_destructor_name (cp_parser* parser,
cp_parser *parser; tree* scope,
tree *scope; tree* type)
tree *type;
{ {
bool nested_name_specifier_p; bool nested_name_specifier_p;
...@@ -4419,8 +4370,7 @@ cp_parser_unary_expression (cp_parser *parser, bool address_p) ...@@ -4419,8 +4370,7 @@ cp_parser_unary_expression (cp_parser *parser, bool address_p)
unary-operator, the corresponding tree code is returned. */ unary-operator, the corresponding tree code is returned. */
static enum tree_code static enum tree_code
cp_parser_unary_operator (token) cp_parser_unary_operator (cp_token* token)
cp_token *token;
{ {
switch (token->type) switch (token->type)
{ {
...@@ -4455,8 +4405,7 @@ cp_parser_unary_operator (token) ...@@ -4455,8 +4405,7 @@ cp_parser_unary_operator (token)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_new_expression (parser) cp_parser_new_expression (cp_parser* parser)
cp_parser *parser;
{ {
bool global_scope_p; bool global_scope_p;
tree placement; tree placement;
...@@ -4512,8 +4461,7 @@ cp_parser_new_expression (parser) ...@@ -4512,8 +4461,7 @@ cp_parser_new_expression (parser)
Returns the same representation as for an expression-list. */ Returns the same representation as for an expression-list. */
static tree static tree
cp_parser_new_placement (parser) cp_parser_new_placement (cp_parser* parser)
cp_parser *parser;
{ {
tree expression_list; tree expression_list;
...@@ -4537,8 +4485,7 @@ cp_parser_new_placement (parser) ...@@ -4537,8 +4485,7 @@ cp_parser_new_placement (parser)
and whose TREE_VALUE is the new-declarator. */ and whose TREE_VALUE is the new-declarator. */
static tree static tree
cp_parser_new_type_id (parser) cp_parser_new_type_id (cp_parser* parser)
cp_parser *parser;
{ {
tree type_specifier_seq; tree type_specifier_seq;
tree declarator; tree declarator;
...@@ -4571,8 +4518,7 @@ cp_parser_new_type_id (parser) ...@@ -4571,8 +4518,7 @@ cp_parser_new_type_id (parser)
cp_parser_declarator for the representations used. */ cp_parser_declarator for the representations used. */
static tree static tree
cp_parser_new_declarator_opt (parser) cp_parser_new_declarator_opt (cp_parser* parser)
cp_parser *parser;
{ {
enum tree_code code; enum tree_code code;
tree type; tree type;
...@@ -4622,8 +4568,7 @@ cp_parser_new_declarator_opt (parser) ...@@ -4622,8 +4568,7 @@ cp_parser_new_declarator_opt (parser)
documented for cp_parser_direct_declarator. */ documented for cp_parser_direct_declarator. */
static tree static tree
cp_parser_direct_new_declarator (parser) cp_parser_direct_new_declarator (cp_parser* parser)
cp_parser *parser;
{ {
tree declarator = NULL_TREE; tree declarator = NULL_TREE;
...@@ -4683,8 +4628,7 @@ cp_parser_direct_new_declarator (parser) ...@@ -4683,8 +4628,7 @@ cp_parser_direct_new_declarator (parser)
expression-list, VOID_ZERO_NODE is returned. */ expression-list, VOID_ZERO_NODE is returned. */
static tree static tree
cp_parser_new_initializer (parser) cp_parser_new_initializer (cp_parser* parser)
cp_parser *parser;
{ {
tree expression_list; tree expression_list;
...@@ -4711,8 +4655,7 @@ cp_parser_new_initializer (parser) ...@@ -4711,8 +4655,7 @@ cp_parser_new_initializer (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_delete_expression (parser) cp_parser_delete_expression (cp_parser* parser)
cp_parser *parser;
{ {
bool global_scope_p; bool global_scope_p;
bool array_p; bool array_p;
...@@ -4848,8 +4791,7 @@ cp_parser_cast_expression (cp_parser *parser, bool address_p) ...@@ -4848,8 +4791,7 @@ cp_parser_cast_expression (cp_parser *parser, bool address_p)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_pm_expression (parser) cp_parser_pm_expression (cp_parser* parser)
cp_parser *parser;
{ {
tree cast_expr; tree cast_expr;
tree pm_expr; tree pm_expr;
...@@ -4900,8 +4842,7 @@ cp_parser_pm_expression (parser) ...@@ -4900,8 +4842,7 @@ cp_parser_pm_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_multiplicative_expression (parser) cp_parser_multiplicative_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_MULT, MULT_EXPR }, { CPP_MULT, MULT_EXPR },
...@@ -4925,8 +4866,7 @@ cp_parser_multiplicative_expression (parser) ...@@ -4925,8 +4866,7 @@ cp_parser_multiplicative_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_additive_expression (parser) cp_parser_additive_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_PLUS, PLUS_EXPR }, { CPP_PLUS, PLUS_EXPR },
...@@ -4949,8 +4889,7 @@ cp_parser_additive_expression (parser) ...@@ -4949,8 +4889,7 @@ cp_parser_additive_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_shift_expression (parser) cp_parser_shift_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_LSHIFT, LSHIFT_EXPR }, { CPP_LSHIFT, LSHIFT_EXPR },
...@@ -4981,8 +4920,7 @@ cp_parser_shift_expression (parser) ...@@ -4981,8 +4920,7 @@ cp_parser_shift_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_relational_expression (parser) cp_parser_relational_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_LESS, LT_EXPR }, { CPP_LESS, LT_EXPR },
...@@ -5009,8 +4947,7 @@ cp_parser_relational_expression (parser) ...@@ -5009,8 +4947,7 @@ cp_parser_relational_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_equality_expression (parser) cp_parser_equality_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_EQ_EQ, EQ_EXPR }, { CPP_EQ_EQ, EQ_EXPR },
...@@ -5032,8 +4969,7 @@ cp_parser_equality_expression (parser) ...@@ -5032,8 +4969,7 @@ cp_parser_equality_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_and_expression (parser) cp_parser_and_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_AND, BIT_AND_EXPR }, { CPP_AND, BIT_AND_EXPR },
...@@ -5054,8 +4990,7 @@ cp_parser_and_expression (parser) ...@@ -5054,8 +4990,7 @@ cp_parser_and_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_exclusive_or_expression (parser) cp_parser_exclusive_or_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_XOR, BIT_XOR_EXPR }, { CPP_XOR, BIT_XOR_EXPR },
...@@ -5077,8 +5012,7 @@ cp_parser_exclusive_or_expression (parser) ...@@ -5077,8 +5012,7 @@ cp_parser_exclusive_or_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_inclusive_or_expression (parser) cp_parser_inclusive_or_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_OR, BIT_IOR_EXPR }, { CPP_OR, BIT_IOR_EXPR },
...@@ -5099,8 +5033,7 @@ cp_parser_inclusive_or_expression (parser) ...@@ -5099,8 +5033,7 @@ cp_parser_inclusive_or_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_logical_and_expression (parser) cp_parser_logical_and_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_AND_AND, TRUTH_ANDIF_EXPR }, { CPP_AND_AND, TRUTH_ANDIF_EXPR },
...@@ -5121,8 +5054,7 @@ cp_parser_logical_and_expression (parser) ...@@ -5121,8 +5054,7 @@ cp_parser_logical_and_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_logical_or_expression (parser) cp_parser_logical_or_expression (cp_parser* parser)
cp_parser *parser;
{ {
static const cp_parser_token_tree_map map = { static const cp_parser_token_tree_map map = {
{ CPP_OR_OR, TRUTH_ORIF_EXPR }, { CPP_OR_OR, TRUTH_ORIF_EXPR },
...@@ -5148,8 +5080,7 @@ cp_parser_logical_or_expression (parser) ...@@ -5148,8 +5080,7 @@ cp_parser_logical_or_expression (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_conditional_expression (parser) cp_parser_conditional_expression (cp_parser* parser)
cp_parser *parser;
{ {
tree logical_or_expr; tree logical_or_expr;
...@@ -5180,9 +5111,7 @@ cp_parser_conditional_expression (parser) ...@@ -5180,9 +5111,7 @@ cp_parser_conditional_expression (parser)
? : assignment-expression */ ? : assignment-expression */
static tree static tree
cp_parser_question_colon_clause (parser, logical_or_expr) cp_parser_question_colon_clause (cp_parser* parser, tree logical_or_expr)
cp_parser *parser;
tree logical_or_expr;
{ {
tree expr; tree expr;
tree assignment_expr; tree assignment_expr;
...@@ -5218,8 +5147,7 @@ cp_parser_question_colon_clause (parser, logical_or_expr) ...@@ -5218,8 +5147,7 @@ cp_parser_question_colon_clause (parser, logical_or_expr)
Returns a representation for the expression. */ Returns a representation for the expression. */
static tree static tree
cp_parser_assignment_expression (parser) cp_parser_assignment_expression (cp_parser* parser)
cp_parser *parser;
{ {
tree expr; tree expr;
...@@ -5280,8 +5208,7 @@ cp_parser_assignment_expression (parser) ...@@ -5280,8 +5208,7 @@ cp_parser_assignment_expression (parser)
operator, ERROR_MARK is returned. */ operator, ERROR_MARK is returned. */
static enum tree_code static enum tree_code
cp_parser_assignment_operator_opt (parser) cp_parser_assignment_operator_opt (cp_parser* parser)
cp_parser *parser;
{ {
enum tree_code op; enum tree_code op;
cp_token *token; cp_token *token;
...@@ -5364,8 +5291,7 @@ cp_parser_assignment_operator_opt (parser) ...@@ -5364,8 +5291,7 @@ cp_parser_assignment_operator_opt (parser)
Returns a representation of the expression. */ Returns a representation of the expression. */
static tree static tree
cp_parser_expression (parser) cp_parser_expression (cp_parser* parser)
cp_parser *parser;
{ {
tree expression = NULL_TREE; tree expression = NULL_TREE;
bool saw_comma_p = false; bool saw_comma_p = false;
...@@ -5422,8 +5348,7 @@ cp_parser_expression (parser) ...@@ -5422,8 +5348,7 @@ cp_parser_expression (parser)
conditional-expression */ conditional-expression */
static tree static tree
cp_parser_constant_expression (parser) cp_parser_constant_expression (cp_parser* parser)
cp_parser *parser;
{ {
bool saved_constant_expression_p; bool saved_constant_expression_p;
tree expression; tree expression;
...@@ -5472,8 +5397,7 @@ cp_parser_constant_expression (parser) ...@@ -5472,8 +5397,7 @@ cp_parser_constant_expression (parser)
try-block */ try-block */
static void static void
cp_parser_statement (parser) cp_parser_statement (cp_parser* parser)
cp_parser *parser;
{ {
tree statement; tree statement;
cp_token *token; cp_token *token;
...@@ -5573,8 +5497,7 @@ cp_parser_statement (parser) ...@@ -5573,8 +5497,7 @@ cp_parser_statement (parser)
an ordinary label, returns a LABEL_STMT. */ an ordinary label, returns a LABEL_STMT. */
static tree static tree
cp_parser_labeled_statement (parser) cp_parser_labeled_statement (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree statement = NULL_TREE; tree statement = NULL_TREE;
...@@ -5634,8 +5557,7 @@ cp_parser_labeled_statement (parser) ...@@ -5634,8 +5557,7 @@ cp_parser_labeled_statement (parser)
statement consists of nothing more than an `;'. */ statement consists of nothing more than an `;'. */
static tree static tree
cp_parser_expression_statement (parser) cp_parser_expression_statement (cp_parser* parser)
cp_parser *parser;
{ {
tree statement; tree statement;
...@@ -5688,8 +5610,7 @@ cp_parser_compound_statement (cp_parser *parser) ...@@ -5688,8 +5610,7 @@ cp_parser_compound_statement (cp_parser *parser)
statement-seq [opt] statement */ statement-seq [opt] statement */
static void static void
cp_parser_statement_seq_opt (parser) cp_parser_statement_seq_opt (cp_parser* parser)
cp_parser *parser;
{ {
/* Scan statements until there aren't any more. */ /* Scan statements until there aren't any more. */
while (true) while (true)
...@@ -5714,8 +5635,7 @@ cp_parser_statement_seq_opt (parser) ...@@ -5714,8 +5635,7 @@ cp_parser_statement_seq_opt (parser)
Returns the new IF_STMT or SWITCH_STMT. */ Returns the new IF_STMT or SWITCH_STMT. */
static tree static tree
cp_parser_selection_statement (parser) cp_parser_selection_statement (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
enum rid keyword; enum rid keyword;
...@@ -5819,8 +5739,7 @@ cp_parser_selection_statement (parser) ...@@ -5819,8 +5739,7 @@ cp_parser_selection_statement (parser)
Returns the expression that should be tested. */ Returns the expression that should be tested. */
static tree static tree
cp_parser_condition (parser) cp_parser_condition (cp_parser* parser)
cp_parser *parser;
{ {
tree type_specifiers; tree type_specifiers;
const char *saved_message; const char *saved_message;
...@@ -5900,8 +5819,7 @@ cp_parser_condition (parser) ...@@ -5900,8 +5819,7 @@ cp_parser_condition (parser)
Returns the new WHILE_STMT, DO_STMT, or FOR_STMT. */ Returns the new WHILE_STMT, DO_STMT, or FOR_STMT. */
static tree static tree
cp_parser_iteration_statement (parser) cp_parser_iteration_statement (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
enum rid keyword; enum rid keyword;
...@@ -6011,8 +5929,7 @@ cp_parser_iteration_statement (parser) ...@@ -6011,8 +5929,7 @@ cp_parser_iteration_statement (parser)
simple-declaration */ simple-declaration */
static void static void
cp_parser_for_init_statement (parser) cp_parser_for_init_statement (cp_parser* parser)
cp_parser *parser;
{ {
/* If the next token is a `;', then we have an empty /* If the next token is a `;', then we have an empty
expression-statement. Gramatically, this is also a expression-statement. Gramatically, this is also a
...@@ -6054,8 +5971,7 @@ cp_parser_for_init_statement (parser) ...@@ -6054,8 +5971,7 @@ cp_parser_for_init_statement (parser)
GOTO_STMT. */ GOTO_STMT. */
static tree static tree
cp_parser_jump_statement (parser) cp_parser_jump_statement (cp_parser* parser)
cp_parser *parser;
{ {
tree statement = error_mark_node; tree statement = error_mark_node;
cp_token *token; cp_token *token;
...@@ -6129,8 +6045,7 @@ cp_parser_jump_statement (parser) ...@@ -6129,8 +6045,7 @@ cp_parser_jump_statement (parser)
block-declaration */ block-declaration */
static void static void
cp_parser_declaration_statement (parser) cp_parser_declaration_statement (cp_parser* parser)
cp_parser *parser;
{ {
/* Parse the block-declaration. */ /* Parse the block-declaration. */
cp_parser_block_declaration (parser, /*statement_p=*/true); cp_parser_block_declaration (parser, /*statement_p=*/true);
...@@ -6151,8 +6066,7 @@ cp_parser_declaration_statement (parser) ...@@ -6151,8 +6066,7 @@ cp_parser_declaration_statement (parser)
Returns the new statement. */ Returns the new statement. */
static tree static tree
cp_parser_implicitly_scoped_statement (parser) cp_parser_implicitly_scoped_statement (cp_parser* parser)
cp_parser *parser;
{ {
tree statement; tree statement;
...@@ -6180,8 +6094,7 @@ cp_parser_implicitly_scoped_statement (parser) ...@@ -6180,8 +6094,7 @@ cp_parser_implicitly_scoped_statement (parser)
scope. */ scope. */
static void static void
cp_parser_already_scoped_statement (parser) cp_parser_already_scoped_statement (cp_parser* parser)
cp_parser *parser;
{ {
/* If the token is not a `{', then we must take special action. */ /* If the token is not a `{', then we must take special action. */
if (cp_lexer_next_token_is_not(parser->lexer, CPP_OPEN_BRACE)) if (cp_lexer_next_token_is_not(parser->lexer, CPP_OPEN_BRACE))
...@@ -6209,8 +6122,7 @@ cp_parser_already_scoped_statement (parser) ...@@ -6209,8 +6122,7 @@ cp_parser_already_scoped_statement (parser)
declaration-seq declaration */ declaration-seq declaration */
static void static void
cp_parser_declaration_seq_opt (parser) cp_parser_declaration_seq_opt (cp_parser* parser)
cp_parser *parser;
{ {
while (true) while (true)
{ {
...@@ -6267,8 +6179,7 @@ cp_parser_declaration_seq_opt (parser) ...@@ -6267,8 +6179,7 @@ cp_parser_declaration_seq_opt (parser)
__extension__ declaration */ __extension__ declaration */
static void static void
cp_parser_declaration (parser) cp_parser_declaration (cp_parser* parser)
cp_parser *parser;
{ {
cp_token token1; cp_token token1;
cp_token token2; cp_token token2;
...@@ -6434,9 +6345,8 @@ cp_parser_block_declaration (cp_parser *parser, ...@@ -6434,9 +6345,8 @@ cp_parser_block_declaration (cp_parser *parser,
function-definition as a simple-declaration. */ function-definition as a simple-declaration. */
static void static void
cp_parser_simple_declaration (parser, function_definition_allowed_p) cp_parser_simple_declaration (cp_parser* parser,
cp_parser *parser; bool function_definition_allowed_p)
bool function_definition_allowed_p;
{ {
tree decl_specifiers; tree decl_specifiers;
tree attributes; tree attributes;
...@@ -6604,12 +6514,10 @@ cp_parser_simple_declaration (parser, function_definition_allowed_p) ...@@ -6604,12 +6514,10 @@ cp_parser_simple_declaration (parser, function_definition_allowed_p)
friendship is granted might not be a class. */ friendship is granted might not be a class. */
static tree static tree
cp_parser_decl_specifier_seq (parser, flags, attributes, cp_parser_decl_specifier_seq (cp_parser* parser,
declares_class_or_enum) cp_parser_flags flags,
cp_parser *parser; tree* attributes,
cp_parser_flags flags; bool* declares_class_or_enum)
tree *attributes;
bool *declares_class_or_enum;
{ {
tree decl_specs = NULL_TREE; tree decl_specs = NULL_TREE;
bool friend_p = false; bool friend_p = false;
...@@ -6809,8 +6717,7 @@ cp_parser_decl_specifier_seq (parser, flags, attributes, ...@@ -6809,8 +6717,7 @@ cp_parser_decl_specifier_seq (parser, flags, attributes,
Returns an IDENTIFIER_NODE corresponding to the keyword used. */ Returns an IDENTIFIER_NODE corresponding to the keyword used. */
static tree static tree
cp_parser_storage_class_specifier_opt (parser) cp_parser_storage_class_specifier_opt (cp_parser* parser)
cp_parser *parser;
{ {
switch (cp_lexer_peek_token (parser->lexer)->keyword) switch (cp_lexer_peek_token (parser->lexer)->keyword)
{ {
...@@ -6838,8 +6745,7 @@ cp_parser_storage_class_specifier_opt (parser) ...@@ -6838,8 +6745,7 @@ cp_parser_storage_class_specifier_opt (parser)
Returns an IDENTIFIER_NODE corresponding to the keyword used. */ Returns an IDENTIFIER_NODE corresponding to the keyword used. */
static tree static tree
cp_parser_function_specifier_opt (parser) cp_parser_function_specifier_opt (cp_parser* parser)
cp_parser *parser;
{ {
switch (cp_lexer_peek_token (parser->lexer)->keyword) switch (cp_lexer_peek_token (parser->lexer)->keyword)
{ {
...@@ -6861,8 +6767,7 @@ cp_parser_function_specifier_opt (parser) ...@@ -6861,8 +6767,7 @@ cp_parser_function_specifier_opt (parser)
extern string-literal declaration */ extern string-literal declaration */
static void static void
cp_parser_linkage_specification (parser) cp_parser_linkage_specification (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree linkage; tree linkage;
...@@ -6939,8 +6844,7 @@ cp_parser_linkage_specification (parser) ...@@ -6939,8 +6844,7 @@ cp_parser_linkage_specification (parser)
Returns an IDENTIFIER_NODE representing the operator. */ Returns an IDENTIFIER_NODE representing the operator. */
static tree static tree
cp_parser_conversion_function_id (parser) cp_parser_conversion_function_id (cp_parser* parser)
cp_parser *parser;
{ {
tree type; tree type;
tree saved_scope; tree saved_scope;
...@@ -6994,8 +6898,7 @@ cp_parser_conversion_function_id (parser) ...@@ -6994,8 +6898,7 @@ cp_parser_conversion_function_id (parser)
Returns the TYPE specified. */ Returns the TYPE specified. */
static tree static tree
cp_parser_conversion_type_id (parser) cp_parser_conversion_type_id (cp_parser* parser)
cp_parser *parser;
{ {
tree attributes; tree attributes;
tree type_specifiers; tree type_specifiers;
...@@ -7024,8 +6927,7 @@ cp_parser_conversion_type_id (parser) ...@@ -7024,8 +6927,7 @@ cp_parser_conversion_type_id (parser)
cp_parser_declarator for details. */ cp_parser_declarator for details. */
static tree static tree
cp_parser_conversion_declarator_opt (parser) cp_parser_conversion_declarator_opt (cp_parser* parser)
cp_parser *parser;
{ {
enum tree_code code; enum tree_code code;
tree class_type; tree class_type;
...@@ -7070,8 +6972,7 @@ cp_parser_conversion_declarator_opt (parser) ...@@ -7070,8 +6972,7 @@ cp_parser_conversion_declarator_opt (parser)
Returns TRUE iff the ctor-initializer was actually present. */ Returns TRUE iff the ctor-initializer was actually present. */
static bool static bool
cp_parser_ctor_initializer_opt (parser) cp_parser_ctor_initializer_opt (cp_parser* parser)
cp_parser *parser;
{ {
/* If the next token is not a `:', then there is no /* If the next token is not a `:', then there is no
ctor-initializer. */ ctor-initializer. */
...@@ -7099,8 +7000,7 @@ cp_parser_ctor_initializer_opt (parser) ...@@ -7099,8 +7000,7 @@ cp_parser_ctor_initializer_opt (parser)
mem-initializer , mem-initializer-list */ mem-initializer , mem-initializer-list */
static void static void
cp_parser_mem_initializer_list (parser) cp_parser_mem_initializer_list (cp_parser* parser)
cp_parser *parser;
{ {
tree mem_initializer_list = NULL_TREE; tree mem_initializer_list = NULL_TREE;
...@@ -7147,8 +7047,7 @@ cp_parser_mem_initializer_list (parser) ...@@ -7147,8 +7047,7 @@ cp_parser_mem_initializer_list (parser)
the TREE_VALUE is the expression-list. */ the TREE_VALUE is the expression-list. */
static tree static tree
cp_parser_mem_initializer (parser) cp_parser_mem_initializer (cp_parser* parser)
cp_parser *parser;
{ {
tree mem_initializer_id; tree mem_initializer_id;
tree expression_list; tree expression_list;
...@@ -7187,8 +7086,7 @@ cp_parser_mem_initializer (parser) ...@@ -7187,8 +7086,7 @@ cp_parser_mem_initializer (parser)
to be initialized for the second production. */ to be initialized for the second production. */
static tree static tree
cp_parser_mem_initializer_id (parser) cp_parser_mem_initializer_id (cp_parser* parser)
cp_parser *parser;
{ {
bool global_scope_p; bool global_scope_p;
bool nested_name_specifier_p; bool nested_name_specifier_p;
...@@ -7255,8 +7153,7 @@ cp_parser_mem_initializer_id (parser) ...@@ -7255,8 +7153,7 @@ cp_parser_mem_initializer_id (parser)
human-readable spelling of the identifier, e.g., `operator +'. */ human-readable spelling of the identifier, e.g., `operator +'. */
static tree static tree
cp_parser_operator_function_id (parser) cp_parser_operator_function_id (cp_parser* parser)
cp_parser *parser;
{ {
/* Look for the `operator' keyword. */ /* Look for the `operator' keyword. */
if (!cp_parser_require_keyword (parser, RID_OPERATOR, "`operator'")) if (!cp_parser_require_keyword (parser, RID_OPERATOR, "`operator'"))
...@@ -7281,8 +7178,7 @@ cp_parser_operator_function_id (parser) ...@@ -7281,8 +7178,7 @@ cp_parser_operator_function_id (parser)
human-readable spelling of the identifier, e.g., `operator +'. */ human-readable spelling of the identifier, e.g., `operator +'. */
static tree static tree
cp_parser_operator (parser) cp_parser_operator (cp_parser* parser)
cp_parser *parser;
{ {
tree id = NULL_TREE; tree id = NULL_TREE;
cp_token *token; cp_token *token;
...@@ -7543,9 +7439,7 @@ cp_parser_operator (parser) ...@@ -7543,9 +7439,7 @@ cp_parser_operator (parser)
template < template-parameter-list > */ template < template-parameter-list > */
static void static void
cp_parser_template_declaration (parser, member_p) cp_parser_template_declaration (cp_parser* parser, bool member_p)
cp_parser *parser;
bool member_p;
{ {
/* Check for `export'. */ /* Check for `export'. */
if (cp_lexer_next_token_is_keyword (parser->lexer, RID_EXPORT)) if (cp_lexer_next_token_is_keyword (parser->lexer, RID_EXPORT))
...@@ -7569,8 +7463,7 @@ cp_parser_template_declaration (parser, member_p) ...@@ -7569,8 +7463,7 @@ cp_parser_template_declaration (parser, member_p)
The nodes are connected via their TREE_CHAINs. */ The nodes are connected via their TREE_CHAINs. */
static tree static tree
cp_parser_template_parameter_list (parser) cp_parser_template_parameter_list (cp_parser* parser)
cp_parser *parser;
{ {
tree parameter_list = NULL_TREE; tree parameter_list = NULL_TREE;
...@@ -7607,8 +7500,7 @@ cp_parser_template_parameter_list (parser) ...@@ -7607,8 +7500,7 @@ cp_parser_template_parameter_list (parser)
TREE_PURPOSE is the default value, if any. */ TREE_PURPOSE is the default value, if any. */
static tree static tree
cp_parser_template_parameter (parser) cp_parser_template_parameter (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
...@@ -7673,8 +7565,7 @@ cp_parser_template_parameter (parser) ...@@ -7673,8 +7565,7 @@ cp_parser_template_parameter (parser)
the declaration of the parameter. */ the declaration of the parameter. */
static tree static tree
cp_parser_type_parameter (parser) cp_parser_type_parameter (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree parameter; tree parameter;
...@@ -7989,10 +7880,9 @@ cp_parser_template_id (cp_parser *parser, ...@@ -7989,10 +7880,9 @@ cp_parser_template_id (cp_parser *parser,
names are looked up inside uninstantiated templates. */ names are looked up inside uninstantiated templates. */
static tree static tree
cp_parser_template_name (parser, template_keyword_p, check_dependency_p) cp_parser_template_name (cp_parser* parser,
cp_parser *parser; bool template_keyword_p,
bool template_keyword_p; bool check_dependency_p)
bool check_dependency_p;
{ {
tree identifier; tree identifier;
tree decl; tree decl;
...@@ -8092,8 +7982,7 @@ cp_parser_template_name (parser, template_keyword_p, check_dependency_p) ...@@ -8092,8 +7982,7 @@ cp_parser_template_name (parser, template_keyword_p, check_dependency_p)
argument. */ argument. */
static tree static tree
cp_parser_template_argument_list (parser) cp_parser_template_argument_list (cp_parser* parser)
cp_parser *parser;
{ {
tree arguments = NULL_TREE; tree arguments = NULL_TREE;
...@@ -8129,8 +8018,7 @@ cp_parser_template_argument_list (parser) ...@@ -8129,8 +8018,7 @@ cp_parser_template_argument_list (parser)
OVERLOAD. */ OVERLOAD. */
static tree static tree
cp_parser_template_argument (parser) cp_parser_template_argument (cp_parser* parser)
cp_parser *parser;
{ {
tree argument; tree argument;
bool template_p; bool template_p;
...@@ -8207,8 +8095,7 @@ cp_parser_template_argument (parser) ...@@ -8207,8 +8095,7 @@ cp_parser_template_argument (parser)
decl-specifier-seq [opt] declarator [opt] ; */ decl-specifier-seq [opt] declarator [opt] ; */
static void static void
cp_parser_explicit_instantiation (parser) cp_parser_explicit_instantiation (cp_parser* parser)
cp_parser *parser;
{ {
bool declares_class_or_enum; bool declares_class_or_enum;
tree decl_specifiers; tree decl_specifiers;
...@@ -8286,8 +8173,7 @@ cp_parser_explicit_instantiation (parser) ...@@ -8286,8 +8173,7 @@ cp_parser_explicit_instantiation (parser)
template <> template-declaration */ template <> template-declaration */
static void static void
cp_parser_explicit_specialization (parser) cp_parser_explicit_specialization (cp_parser* parser)
cp_parser *parser;
{ {
/* Look for the `template' keyword. */ /* Look for the `template' keyword. */
cp_parser_require_keyword (parser, RID_TEMPLATE, "`template'"); cp_parser_require_keyword (parser, RID_TEMPLATE, "`template'");
...@@ -8357,18 +8243,12 @@ cp_parser_explicit_specialization (parser) ...@@ -8357,18 +8243,12 @@ cp_parser_explicit_specialization (parser)
is set to FALSE. */ is set to FALSE. */
static tree static tree
cp_parser_type_specifier (parser, cp_parser_type_specifier (cp_parser* parser,
flags, cp_parser_flags flags,
is_friend, bool is_friend,
is_declaration, bool is_declaration,
declares_class_or_enum, bool* declares_class_or_enum,
is_cv_qualifier) bool* is_cv_qualifier)
cp_parser *parser;
cp_parser_flags flags;
bool is_friend;
bool is_declaration;
bool *declares_class_or_enum;
bool *is_cv_qualifier;
{ {
tree type_spec = NULL_TREE; tree type_spec = NULL_TREE;
cp_token *token; cp_token *token;
...@@ -8488,9 +8368,7 @@ cp_parser_type_specifier (parser, ...@@ -8488,9 +8368,7 @@ cp_parser_type_specifier (parser,
productions, the value returned is the indicated TYPE_DECL. */ productions, the value returned is the indicated TYPE_DECL. */
static tree static tree
cp_parser_simple_type_specifier (parser, flags) cp_parser_simple_type_specifier (cp_parser* parser, cp_parser_flags flags)
cp_parser *parser;
cp_parser_flags flags;
{ {
tree type = NULL_TREE; tree type = NULL_TREE;
cp_token *token; cp_token *token;
...@@ -8607,8 +8485,7 @@ cp_parser_simple_type_specifier (parser, flags) ...@@ -8607,8 +8485,7 @@ cp_parser_simple_type_specifier (parser, flags)
Returns a TYPE_DECL for the the type. */ Returns a TYPE_DECL for the the type. */
static tree static tree
cp_parser_type_name (parser) cp_parser_type_name (cp_parser* parser)
cp_parser *parser;
{ {
tree type_decl; tree type_decl;
tree identifier; tree identifier;
...@@ -8671,10 +8548,9 @@ cp_parser_type_name (parser) ...@@ -8671,10 +8548,9 @@ cp_parser_type_name (parser)
Returns the TYPE specified. */ Returns the TYPE specified. */
static tree static tree
cp_parser_elaborated_type_specifier (parser, is_friend, is_declaration) cp_parser_elaborated_type_specifier (cp_parser* parser,
cp_parser *parser; bool is_friend,
bool is_friend; bool is_declaration)
bool is_declaration;
{ {
enum tag_types tag_type; enum tag_types tag_type;
tree identifier; tree identifier;
...@@ -8868,8 +8744,7 @@ cp_parser_elaborated_type_specifier (parser, is_friend, is_declaration) ...@@ -8868,8 +8744,7 @@ cp_parser_elaborated_type_specifier (parser, is_friend, is_declaration)
Returns an ENUM_TYPE representing the enumeration. */ Returns an ENUM_TYPE representing the enumeration. */
static tree static tree
cp_parser_enum_specifier (parser) cp_parser_enum_specifier (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree identifier = NULL_TREE; tree identifier = NULL_TREE;
...@@ -8921,9 +8796,7 @@ cp_parser_enum_specifier (parser) ...@@ -8921,9 +8796,7 @@ cp_parser_enum_specifier (parser)
enumerator-list , enumerator-definition */ enumerator-list , enumerator-definition */
static void static void
cp_parser_enumerator_list (parser, type) cp_parser_enumerator_list (cp_parser* parser, tree type)
cp_parser *parser;
tree type;
{ {
while (true) while (true)
{ {
...@@ -8960,9 +8833,7 @@ cp_parser_enumerator_list (parser, type) ...@@ -8960,9 +8833,7 @@ cp_parser_enumerator_list (parser, type)
identifier */ identifier */
static void static void
cp_parser_enumerator_definition (parser, type) cp_parser_enumerator_definition (cp_parser* parser, tree type)
cp_parser *parser;
tree type;
{ {
cp_token *token; cp_token *token;
tree identifier; tree identifier;
...@@ -8999,8 +8870,7 @@ cp_parser_enumerator_definition (parser, type) ...@@ -8999,8 +8870,7 @@ cp_parser_enumerator_definition (parser, type)
Returns the NAMESPACE_DECL for the namespace. */ Returns the NAMESPACE_DECL for the namespace. */
static tree static tree
cp_parser_namespace_name (parser) cp_parser_namespace_name (cp_parser* parser)
cp_parser *parser;
{ {
tree identifier; tree identifier;
tree namespace_decl; tree namespace_decl;
...@@ -9064,8 +8934,7 @@ cp_parser_namespace_name (parser) ...@@ -9064,8 +8934,7 @@ cp_parser_namespace_name (parser)
namespace { namespace-body } */ namespace { namespace-body } */
static void static void
cp_parser_namespace_definition (parser) cp_parser_namespace_definition (cp_parser* parser)
cp_parser *parser;
{ {
tree identifier; tree identifier;
...@@ -9099,8 +8968,7 @@ cp_parser_namespace_definition (parser) ...@@ -9099,8 +8968,7 @@ cp_parser_namespace_definition (parser)
declaration-seq [opt] */ declaration-seq [opt] */
static void static void
cp_parser_namespace_body (parser) cp_parser_namespace_body (cp_parser* parser)
cp_parser *parser;
{ {
cp_parser_declaration_seq_opt (parser); cp_parser_declaration_seq_opt (parser);
} }
...@@ -9111,8 +8979,7 @@ cp_parser_namespace_body (parser) ...@@ -9111,8 +8979,7 @@ cp_parser_namespace_body (parser)
namespace identifier = qualified-namespace-specifier ; */ namespace identifier = qualified-namespace-specifier ; */
static void static void
cp_parser_namespace_alias_definition (parser) cp_parser_namespace_alias_definition (cp_parser* parser)
cp_parser *parser;
{ {
tree identifier; tree identifier;
tree namespace_specifier; tree namespace_specifier;
...@@ -9144,8 +9011,7 @@ cp_parser_namespace_alias_definition (parser) ...@@ -9144,8 +9011,7 @@ cp_parser_namespace_alias_definition (parser)
namespace. */ namespace. */
static tree static tree
cp_parser_qualified_namespace_specifier (parser) cp_parser_qualified_namespace_specifier (cp_parser* parser)
cp_parser *parser;
{ {
/* Look for the optional `::'. */ /* Look for the optional `::'. */
cp_parser_global_scope_opt (parser, cp_parser_global_scope_opt (parser,
...@@ -9167,8 +9033,7 @@ cp_parser_qualified_namespace_specifier (parser) ...@@ -9167,8 +9033,7 @@ cp_parser_qualified_namespace_specifier (parser)
using :: unqualified-id ; */ using :: unqualified-id ; */
static void static void
cp_parser_using_declaration (parser) cp_parser_using_declaration (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
bool typename_p = false; bool typename_p = false;
...@@ -9256,8 +9121,7 @@ cp_parser_using_declaration (parser) ...@@ -9256,8 +9121,7 @@ cp_parser_using_declaration (parser)
namespace-name ; */ namespace-name ; */
static void static void
cp_parser_using_directive (parser) cp_parser_using_directive (cp_parser* parser)
cp_parser *parser;
{ {
tree namespace_decl; tree namespace_decl;
...@@ -9297,8 +9161,7 @@ cp_parser_using_directive (parser) ...@@ -9297,8 +9161,7 @@ cp_parser_using_directive (parser)
: asm-operand-list [opt] ) ; */ : asm-operand-list [opt] ) ; */
static void static void
cp_parser_asm_definition (parser) cp_parser_asm_definition (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree string; tree string;
...@@ -9447,18 +9310,12 @@ cp_parser_asm_definition (parser) ...@@ -9447,18 +9310,12 @@ cp_parser_asm_definition (parser)
is FALSE. */ is FALSE. */
static tree static tree
cp_parser_init_declarator (parser, cp_parser_init_declarator (cp_parser* parser,
decl_specifiers, tree decl_specifiers,
prefix_attributes, tree prefix_attributes,
function_definition_allowed_p, bool function_definition_allowed_p,
member_p, bool member_p,
function_definition_p) bool* function_definition_p)
cp_parser *parser;
tree decl_specifiers;
tree prefix_attributes;
bool function_definition_allowed_p;
bool member_p;
bool *function_definition_p;
{ {
cp_token *token; cp_token *token;
tree declarator; tree declarator;
...@@ -9737,10 +9594,9 @@ cp_parser_init_declarator (parser, ...@@ -9737,10 +9594,9 @@ cp_parser_init_declarator (parser,
expression, not a declaration.) */ expression, not a declaration.) */
static tree static tree
cp_parser_declarator (parser, dcl_kind, ctor_dtor_or_conv_p) cp_parser_declarator (cp_parser* parser,
cp_parser *parser; cp_parser_declarator_kind dcl_kind,
cp_parser_declarator_kind dcl_kind; bool* ctor_dtor_or_conv_p)
bool *ctor_dtor_or_conv_p;
{ {
cp_token *token; cp_token *token;
tree declarator; tree declarator;
...@@ -9844,10 +9700,9 @@ cp_parser_declarator (parser, dcl_kind, ctor_dtor_or_conv_p) ...@@ -9844,10 +9700,9 @@ cp_parser_declarator (parser, dcl_kind, ctor_dtor_or_conv_p)
indicating the size of the array is the second operand. */ indicating the size of the array is the second operand. */
static tree static tree
cp_parser_direct_declarator (parser, dcl_kind, ctor_dtor_or_conv_p) cp_parser_direct_declarator (cp_parser* parser,
cp_parser *parser; cp_parser_declarator_kind dcl_kind,
cp_parser_declarator_kind dcl_kind; bool* ctor_dtor_or_conv_p)
bool *ctor_dtor_or_conv_p;
{ {
cp_token *token; cp_token *token;
tree declarator = NULL_TREE; tree declarator = NULL_TREE;
...@@ -10147,10 +10002,9 @@ cp_parser_direct_declarator (parser, dcl_kind, ctor_dtor_or_conv_p) ...@@ -10147,10 +10002,9 @@ cp_parser_direct_declarator (parser, dcl_kind, ctor_dtor_or_conv_p)
cv-qualifiers. Returns ERROR_MARK if an error occurred. */ cv-qualifiers. Returns ERROR_MARK if an error occurred. */
static enum tree_code static enum tree_code
cp_parser_ptr_operator (parser, type, cv_qualifier_seq) cp_parser_ptr_operator (cp_parser* parser,
cp_parser *parser; tree* type,
tree *type; tree* cv_qualifier_seq)
tree *cv_qualifier_seq;
{ {
enum tree_code code = ERROR_MARK; enum tree_code code = ERROR_MARK;
cp_token *token; cp_token *token;
...@@ -10225,8 +10079,7 @@ cp_parser_ptr_operator (parser, type, cv_qualifier_seq) ...@@ -10225,8 +10079,7 @@ cp_parser_ptr_operator (parser, type, cv_qualifier_seq)
representation of a cv-qualifier. */ representation of a cv-qualifier. */
static tree static tree
cp_parser_cv_qualifier_seq_opt (parser) cp_parser_cv_qualifier_seq_opt (cp_parser* parser)
cp_parser *parser;
{ {
tree cv_qualifiers = NULL_TREE; tree cv_qualifiers = NULL_TREE;
...@@ -10261,8 +10114,7 @@ cp_parser_cv_qualifier_seq_opt (parser) ...@@ -10261,8 +10114,7 @@ cp_parser_cv_qualifier_seq_opt (parser)
__restrict__ */ __restrict__ */
static tree static tree
cp_parser_cv_qualifier_opt (parser) cp_parser_cv_qualifier_opt (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree cv_qualifier = NULL_TREE; tree cv_qualifier = NULL_TREE;
...@@ -10302,8 +10154,7 @@ cp_parser_cv_qualifier_opt (parser) ...@@ -10302,8 +10154,7 @@ cp_parser_cv_qualifier_opt (parser)
unqualified-id. */ unqualified-id. */
static tree static tree
cp_parser_declarator_id (parser) cp_parser_declarator_id (cp_parser* parser)
cp_parser *parser;
{ {
tree id_expression; tree id_expression;
...@@ -10341,8 +10192,7 @@ cp_parser_declarator_id (parser) ...@@ -10341,8 +10192,7 @@ cp_parser_declarator_id (parser)
Returns the TYPE specified. */ Returns the TYPE specified. */
static tree static tree
cp_parser_type_id (parser) cp_parser_type_id (cp_parser* parser)
cp_parser *parser;
{ {
tree type_specifier_seq; tree type_specifier_seq;
tree abstract_declarator; tree abstract_declarator;
...@@ -10380,8 +10230,7 @@ cp_parser_type_id (parser) ...@@ -10380,8 +10230,7 @@ cp_parser_type_id (parser)
type-specifier, or the TREE_PURPOSE is a list of attributes. */ type-specifier, or the TREE_PURPOSE is a list of attributes. */
static tree static tree
cp_parser_type_specifier_seq (parser) cp_parser_type_specifier_seq (cp_parser* parser)
cp_parser *parser;
{ {
bool seen_type_specifier = false; bool seen_type_specifier = false;
tree type_specifier_seq = NULL_TREE; tree type_specifier_seq = NULL_TREE;
...@@ -10443,8 +10292,7 @@ cp_parser_type_specifier_seq (parser) ...@@ -10443,8 +10292,7 @@ cp_parser_type_specifier_seq (parser)
parameter-declaration-clause consisting only of an ellipsis. */ parameter-declaration-clause consisting only of an ellipsis. */
static tree static tree
cp_parser_parameter_declaration_clause (parser) cp_parser_parameter_declaration_clause (cp_parser* parser)
cp_parser *parser;
{ {
tree parameters; tree parameters;
cp_token *token; cp_token *token;
...@@ -10527,8 +10375,7 @@ cp_parser_parameter_declaration_clause (parser) ...@@ -10527,8 +10375,7 @@ cp_parser_parameter_declaration_clause (parser)
`void_list_node' is never appended to the list. */ `void_list_node' is never appended to the list. */
static tree static tree
cp_parser_parameter_declaration_list (parser) cp_parser_parameter_declaration_list (cp_parser* parser)
cp_parser *parser;
{ {
tree parameters = NULL_TREE; tree parameters = NULL_TREE;
...@@ -10827,9 +10674,7 @@ cp_parser_parameter_declaration (cp_parser *parser, ...@@ -10827,9 +10674,7 @@ cp_parser_parameter_declaration (cp_parser *parser,
be a `friend'. */ be a `friend'. */
static tree static tree
cp_parser_function_definition (parser, friend_p) cp_parser_function_definition (cp_parser* parser, bool* friend_p)
cp_parser *parser;
bool *friend_p;
{ {
tree decl_specifiers; tree decl_specifiers;
tree attributes; tree attributes;
...@@ -11026,9 +10871,7 @@ cp_parser_ctor_initializer_opt_and_function_body (cp_parser *parser) ...@@ -11026,9 +10871,7 @@ cp_parser_ctor_initializer_opt_and_function_body (cp_parser *parser)
set to FALSE if there is no initializer present. */ set to FALSE if there is no initializer present. */
static tree static tree
cp_parser_initializer (parser, is_parenthesized_init) cp_parser_initializer (cp_parser* parser, bool* is_parenthesized_init)
cp_parser *parser;
bool *is_parenthesized_init;
{ {
cp_token *token; cp_token *token;
tree init; tree init;
...@@ -11086,8 +10929,7 @@ cp_parser_initializer (parser, is_parenthesized_init) ...@@ -11086,8 +10929,7 @@ cp_parser_initializer (parser, is_parenthesized_init)
trailing `,' was provided. */ trailing `,' was provided. */
static tree static tree
cp_parser_initializer_clause (parser) cp_parser_initializer_clause (cp_parser* parser)
cp_parser *parser;
{ {
tree initializer; tree initializer;
...@@ -11140,8 +10982,7 @@ cp_parser_initializer_clause (parser) ...@@ -11140,8 +10982,7 @@ cp_parser_initializer_clause (parser)
IDENTIFIER_NODE naming the field to initialize. */ IDENTIFIER_NODE naming the field to initialize. */
static tree static tree
cp_parser_initializer_list (parser) cp_parser_initializer_list (cp_parser* parser)
cp_parser *parser;
{ {
tree initializers = NULL_TREE; tree initializers = NULL_TREE;
...@@ -11333,8 +11174,7 @@ cp_parser_class_name (cp_parser *parser, ...@@ -11333,8 +11174,7 @@ cp_parser_class_name (cp_parser *parser,
Returns the TREE_TYPE representing the class. */ Returns the TREE_TYPE representing the class. */
static tree static tree
cp_parser_class_specifier (parser) cp_parser_class_specifier (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree type; tree type;
...@@ -11504,10 +11344,8 @@ cp_parser_class_specifier (parser) ...@@ -11504,10 +11344,8 @@ cp_parser_class_specifier (parser)
body of the class. */ body of the class. */
static tree static tree
cp_parser_class_head (parser, cp_parser_class_head (cp_parser* parser,
nested_name_specifier_p) bool* nested_name_specifier_p)
cp_parser *parser;
bool *nested_name_specifier_p;
{ {
cp_token *token; cp_token *token;
tree nested_name_specifier; tree nested_name_specifier;
...@@ -11762,8 +11600,7 @@ cp_parser_class_head (parser, ...@@ -11762,8 +11600,7 @@ cp_parser_class_head (parser,
error. */ error. */
static enum tag_types static enum tag_types
cp_parser_class_key (parser) cp_parser_class_key (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
enum tag_types tag_type; enum tag_types tag_type;
...@@ -11787,8 +11624,7 @@ cp_parser_class_key (parser) ...@@ -11787,8 +11624,7 @@ cp_parser_class_key (parser)
access-specifier : member-specification [opt] */ access-specifier : member-specification [opt] */
static void static void
cp_parser_member_specification_opt (parser) cp_parser_member_specification_opt (cp_parser* parser)
cp_parser *parser;
{ {
while (true) while (true)
{ {
...@@ -11853,8 +11689,7 @@ cp_parser_member_specification_opt (parser) ...@@ -11853,8 +11689,7 @@ cp_parser_member_specification_opt (parser)
identifier [opt] attributes [opt] : constant-expression */ identifier [opt] attributes [opt] : constant-expression */
static void static void
cp_parser_member_declaration (parser) cp_parser_member_declaration (cp_parser* parser)
cp_parser *parser;
{ {
tree decl_specifiers; tree decl_specifiers;
tree prefix_attributes; tree prefix_attributes;
...@@ -12203,8 +12038,7 @@ cp_parser_member_declaration (parser) ...@@ -12203,8 +12038,7 @@ cp_parser_member_declaration (parser)
Otherwiser, ERROR_MARK_NODE is returned. */ Otherwiser, ERROR_MARK_NODE is returned. */
static tree static tree
cp_parser_pure_specifier (parser) cp_parser_pure_specifier (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
...@@ -12230,8 +12064,7 @@ cp_parser_pure_specifier (parser) ...@@ -12230,8 +12064,7 @@ cp_parser_pure_specifier (parser)
Returns a representation of the constant-expression. */ Returns a representation of the constant-expression. */
static tree static tree
cp_parser_constant_initializer (parser) cp_parser_constant_initializer (cp_parser* parser)
cp_parser *parser;
{ {
/* Look for the `=' token. */ /* Look for the `=' token. */
if (!cp_parser_require (parser, CPP_EQ, "`='")) if (!cp_parser_require (parser, CPP_EQ, "`='"))
...@@ -12278,8 +12111,7 @@ cp_parser_constant_initializer (parser) ...@@ -12278,8 +12111,7 @@ cp_parser_constant_initializer (parser)
NULL_TREE, not ERROR_MARK_NODE. */ NULL_TREE, not ERROR_MARK_NODE. */
static tree static tree
cp_parser_base_clause (parser) cp_parser_base_clause (cp_parser* parser)
cp_parser *parser;
{ {
tree bases = NULL_TREE; tree bases = NULL_TREE;
...@@ -12334,8 +12166,7 @@ cp_parser_base_clause (parser) ...@@ -12334,8 +12166,7 @@ cp_parser_base_clause (parser)
(or the ERROR_MARK_NODE) indicating the type that was specified. */ (or the ERROR_MARK_NODE) indicating the type that was specified. */
static tree static tree
cp_parser_base_specifier (parser) cp_parser_base_specifier (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
bool done = false; bool done = false;
...@@ -12484,8 +12315,7 @@ cp_parser_base_specifier (parser) ...@@ -12484,8 +12315,7 @@ cp_parser_base_specifier (parser)
TREE_VALUE of each node is a type. */ TREE_VALUE of each node is a type. */
static tree static tree
cp_parser_exception_specification_opt (parser) cp_parser_exception_specification_opt (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree type_id_list; tree type_id_list;
...@@ -12537,8 +12367,7 @@ cp_parser_exception_specification_opt (parser) ...@@ -12537,8 +12367,7 @@ cp_parser_exception_specification_opt (parser)
in the order that the types were presented. */ in the order that the types were presented. */
static tree static tree
cp_parser_type_id_list (parser) cp_parser_type_id_list (cp_parser* parser)
cp_parser *parser;
{ {
tree types = NULL_TREE; tree types = NULL_TREE;
...@@ -12569,8 +12398,7 @@ cp_parser_type_id_list (parser) ...@@ -12569,8 +12398,7 @@ cp_parser_type_id_list (parser)
try compound-statement handler-seq */ try compound-statement handler-seq */
static tree static tree
cp_parser_try_block (parser) cp_parser_try_block (cp_parser* parser)
cp_parser *parser;
{ {
tree try_block; tree try_block;
...@@ -12590,8 +12418,7 @@ cp_parser_try_block (parser) ...@@ -12590,8 +12418,7 @@ cp_parser_try_block (parser)
try ctor-initializer [opt] function-body handler-seq */ try ctor-initializer [opt] function-body handler-seq */
static bool static bool
cp_parser_function_try_block (parser) cp_parser_function_try_block (cp_parser* parser)
cp_parser *parser;
{ {
tree try_block; tree try_block;
bool ctor_initializer_p; bool ctor_initializer_p;
...@@ -12620,8 +12447,7 @@ cp_parser_function_try_block (parser) ...@@ -12620,8 +12447,7 @@ cp_parser_function_try_block (parser)
handler handler-seq [opt] */ handler handler-seq [opt] */
static void static void
cp_parser_handler_seq (parser) cp_parser_handler_seq (cp_parser* parser)
cp_parser *parser;
{ {
while (true) while (true)
{ {
...@@ -12643,8 +12469,7 @@ cp_parser_handler_seq (parser) ...@@ -12643,8 +12469,7 @@ cp_parser_handler_seq (parser)
catch ( exception-declaration ) compound-statement */ catch ( exception-declaration ) compound-statement */
static void static void
cp_parser_handler (parser) cp_parser_handler (cp_parser* parser)
cp_parser *parser;
{ {
tree handler; tree handler;
tree declaration; tree declaration;
...@@ -12671,8 +12496,7 @@ cp_parser_handler (parser) ...@@ -12671,8 +12496,7 @@ cp_parser_handler (parser)
ellipsis variant is used. */ ellipsis variant is used. */
static tree static tree
cp_parser_exception_declaration (parser) cp_parser_exception_declaration (cp_parser* parser)
cp_parser *parser;
{ {
tree type_specifiers; tree type_specifiers;
tree declarator; tree declarator;
...@@ -12714,8 +12538,7 @@ cp_parser_exception_declaration (parser) ...@@ -12714,8 +12538,7 @@ cp_parser_exception_declaration (parser)
Returns a THROW_EXPR representing the throw-expression. */ Returns a THROW_EXPR representing the throw-expression. */
static tree static tree
cp_parser_throw_expression (parser) cp_parser_throw_expression (cp_parser* parser)
cp_parser *parser;
{ {
tree expression; tree expression;
...@@ -12743,8 +12566,7 @@ cp_parser_throw_expression (parser) ...@@ -12743,8 +12566,7 @@ cp_parser_throw_expression (parser)
NULL_TREE. */ NULL_TREE. */
static tree static tree
cp_parser_asm_specification_opt (parser) cp_parser_asm_specification_opt (cp_parser* parser)
cp_parser *parser;
{ {
cp_token *token; cp_token *token;
tree asm_specification; tree asm_specification;
...@@ -12791,8 +12613,7 @@ cp_parser_asm_specification_opt (parser) ...@@ -12791,8 +12613,7 @@ cp_parser_asm_specification_opt (parser)
is a STRING_CST for the string literal before the parenthesis. */ is a STRING_CST for the string literal before the parenthesis. */
static tree static tree
cp_parser_asm_operand_list (parser) cp_parser_asm_operand_list (cp_parser* parser)
cp_parser *parser;
{ {
tree asm_operands = NULL_TREE; tree asm_operands = NULL_TREE;
...@@ -12851,8 +12672,7 @@ cp_parser_asm_operand_list (parser) ...@@ -12851,8 +12672,7 @@ cp_parser_asm_operand_list (parser)
appeared. The TREE_VALUE of each node is a STRING_CST. */ appeared. The TREE_VALUE of each node is a STRING_CST. */
static tree static tree
cp_parser_asm_clobber_list (parser) cp_parser_asm_clobber_list (cp_parser* parser)
cp_parser *parser;
{ {
tree clobbers = NULL_TREE; tree clobbers = NULL_TREE;
...@@ -12888,8 +12708,7 @@ cp_parser_asm_clobber_list (parser) ...@@ -12888,8 +12708,7 @@ cp_parser_asm_clobber_list (parser)
The return value is as for cp_parser_attribute_list. */ The return value is as for cp_parser_attribute_list. */
static tree static tree
cp_parser_attributes_opt (parser) cp_parser_attributes_opt (cp_parser* parser)
cp_parser *parser;
{ {
tree attributes = NULL_TREE; tree attributes = NULL_TREE;
...@@ -12949,8 +12768,7 @@ cp_parser_attributes_opt (parser) ...@@ -12949,8 +12768,7 @@ cp_parser_attributes_opt (parser)
any. */ any. */
static tree static tree
cp_parser_attribute_list (parser) cp_parser_attribute_list (cp_parser* parser)
cp_parser *parser;
{ {
tree attribute_list = NULL_TREE; tree attribute_list = NULL_TREE;
...@@ -13047,9 +12865,7 @@ cp_parser_attribute_list (parser) ...@@ -13047,9 +12865,7 @@ cp_parser_attribute_list (parser)
for restoring the value of the PEDANTIC flag. */ for restoring the value of the PEDANTIC flag. */
static bool static bool
cp_parser_extension_opt (parser, saved_pedantic) cp_parser_extension_opt (cp_parser* parser, int* saved_pedantic)
cp_parser *parser;
int *saved_pedantic;
{ {
/* Save the old value of the PEDANTIC flag. */ /* Save the old value of the PEDANTIC flag. */
*saved_pedantic = pedantic; *saved_pedantic = pedantic;
...@@ -13078,8 +12894,7 @@ cp_parser_extension_opt (parser, saved_pedantic) ...@@ -13078,8 +12894,7 @@ cp_parser_extension_opt (parser, saved_pedantic)
identifier */ identifier */
static void static void
cp_parser_label_declaration (parser) cp_parser_label_declaration (cp_parser* parser)
cp_parser *parser;
{ {
/* Look for the `__label__' keyword. */ /* Look for the `__label__' keyword. */
cp_parser_require_keyword (parser, RID_LABEL, "`__label__'"); cp_parser_require_keyword (parser, RID_LABEL, "`__label__'");
...@@ -13327,9 +13142,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name, bool check_access, ...@@ -13327,9 +13142,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name, bool check_access,
TRUE. */ TRUE. */
static tree static tree
cp_parser_lookup_name_simple (parser, name) cp_parser_lookup_name_simple (cp_parser* parser, tree name)
cp_parser *parser;
tree name;
{ {
return cp_parser_lookup_name (parser, name, return cp_parser_lookup_name (parser, name,
/*check_access=*/true, /*check_access=*/true,
...@@ -13344,9 +13157,7 @@ cp_parser_lookup_name_simple (parser, name) ...@@ -13344,9 +13157,7 @@ cp_parser_lookup_name_simple (parser, name)
extremely limited situations. */ extremely limited situations. */
static tree static tree
cp_parser_resolve_typename_type (parser, type) cp_parser_resolve_typename_type (cp_parser* parser, tree type)
cp_parser *parser;
tree type;
{ {
tree scope; tree scope;
tree name; tree name;
...@@ -13445,9 +13256,8 @@ cp_parser_maybe_treat_template_as_class (tree decl, bool tag_name_p) ...@@ -13445,9 +13256,8 @@ cp_parser_maybe_treat_template_as_class (tree decl, bool tag_name_p)
and FALSE otherwise. */ and FALSE otherwise. */
static bool static bool
cp_parser_check_declarator_template_parameters (parser, declarator) cp_parser_check_declarator_template_parameters (cp_parser* parser,
cp_parser *parser; tree declarator)
tree declarator;
{ {
unsigned num_templates; unsigned num_templates;
...@@ -13522,9 +13332,8 @@ cp_parser_check_declarator_template_parameters (parser, declarator) ...@@ -13522,9 +13332,8 @@ cp_parser_check_declarator_template_parameters (parser, declarator)
return TRUE. */ return TRUE. */
static bool static bool
cp_parser_check_template_parameters (parser, num_templates) cp_parser_check_template_parameters (cp_parser* parser,
cp_parser *parser; unsigned num_templates)
unsigned num_templates;
{ {
/* If there are more template classes than parameter lists, we have /* If there are more template classes than parameter lists, we have
something like: something like:
...@@ -13564,10 +13373,9 @@ cp_parser_check_template_parameters (parser, num_templates) ...@@ -13564,10 +13373,9 @@ cp_parser_check_template_parameters (parser, num_templates)
the two sub-expressions. */ the two sub-expressions. */
static tree static tree
cp_parser_binary_expression (parser, token_tree_map, fn) cp_parser_binary_expression (cp_parser* parser,
cp_parser *parser; const cp_parser_token_tree_map token_tree_map,
const cp_parser_token_tree_map token_tree_map; cp_parser_expression_fn fn)
cp_parser_expression_fn fn;
{ {
tree lhs; tree lhs;
...@@ -13619,9 +13427,7 @@ cp_parser_binary_expression (parser, token_tree_map, fn) ...@@ -13619,9 +13427,7 @@ cp_parser_binary_expression (parser, token_tree_map, fn)
present, and NULL_TREE otherwise. */ present, and NULL_TREE otherwise. */
static tree static tree
cp_parser_global_scope_opt (parser, current_scope_valid_p) cp_parser_global_scope_opt (cp_parser* parser, bool current_scope_valid_p)
cp_parser *parser;
bool current_scope_valid_p;
{ {
cp_token *token; cp_token *token;
...@@ -13781,11 +13587,10 @@ cp_parser_constructor_declarator_p (cp_parser *parser, bool friend_p) ...@@ -13781,11 +13587,10 @@ cp_parser_constructor_declarator_p (cp_parser *parser, bool friend_p)
static tree static tree
cp_parser_function_definition_from_specifiers_and_declarator cp_parser_function_definition_from_specifiers_and_declarator
(parser, decl_specifiers, attributes, declarator) (cp_parser* parser,
cp_parser *parser; tree decl_specifiers,
tree decl_specifiers; tree attributes,
tree attributes; tree declarator)
tree declarator;
{ {
tree fn; tree fn;
bool success_p; bool success_p;
...@@ -13823,10 +13628,8 @@ cp_parser_function_definition_from_specifiers_and_declarator ...@@ -13823,10 +13628,8 @@ cp_parser_function_definition_from_specifiers_and_declarator
Returns the function defined. */ Returns the function defined. */
static tree static tree
cp_parser_function_definition_after_declarator (parser, cp_parser_function_definition_after_declarator (cp_parser* parser,
inline_p) bool inline_p)
cp_parser *parser;
bool inline_p;
{ {
tree fn; tree fn;
bool ctor_initializer_p = false; bool ctor_initializer_p = false;
...@@ -13888,9 +13691,7 @@ cp_parser_function_definition_after_declarator (parser, ...@@ -13888,9 +13691,7 @@ cp_parser_function_definition_after_declarator (parser,
is as for cp_parser_template_declaration. */ is as for cp_parser_template_declaration. */
static void static void
cp_parser_template_declaration_after_export (parser, member_p) cp_parser_template_declaration_after_export (cp_parser* parser, bool member_p)
cp_parser *parser;
bool member_p;
{ {
tree decl = NULL_TREE; tree decl = NULL_TREE;
tree parameter_list; tree parameter_list;
...@@ -13968,12 +13769,9 @@ cp_parser_template_declaration_after_export (parser, member_p) ...@@ -13968,12 +13769,9 @@ cp_parser_template_declaration_after_export (parser, member_p)
*FRIEND_P is set to TRUE iff the declaration is a friend. */ *FRIEND_P is set to TRUE iff the declaration is a friend. */
static tree static tree
cp_parser_single_declaration (parser, cp_parser_single_declaration (cp_parser* parser,
member_p, bool member_p,
friend_p) bool* friend_p)
cp_parser *parser;
bool member_p;
bool *friend_p;
{ {
bool declares_class_or_enum; bool declares_class_or_enum;
tree decl = NULL_TREE; tree decl = NULL_TREE;
...@@ -14054,9 +13852,7 @@ cp_parser_single_declaration (parser, ...@@ -14054,9 +13852,7 @@ cp_parser_single_declaration (parser,
representing the cast. */ representing the cast. */
static tree static tree
cp_parser_functional_cast (parser, type) cp_parser_functional_cast (cp_parser* parser, tree type)
cp_parser *parser;
tree type;
{ {
tree expression_list; tree expression_list;
...@@ -14080,9 +13876,7 @@ cp_parser_functional_cast (parser, type) ...@@ -14080,9 +13876,7 @@ cp_parser_functional_cast (parser, type)
parse them now. */ parse them now. */
static void static void
cp_parser_late_parsing_for_member (parser, member_function) cp_parser_late_parsing_for_member (cp_parser* parser, tree member_function)
cp_parser *parser;
tree member_function;
{ {
cp_lexer *saved_lexer; cp_lexer *saved_lexer;
...@@ -14208,9 +14002,7 @@ cp_parser_late_parsing_default_args (cp_parser *parser, tree fn) ...@@ -14208,9 +14002,7 @@ cp_parser_late_parsing_default_args (cp_parser *parser, tree fn)
encountered. */ encountered. */
static tree static tree
cp_parser_sizeof_operand (parser, keyword) cp_parser_sizeof_operand (cp_parser* parser, enum rid keyword)
cp_parser *parser;
enum rid keyword;
{ {
static const char *format; static const char *format;
tree expr = NULL_TREE; tree expr = NULL_TREE;
...@@ -14303,8 +14095,7 @@ cp_parser_declares_only_class_p (cp_parser *parser) ...@@ -14303,8 +14095,7 @@ cp_parser_declares_only_class_p (cp_parser *parser)
Returns TRUE iff `friend' appears among the DECL_SPECIFIERS. */ Returns TRUE iff `friend' appears among the DECL_SPECIFIERS. */
static bool static bool
cp_parser_friend_p (decl_specifiers) cp_parser_friend_p (tree decl_specifiers)
tree decl_specifiers;
{ {
while (decl_specifiers) while (decl_specifiers)
{ {
...@@ -14327,10 +14118,9 @@ cp_parser_friend_p (decl_specifiers) ...@@ -14327,10 +14118,9 @@ cp_parser_friend_p (decl_specifiers)
Otherwise, returns NULL. */ Otherwise, returns NULL. */
static cp_token * static cp_token *
cp_parser_require (parser, type, token_desc) cp_parser_require (cp_parser* parser,
cp_parser *parser; enum cpp_ttype type,
enum cpp_ttype type; const char* token_desc)
const char *token_desc;
{ {
if (cp_lexer_next_token_is (parser->lexer, type)) if (cp_lexer_next_token_is (parser->lexer, type))
return cp_lexer_consume_token (parser->lexer); return cp_lexer_consume_token (parser->lexer);
...@@ -14348,10 +14138,9 @@ cp_parser_require (parser, type, token_desc) ...@@ -14348,10 +14138,9 @@ cp_parser_require (parser, type, token_desc)
the next token is not as expected. */ the next token is not as expected. */
static void static void
cp_parser_skip_until_found (parser, type, token_desc) cp_parser_skip_until_found (cp_parser* parser,
cp_parser *parser; enum cpp_ttype type,
enum cpp_ttype type; const char* token_desc)
const char *token_desc;
{ {
cp_token *token; cp_token *token;
unsigned nesting_depth = 0; unsigned nesting_depth = 0;
...@@ -14397,10 +14186,9 @@ cp_parser_skip_until_found (parser, type, token_desc) ...@@ -14397,10 +14186,9 @@ cp_parser_skip_until_found (parser, type, token_desc)
Otherwise, returns NULL. */ Otherwise, returns NULL. */
static cp_token * static cp_token *
cp_parser_require_keyword (parser, keyword, token_desc) cp_parser_require_keyword (cp_parser* parser,
cp_parser *parser; enum rid keyword,
enum rid keyword; const char* token_desc)
const char *token_desc;
{ {
cp_token *token = cp_parser_require (parser, CPP_KEYWORD, token_desc); cp_token *token = cp_parser_require (parser, CPP_KEYWORD, token_desc);
...@@ -14424,8 +14212,7 @@ cp_parser_require_keyword (parser, keyword, token_desc) ...@@ -14424,8 +14212,7 @@ cp_parser_require_keyword (parser, keyword, token_desc)
function-definition. */ function-definition. */
static bool static bool
cp_parser_token_starts_function_definition_p (token) cp_parser_token_starts_function_definition_p (cp_token* token)
cp_token *token;
{ {
return (/* An ordinary function-body begins with an `{'. */ return (/* An ordinary function-body begins with an `{'. */
token->type == CPP_OPEN_BRACE token->type == CPP_OPEN_BRACE
...@@ -14453,8 +14240,7 @@ cp_parser_next_token_starts_class_definition_p (cp_parser *parser) ...@@ -14453,8 +14240,7 @@ cp_parser_next_token_starts_class_definition_p (cp_parser *parser)
or none_type otherwise. */ or none_type otherwise. */
static enum tag_types static enum tag_types
cp_parser_token_is_class_key (token) cp_parser_token_is_class_key (cp_token* token)
cp_token *token;
{ {
switch (token->keyword) switch (token->keyword)
{ {
...@@ -14577,8 +14363,7 @@ cp_parser_cache_group (cp_parser *parser, ...@@ -14577,8 +14363,7 @@ cp_parser_cache_group (cp_parser *parser,
tokens. */ tokens. */
static void static void
cp_parser_parse_tentatively (parser) cp_parser_parse_tentatively (cp_parser* parser)
cp_parser *parser;
{ {
/* Enter a new parsing context. */ /* Enter a new parsing context. */
parser->context = cp_parser_context_new (parser->context); parser->context = cp_parser_context_new (parser->context);
...@@ -14593,8 +14378,7 @@ cp_parser_parse_tentatively (parser) ...@@ -14593,8 +14378,7 @@ cp_parser_parse_tentatively (parser)
/* Commit to the currently active tentative parse. */ /* Commit to the currently active tentative parse. */
static void static void
cp_parser_commit_to_tentative_parse (parser) cp_parser_commit_to_tentative_parse (cp_parser* parser)
cp_parser *parser;
{ {
cp_parser_context *context; cp_parser_context *context;
cp_lexer *lexer; cp_lexer *lexer;
...@@ -14616,8 +14400,7 @@ cp_parser_commit_to_tentative_parse (parser) ...@@ -14616,8 +14400,7 @@ cp_parser_commit_to_tentative_parse (parser)
will be rolled back, and no diagnostics will be issued. */ will be rolled back, and no diagnostics will be issued. */
static void static void
cp_parser_abort_tentative_parse (parser) cp_parser_abort_tentative_parse (cp_parser* parser)
cp_parser *parser;
{ {
cp_parser_simulate_error (parser); cp_parser_simulate_error (parser);
/* Now, pretend that we want to see if the construct was /* Now, pretend that we want to see if the construct was
...@@ -14630,8 +14413,7 @@ cp_parser_abort_tentative_parse (parser) ...@@ -14630,8 +14413,7 @@ cp_parser_abort_tentative_parse (parser)
Returns true if no error occurred; false otherwise. */ Returns true if no error occurred; false otherwise. */
static bool static bool
cp_parser_parse_definitely (parser) cp_parser_parse_definitely (cp_parser* parser)
cp_parser *parser;
{ {
bool error_occurred; bool error_occurred;
cp_parser_context *context; cp_parser_context *context;
...@@ -14670,8 +14452,7 @@ cp_parser_parse_definitely (parser) ...@@ -14670,8 +14452,7 @@ cp_parser_parse_definitely (parser)
we will stick with this tentative parse, even if errors occur. */ we will stick with this tentative parse, even if errors occur. */
static bool static bool
cp_parser_committed_to_tentative_parse (parser) cp_parser_committed_to_tentative_parse (cp_parser* parser)
cp_parser *parser;
{ {
return (cp_parser_parsing_tentatively (parser) return (cp_parser_parsing_tentatively (parser)
&& parser->context->status == CP_PARSER_STATUS_KIND_COMMITTED); && parser->context->status == CP_PARSER_STATUS_KIND_COMMITTED);
...@@ -14681,8 +14462,7 @@ cp_parser_committed_to_tentative_parse (parser) ...@@ -14681,8 +14462,7 @@ cp_parser_committed_to_tentative_parse (parser)
tentative parse. */ tentative parse. */
static bool static bool
cp_parser_error_occurred (parser) cp_parser_error_occurred (cp_parser* parser)
cp_parser *parser;
{ {
return (cp_parser_parsing_tentatively (parser) return (cp_parser_parsing_tentatively (parser)
&& parser->context->status == CP_PARSER_STATUS_KIND_ERROR); && parser->context->status == CP_PARSER_STATUS_KIND_ERROR);
...@@ -14691,8 +14471,7 @@ cp_parser_error_occurred (parser) ...@@ -14691,8 +14471,7 @@ cp_parser_error_occurred (parser)
/* Returns non-zero if GNU extensions are allowed. */ /* Returns non-zero if GNU extensions are allowed. */
static bool static bool
cp_parser_allow_gnu_extensions_p (parser) cp_parser_allow_gnu_extensions_p (cp_parser* parser)
cp_parser *parser;
{ {
return parser->allow_gnu_extensions_p; return parser->allow_gnu_extensions_p;
} }
...@@ -14708,7 +14487,7 @@ static GTY (()) cp_parser *the_parser; ...@@ -14708,7 +14487,7 @@ static GTY (()) cp_parser *the_parser;
/* Parse the entire translation unit. */ /* Parse the entire translation unit. */
int int
yyparse () yyparse (void)
{ {
bool error_occurred; bool error_occurred;
...@@ -14725,7 +14504,7 @@ yyparse () ...@@ -14725,7 +14504,7 @@ yyparse ()
/* Clean up after parsing the entire translation unit. */ /* Clean up after parsing the entire translation unit. */
void void
free_parser_stacks () free_parser_stacks (void)
{ {
/* Nothing to do. */ /* Nothing to do. */
} }
......
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