Commit 5671bf27 by Andreas Jaeger Committed by Andreas Jaeger

genextract.c: Convert remaining prototypes to ISO C90.

2003-07-07  Andreas Jaeger  <aj@suse.de>

	* genextract.c: Convert remaining prototypes to ISO C90.

	* cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
	* fold-const.c (fold_single_bit_test): Likewise.
	* diagnostic.c (default_diagnostic_finalizer): Likewise.
	* cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.

	* gengtype.c (write_array): Generate ISO C90 prototypes.

	* genflags.c (gen_proto): Generate ISO C90 prototypes.


For cp:
2003-07-07  Andreas Jaeger  <aj@suse.de>

	* friend.c: Convert to ISO C90 prototypes.

	* Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output
	language.
	* cfns.h: Regenerate.

	* typeck.c: Convert remaining prototypes to ISO C90.
	* search.c: Likewise.

	* decl2.c (build_expr_from_tree): Convert prototype to ISO C90.
	* semantics.c (expand_or_defer_fn): Likewise
	* mangle.c (discriminator_for_string_literal): Likewise.
	* g++spec.c (lang_specific_driver): Likewise.

	* search.c (lookup_base_r): Remove unused variable.

From-SVN: r69050
parent 2c430630
2003-07-07 Andreas Jaeger <aj@suse.de>
* genextract.c: Convert remaining prototypes to ISO C90.
* cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
* fold-const.c (fold_single_bit_test): Likewise.
* diagnostic.c (default_diagnostic_finalizer): Likewise.
* cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
* gengtype.c (write_array): Generate ISO C90 prototypes.
* genflags.c (gen_proto): Generate ISO C90 prototypes.
2003-07-07 Roger Sayle <roger@eyesopen.com> 2003-07-07 Roger Sayle <roger@eyesopen.com>
PR optimization/11059 PR optimization/11059
......
...@@ -936,9 +936,7 @@ redirect_branch_edge (edge e, basic_block target) ...@@ -936,9 +936,7 @@ redirect_branch_edge (edge e, basic_block target)
stream. */ stream. */
static bool static bool
rtl_redirect_edge_and_branch (e, target) rtl_redirect_edge_and_branch (edge e, basic_block target)
edge e;
basic_block target;
{ {
if (e->flags & (EDGE_ABNORMAL_CALL | EDGE_EH)) if (e->flags & (EDGE_ABNORMAL_CALL | EDGE_EH))
return false; return false;
......
2003-07-07 Andreas Jaeger <aj@suse.de>
* friend.c: Convert to ISO C90 prototypes.
* Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output
language.
* cfns.h: Regenerate.
* typeck.c: Convert remaining prototypes to ISO C90.
* search.c: Likewise.
* decl2.c (build_expr_from_tree): Convert prototype to ISO C90.
* semantics.c (expand_or_defer_fn): Likewise
* mangle.c (discriminator_for_string_literal): Likewise.
* g++spec.c (lang_specific_driver): Likewise.
* search.c (lookup_base_r): Remove unused variable.
2003-07-07 Nathan Sidwell <nathan@codesourcery.com> 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
* semantics.c: (genrtl_try_block) Adjust emit_line_note * semantics.c: (genrtl_try_block) Adjust emit_line_note
......
...@@ -99,7 +99,7 @@ cc1plus$(exeext): $(CXX_OBJS) $(CXX_C_OBJS) $(BACKEND) \ ...@@ -99,7 +99,7 @@ cc1plus$(exeext): $(CXX_OBJS) $(CXX_C_OBJS) $(BACKEND) \
# Special build rules. # Special build rules.
$(srcdir)/cp/cfns.h: $(srcdir)/cp/cfns.gperf $(srcdir)/cp/cfns.h: $(srcdir)/cp/cfns.gperf
gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \ gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
$(srcdir)/cp/cfns.gperf > $(srcdir)/cp/cfns.h $(srcdir)/cp/cfns.gperf > $(srcdir)/cp/cfns.h
gtype-cp.h gt-cp-call.h gt-cp-decl.h gt-cp-decl2.h : s-gtype; @true gtype-cp.h gt-cp-call.h gt-cp-decl.h gt-cp-decl2.h : s-gtype; @true
......
/* C code produced by gperf version 2.7.2 */ /* ANSI-C code produced by gperf version 2.7.2 */
/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p ../../../src-gcc/gcc/cp/cfns.gperf */ /* Command-line: gperf -o -L ANSI-C -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C cp/cfns.gperf */
#ifdef __GNUC__ #ifdef __GNUC__
__inline __inline
#endif #endif
...@@ -18,9 +18,7 @@ inline ...@@ -18,9 +18,7 @@ inline
#endif #endif
#endif #endif
static unsigned int static unsigned int
hash (str, len) hash (register const char *str, register unsigned int len)
register const char *str;
register unsigned int len;
{ {
static const unsigned short asso_values[] = static const unsigned short asso_values[] =
{ {
...@@ -77,9 +75,7 @@ hash (str, len) ...@@ -77,9 +75,7 @@ hash (str, len)
__inline __inline
#endif #endif
const char * const char *
libc_name_p (str, len) libc_name_p (register const char *str, register unsigned int len)
register const char *str;
register unsigned int len;
{ {
enum enum
{ {
......
...@@ -2942,8 +2942,7 @@ finish_file () ...@@ -2942,8 +2942,7 @@ finish_file ()
performing semantic analysis. */ performing semantic analysis. */
tree tree
build_expr_from_tree (t) build_expr_from_tree (tree t)
tree t;
{ {
if (t == NULL_TREE || t == error_mark_node) if (t == NULL_TREE || t == error_mark_node)
return t; return t;
......
...@@ -47,10 +47,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -47,10 +47,8 @@ Boston, MA 02111-1307, USA. */
#endif #endif
void void
lang_specific_driver (in_argc, in_argv, in_added_libraries) lang_specific_driver (int *in_argc, const char *const **in_argv,
int *in_argc; int *in_added_libraries)
const char *const **in_argv;
int *in_added_libraries;
{ {
int i, j; int i, j;
......
...@@ -1333,9 +1333,8 @@ discriminator_for_local_entity (tree entity) ...@@ -1333,9 +1333,8 @@ discriminator_for_local_entity (tree entity)
string literals used in FUNCTION. */ string literals used in FUNCTION. */
static int static int
discriminator_for_string_literal (function, string) discriminator_for_string_literal (tree function ATTRIBUTE_UNUSED,
tree function ATTRIBUTE_UNUSED; tree string ATTRIBUTE_UNUSED)
tree string ATTRIBUTE_UNUSED;
{ {
/* For now, we don't discriminate amongst string literals. */ /* For now, we don't discriminate amongst string literals. */
return 0; return 0;
......
...@@ -43,10 +43,8 @@ static struct obstack search_obstack; ...@@ -43,10 +43,8 @@ static struct obstack search_obstack;
/* Methods for pushing and popping objects to and from obstacks. */ /* Methods for pushing and popping objects to and from obstacks. */
struct stack_level * struct stack_level *
push_stack_level (obstack, tp, size) push_stack_level (struct obstack *obstack, char *tp,/* Sony NewsOS 5.0 compiler doesn't like void * here. */
struct obstack *obstack; int size)
char *tp; /* Sony NewsOS 5.0 compiler doesn't like void * here. */
int size;
{ {
struct stack_level *stack; struct stack_level *stack;
obstack_grow (obstack, tp, size); obstack_grow (obstack, tp, size);
...@@ -59,8 +57,7 @@ push_stack_level (obstack, tp, size) ...@@ -59,8 +57,7 @@ push_stack_level (obstack, tp, size)
} }
struct stack_level * struct stack_level *
pop_stack_level (stack) pop_stack_level (struct stack_level *stack)
struct stack_level *stack;
{ {
struct stack_level *tem = stack; struct stack_level *tem = stack;
struct obstack *obstack = tem->obstack; struct obstack *obstack = tem->obstack;
......
...@@ -2351,8 +2351,7 @@ expand_body (tree fn) ...@@ -2351,8 +2351,7 @@ expand_body (tree fn)
/* Generate RTL for FN. */ /* Generate RTL for FN. */
void void
expand_or_defer_fn (fn) expand_or_defer_fn (tree fn)
tree fn;
{ {
/* When the parser calls us after finishing the body of a template /* When the parser calls us after finishing the body of a template
function, we don't really want to expand the body. When we're function, we don't really want to expand the body. When we're
......
...@@ -166,8 +166,7 @@ complete_type_or_diagnostic (tree type, tree value, int diag_type) ...@@ -166,8 +166,7 @@ complete_type_or_diagnostic (tree type, tree value, int diag_type)
/* Return truthvalue of whether type of EXP is instantiated. */ /* Return truthvalue of whether type of EXP is instantiated. */
int int
type_unknown_p (exp) type_unknown_p (tree exp)
tree exp;
{ {
return (TREE_CODE (exp) == OVERLOAD return (TREE_CODE (exp) == OVERLOAD
|| TREE_CODE (exp) == TREE_LIST || TREE_CODE (exp) == TREE_LIST
...@@ -185,8 +184,7 @@ type_unknown_p (exp) ...@@ -185,8 +184,7 @@ type_unknown_p (exp)
signatures of T1 and T2: [expr.rel], [expr.eq]. */ signatures of T1 and T2: [expr.rel], [expr.eq]. */
static tree static tree
qualify_type_recursive (t1, t2) qualify_type_recursive (tree t1, tree t2)
tree t1, t2;
{ {
if ((TYPE_PTR_P (t1) && TYPE_PTR_P (t2)) if ((TYPE_PTR_P (t1) && TYPE_PTR_P (t2))
|| (TYPE_PTRMEM_P (t1) && TYPE_PTRMEM_P (t2))) || (TYPE_PTRMEM_P (t1) && TYPE_PTRMEM_P (t2)))
...@@ -231,8 +229,7 @@ qualify_type_recursive (t1, t2) ...@@ -231,8 +229,7 @@ qualify_type_recursive (t1, t2)
lists are already common. */ lists are already common. */
tree tree
commonparms (p1, p2) commonparms (tree p1, tree p2)
tree p1, p2;
{ {
tree oldargs = p1, newargs, n; tree oldargs = p1, newargs, n;
int i, len; int i, len;
...@@ -293,8 +290,7 @@ commonparms (p1, p2) ...@@ -293,8 +290,7 @@ commonparms (p1, p2)
/* Given a type, perhaps copied for a typedef, /* Given a type, perhaps copied for a typedef,
find the "original" version of it. */ find the "original" version of it. */
tree tree
original_type (t) original_type (tree t)
tree t;
{ {
while (TYPE_NAME (t) != NULL_TREE) while (TYPE_NAME (t) != NULL_TREE)
{ {
...@@ -314,9 +310,7 @@ original_type (t) ...@@ -314,9 +310,7 @@ original_type (t)
T2 as described in [expr]. */ T2 as described in [expr]. */
tree tree
type_after_usual_arithmetic_conversions (t1, t2) type_after_usual_arithmetic_conversions (tree t1, tree t2)
tree t1;
tree t2;
{ {
enum tree_code code1 = TREE_CODE (t1); enum tree_code code1 = TREE_CODE (t1);
enum tree_code code2 = TREE_CODE (t2); enum tree_code code2 = TREE_CODE (t2);
...@@ -459,12 +453,8 @@ type_after_usual_arithmetic_conversions (t1, t2) ...@@ -459,12 +453,8 @@ type_after_usual_arithmetic_conversions (t1, t2)
string describing the current location, in case an error occurs. */ string describing the current location, in case an error occurs. */
tree tree
composite_pointer_type (t1, t2, arg1, arg2, location) composite_pointer_type (tree t1, tree t2, tree arg1, tree arg2,
tree t1; const char* location)
tree t2;
tree arg1;
tree arg2;
const char* location;
{ {
tree result_type; tree result_type;
tree attributes; tree attributes;
...@@ -547,8 +537,7 @@ composite_pointer_type (t1, t2, arg1, arg2, location) ...@@ -547,8 +537,7 @@ composite_pointer_type (t1, t2, arg1, arg2, location)
differences would cause the two types to compare unalike. */ differences would cause the two types to compare unalike. */
tree tree
merge_types (t1, t2) merge_types (tree t1, tree t2)
tree t1, t2;
{ {
register enum tree_code code1; register enum tree_code code1;
register enum tree_code code2; register enum tree_code code2;
...@@ -695,8 +684,7 @@ merge_types (t1, t2) ...@@ -695,8 +684,7 @@ merge_types (t1, t2)
if the operands have the given two types. */ if the operands have the given two types. */
tree tree
common_type (t1, t2) common_type (tree t1, tree t2)
tree t1, t2;
{ {
enum tree_code code1; enum tree_code code1;
enum tree_code code2; enum tree_code code2;
...@@ -2210,9 +2198,7 @@ build_ptrmemfunc_access_expr (tree ptrmem, tree member_name) ...@@ -2210,9 +2198,7 @@ build_ptrmemfunc_access_expr (tree ptrmem, tree member_name)
Must also handle REFERENCE_TYPEs for C++. */ Must also handle REFERENCE_TYPEs for C++. */
tree tree
build_x_indirect_ref (ptr, errorstring) build_x_indirect_ref (tree ptr, const char *errorstring)
tree ptr;
const char *errorstring;
{ {
tree rval; tree rval;
...@@ -2227,9 +2213,7 @@ build_x_indirect_ref (ptr, errorstring) ...@@ -2227,9 +2213,7 @@ build_x_indirect_ref (ptr, errorstring)
} }
tree tree
build_indirect_ref (ptr, errorstring) build_indirect_ref (tree ptr, const char *errorstring)
tree ptr;
const char *errorstring;
{ {
register tree pointer, type; register tree pointer, type;
...@@ -2309,8 +2293,7 @@ build_indirect_ref (ptr, errorstring) ...@@ -2309,8 +2293,7 @@ build_indirect_ref (ptr, errorstring)
will inherit the type of the array, which will be some pointer type. */ will inherit the type of the array, which will be some pointer type. */
tree tree
build_array_ref (array, idx) build_array_ref (tree array, tree idx)
tree array, idx;
{ {
if (idx == 0) if (idx == 0)
{ {
...@@ -2466,9 +2449,7 @@ build_array_ref (array, idx) ...@@ -2466,9 +2449,7 @@ build_array_ref (array, idx)
later has the right member. */ later has the right member. */
tree tree
get_member_function_from_ptrfunc (instance_ptrptr, function) get_member_function_from_ptrfunc (tree *instance_ptrptr, tree function)
tree *instance_ptrptr;
tree function;
{ {
if (TREE_CODE (function) == OFFSET_REF) if (TREE_CODE (function) == OFFSET_REF)
function = TREE_OPERAND (function, 1); function = TREE_OPERAND (function, 1);
...@@ -2570,8 +2551,7 @@ get_member_function_from_ptrfunc (instance_ptrptr, function) ...@@ -2570,8 +2551,7 @@ get_member_function_from_ptrfunc (instance_ptrptr, function)
} }
tree tree
build_function_call (function, params) build_function_call (tree function, tree params)
tree function, params;
{ {
register tree fntype, fndecl; register tree fntype, fndecl;
register tree coerced_params; register tree coerced_params;
...@@ -2689,9 +2669,7 @@ build_function_call (function, params) ...@@ -2689,9 +2669,7 @@ build_function_call (function, params)
default arguments, if such were specified. Do so here. */ default arguments, if such were specified. Do so here. */
tree tree
convert_arguments (typelist, values, fndecl, flags) convert_arguments (tree typelist, tree values, tree fndecl, int flags)
tree typelist, values, fndecl;
int flags;
{ {
register tree typetail, valtail; register tree typetail, valtail;
register tree result = NULL_TREE; register tree result = NULL_TREE;
...@@ -2848,9 +2826,7 @@ convert_arguments (typelist, values, fndecl, flags) ...@@ -2848,9 +2826,7 @@ convert_arguments (typelist, values, fndecl, flags)
conversions on the operands. CODE is the kind of expression to build. */ conversions on the operands. CODE is the kind of expression to build. */
tree tree
build_x_binary_op (code, arg1, arg2) build_x_binary_op (enum tree_code code, tree arg1, tree arg2)
enum tree_code code;
tree arg1, arg2;
{ {
if (processing_template_decl) if (processing_template_decl)
return build_min_nt (code, arg1, arg2); return build_min_nt (code, arg1, arg2);
...@@ -3057,10 +3033,8 @@ build_template_expr (enum tree_code code, tree op0, tree op1, tree op2) ...@@ -3057,10 +3033,8 @@ build_template_expr (enum tree_code code, tree op0, tree op1, tree op2)
multiple inheritance, and deal with pointer to member functions. */ multiple inheritance, and deal with pointer to member functions. */
tree tree
build_binary_op (code, orig_op0, orig_op1, convert_p) build_binary_op (enum tree_code code, tree orig_op0, tree orig_op1,
enum tree_code code; int convert_p ATTRIBUTE_UNUSED)
tree orig_op0, orig_op1;
int convert_p ATTRIBUTE_UNUSED;
{ {
tree op0, op1; tree op0, op1;
register enum tree_code code0, code1; register enum tree_code code0, code1;
...@@ -3792,9 +3766,8 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) ...@@ -3792,9 +3766,8 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
of pointer PTROP and integer INTOP. */ of pointer PTROP and integer INTOP. */
static tree static tree
cp_pointer_int_sum (resultcode, ptrop, intop) cp_pointer_int_sum (enum tree_code resultcode, register tree ptrop,
enum tree_code resultcode; register tree intop)
register tree ptrop, intop;
{ {
tree res_type = TREE_TYPE (ptrop); tree res_type = TREE_TYPE (ptrop);
...@@ -3812,9 +3785,7 @@ cp_pointer_int_sum (resultcode, ptrop, intop) ...@@ -3812,9 +3785,7 @@ cp_pointer_int_sum (resultcode, ptrop, intop)
The resulting tree has type int. */ The resulting tree has type int. */
static tree static tree
pointer_diff (op0, op1, ptrtype) pointer_diff (register tree op0, register tree op1, register tree ptrtype)
register tree op0, op1;
register tree ptrtype;
{ {
register tree result, folded; register tree result, folded;
tree restype = ptrdiff_type_node; tree restype = ptrdiff_type_node;
...@@ -3868,9 +3839,7 @@ pointer_diff (op0, op1, ptrtype) ...@@ -3868,9 +3839,7 @@ pointer_diff (op0, op1, ptrtype)
and XARG is the operand. */ and XARG is the operand. */
tree tree
build_x_unary_op (code, xarg) build_x_unary_op (enum tree_code code, tree xarg)
enum tree_code code;
tree xarg;
{ {
tree exp; tree exp;
int ptrmem = 0; int ptrmem = 0;
...@@ -3947,8 +3916,7 @@ build_x_unary_op (code, xarg) ...@@ -3947,8 +3916,7 @@ build_x_unary_op (code, xarg)
-1. */ -1. */
tree tree
cp_truthvalue_conversion (expr) cp_truthvalue_conversion (tree expr)
tree expr;
{ {
tree type = TREE_TYPE (expr); tree type = TREE_TYPE (expr);
if (TYPE_PTRMEM_P (type)) if (TYPE_PTRMEM_P (type))
...@@ -3960,8 +3928,7 @@ cp_truthvalue_conversion (expr) ...@@ -3960,8 +3928,7 @@ cp_truthvalue_conversion (expr)
/* Just like cp_truthvalue_conversion, but we want a CLEANUP_POINT_EXPR. */ /* Just like cp_truthvalue_conversion, but we want a CLEANUP_POINT_EXPR. */
tree tree
condition_conversion (expr) condition_conversion (tree expr)
tree expr;
{ {
tree t; tree t;
if (processing_template_decl) if (processing_template_decl)
......
...@@ -1422,8 +1422,7 @@ _cpp_extend_buff (cpp_reader *pfile, _cpp_buff **pbuff, size_t min_extra) ...@@ -1422,8 +1422,7 @@ _cpp_extend_buff (cpp_reader *pfile, _cpp_buff **pbuff, size_t min_extra)
/* Free a chain of buffers starting at BUFF. */ /* Free a chain of buffers starting at BUFF. */
void void
_cpp_free_buff (buff) _cpp_free_buff (_cpp_buff *buff)
_cpp_buff *buff;
{ {
_cpp_buff *next; _cpp_buff *next;
......
...@@ -1004,9 +1004,8 @@ default_diagnostic_starter (diagnostic_context *context, ...@@ -1004,9 +1004,8 @@ default_diagnostic_starter (diagnostic_context *context,
} }
static void static void
default_diagnostic_finalizer (context, diagnostic) default_diagnostic_finalizer (diagnostic_context *context,
diagnostic_context *context; diagnostic_info *diagnostic __attribute__((unused)))
diagnostic_info *diagnostic __attribute__((unused));
{ {
output_destroy_prefix (&context->buffer); output_destroy_prefix (&context->buffer);
} }
......
...@@ -4784,11 +4784,8 @@ fold_inf_compare (enum tree_code code, tree type, tree arg0, tree arg1) ...@@ -4784,11 +4784,8 @@ fold_inf_compare (enum tree_code code, tree type, tree arg0, tree arg1)
NULL. TYPE is the desired result type. */ NULL. TYPE is the desired result type. */
tree tree
fold_single_bit_test (code, arg0, arg1, result_type) fold_single_bit_test (enum tree_code code, tree arg0, tree arg1,
enum tree_code code; tree result_type)
tree arg0;
tree arg1;
tree result_type;
{ {
/* If this is a TRUTH_NOT_EXPR, it may have a single bit test inside /* If this is a TRUTH_NOT_EXPR, it may have a single bit test inside
operand 0. */ operand 0. */
......
...@@ -490,8 +490,7 @@ from the machine description file `md'. */\n\n"); ...@@ -490,8 +490,7 @@ from the machine description file `md'. */\n\n");
/* Define this so we can link with print-rtl.o to get debug_rtx function. */ /* Define this so we can link with print-rtl.o to get debug_rtx function. */
const char * const char *
get_insn_name (code) get_insn_name (int code ATTRIBUTE_UNUSED)
int code ATTRIBUTE_UNUSED;
{ {
if (code < insn_name_ptr_size) if (code < insn_name_ptr_size)
return insn_name_ptr[code]; return insn_name_ptr[code];
...@@ -500,9 +499,7 @@ get_insn_name (code) ...@@ -500,9 +499,7 @@ get_insn_name (code)
} }
static void static void
record_insn_name (code, name) record_insn_name (int code, const char *name)
int code;
const char *name;
{ {
static const char *last_real_name = "insn"; static const char *last_real_name = "insn";
static int last_real_code = 0; static int last_real_code = 0;
......
...@@ -179,13 +179,11 @@ gen_proto (rtx insn) ...@@ -179,13 +179,11 @@ gen_proto (rtx insn)
{ {
putchar ('('); putchar ('(');
for (i = 0; i < num-1; i++) for (i = 0; i < num-1; i++)
printf ("%c, ", 'a' + i); printf ("rtx %c ATTRIBUTE_UNUSED, ", 'a' + i);
printf ("%c)\n", 'a' + i); printf ("rtx %c ATTRIBUTE_UNUSED)\n", 'a' + i);
for (i = 0; i < num; i++)
printf (" rtx %c ATTRIBUTE_UNUSED;\n", 'a' + i);
} }
else else
puts ("()"); puts ("(void)");
puts ("{\n return 0;\n}"); puts ("{\n return 0;\n}");
} }
......
...@@ -2623,12 +2623,11 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd) ...@@ -2623,12 +2623,11 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd)
oprintf (f, "static void gt_%sa_%s\n", wtd->param_prefix, v->name); oprintf (f, "static void gt_%sa_%s\n", wtd->param_prefix, v->name);
oprintf (f, oprintf (f,
" (void *, void *, gt_pointer_operator, void *);\n"); " (void *, void *, gt_pointer_operator, void *);\n");
oprintf (f, "static void gt_%sa_%s (this_obj, x_p, op, cookie)\n", oprintf (f, "static void gt_%sa_%s (void *this_obj ATTRIBUTE_UNUSED,\n",
wtd->param_prefix, v->name); wtd->param_prefix, v->name);
oprintf (d.of, " void *this_obj ATTRIBUTE_UNUSED;\n"); oprintf (d.of, " void *x_p ATTRIBUTE_UNUSED,\n");
oprintf (d.of, " void *x_p ATTRIBUTE_UNUSED;\n"); oprintf (d.of, " gt_pointer_operator op ATTRIBUTE_UNUSED,\n");
oprintf (d.of, " gt_pointer_operator op ATTRIBUTE_UNUSED;\n"); oprintf (d.of, " void *cookie ATTRIBUTE_UNUSED)\n");
oprintf (d.of, " void *cookie ATTRIBUTE_UNUSED;\n");
oprintf (d.of, "{\n"); oprintf (d.of, "{\n");
d.prev_val[0] = d.prev_val[1] = d.prev_val[2] = d.val = v->name; d.prev_val[0] = d.prev_val[1] = d.prev_val[2] = d.val = v->name;
d.process_field = write_types_local_process_field; d.process_field = write_types_local_process_field;
...@@ -2639,9 +2638,8 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd) ...@@ -2639,9 +2638,8 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd)
d.opt = v->opt; d.opt = v->opt;
oprintf (f, "static void gt_%sa_%s (void *);\n", oprintf (f, "static void gt_%sa_%s (void *);\n",
wtd->prefix, v->name); wtd->prefix, v->name);
oprintf (f, "static void\ngt_%sa_%s (x_p)\n", oprintf (f, "static void\ngt_%sa_%s (void *x_p ATTRIBUTE_UNUSED)\n",
wtd->prefix, v->name); wtd->prefix, v->name);
oprintf (f, " void *x_p ATTRIBUTE_UNUSED;\n");
oprintf (f, "{\n"); oprintf (f, "{\n");
d.prev_val[0] = d.prev_val[1] = d.prev_val[2] = d.val = v->name; d.prev_val[0] = d.prev_val[1] = d.prev_val[2] = d.val = v->name;
d.process_field = write_types_process_field; d.process_field = write_types_process_field;
......
...@@ -360,8 +360,7 @@ replacement_quality (rtx reg) ...@@ -360,8 +360,7 @@ replacement_quality (rtx reg)
/* Return 1 if INSN might end a basic block. */ /* Return 1 if INSN might end a basic block. */
static int perhaps_ends_bb_p (insn) static int perhaps_ends_bb_p (rtx insn)
rtx insn;
{ {
switch (GET_CODE (insn)) switch (GET_CODE (insn))
{ {
......
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