Commit e18476eb by Bernardo Innocenti Committed by Bernardo Innocenti

c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists.

	* c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
	lists.
	* c-decl.c: Likewise.
	* c-format.c: Likewise.
	* c-lex.c: Likewise.
	* c-opts.c: Likewise.
	* c-pragma.c: Likewise.
	* c-typeck.c: Likewise.
	* gencheck.c: Likewise.
	* genconditions.c: Likewise.
	* genconfig.c: Likewise.
	* genflags.c: Likewise.
	* gengtype.c: Likewise.
	* gensupport.c: Likewise.
	* ggc-none.c: Likewise.
	* langhooks.c: Likewise.
	* statistics.h: Likewise.
	* stub-objc.c: Likewise.
	* java/decl.c: Likewise.

From-SVN: r85128
parent 72bb2c39
2004-07-25 Bernardo Innocenti <bernie@develer.com>
* c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
lists.
* c-decl.c: Likewise.
* c-format.c: Likewise.
* c-lex.c: Likewise.
* c-opts.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* gencheck.c: Likewise.
* genconditions.c: Likewise.
* genconfig.c: Likewise.
* genflags.c: Likewise.
* gengtype.c: Likewise.
* gensupport.c: Likewise.
* ggc-none.c: Likewise.
* langhooks.c: Likewise.
* statistics.h: Likewise.
* stub-objc.c: Likewise.
* java/decl.c: Likewise.
2004-07-24 Roman Zippel <zippel@linux-m68k.org> 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
* config/m68k/m68k.c (output_scc_di): Fix coding style. * config/m68k/m68k.c (output_scc_di): Fix coding style.
......
...@@ -6526,7 +6526,7 @@ current_stmt_tree (void) ...@@ -6526,7 +6526,7 @@ current_stmt_tree (void)
C. */ C. */
int int
anon_aggr_type_p (tree node ATTRIBUTE_UNUSED) anon_aggr_type_p (tree ARG_UNUSED (node))
{ {
return 0; return 0;
} }
......
...@@ -83,7 +83,7 @@ static bool get_constant (tree expr, unsigned HOST_WIDE_INT *value, ...@@ -83,7 +83,7 @@ static bool get_constant (tree expr, unsigned HOST_WIDE_INT *value,
/* Handle a "format_arg" attribute; arguments as in /* Handle a "format_arg" attribute; arguments as in
struct attribute_spec.handler. */ struct attribute_spec.handler. */
tree tree
handle_format_arg_attribute (tree *node, tree name ATTRIBUTE_UNUSED, handle_format_arg_attribute (tree *node, tree ARG_UNUSED (name),
tree args, int flags, bool *no_add_attrs) tree args, int flags, bool *no_add_attrs)
{ {
tree type = *node; tree type = *node;
...@@ -2457,7 +2457,7 @@ extern const format_kind_info TARGET_FORMAT_TYPES[]; ...@@ -2457,7 +2457,7 @@ extern const format_kind_info TARGET_FORMAT_TYPES[];
/* Handle a "format" attribute; arguments as in /* Handle a "format" attribute; arguments as in
struct attribute_spec.handler. */ struct attribute_spec.handler. */
tree tree
handle_format_attribute (tree *node, tree name ATTRIBUTE_UNUSED, tree args, handle_format_attribute (tree *node, tree ARG_UNUSED (name), tree args,
int flags, bool *no_add_attrs) int flags, bool *no_add_attrs)
{ {
tree type = *node; tree type = *node;
......
...@@ -147,7 +147,7 @@ update_header_times (const char *name) ...@@ -147,7 +147,7 @@ update_header_times (const char *name)
} }
static int static int
dump_one_header (splay_tree_node n, void *dummy ATTRIBUTE_UNUSED) dump_one_header (splay_tree_node n, void * ARG_UNUSED (dummy))
{ {
print_time ((const char *) n->key, print_time ((const char *) n->key,
((struct c_fileinfo *) n->value)->time); ((struct c_fileinfo *) n->value)->time);
...@@ -172,9 +172,9 @@ dump_time_statistics (void) ...@@ -172,9 +172,9 @@ dump_time_statistics (void)
} }
static void static void
cb_ident (cpp_reader *pfile ATTRIBUTE_UNUSED, cb_ident (cpp_reader * ARG_UNUSED (pfile),
unsigned int line ATTRIBUTE_UNUSED, unsigned int ARG_UNUSED (line),
const cpp_string *str ATTRIBUTE_UNUSED) const cpp_string * ARG_UNUSED (str))
{ {
#ifdef ASM_OUTPUT_IDENT #ifdef ASM_OUTPUT_IDENT
if (! flag_no_ident) if (! flag_no_ident)
...@@ -193,7 +193,7 @@ cb_ident (cpp_reader *pfile ATTRIBUTE_UNUSED, ...@@ -193,7 +193,7 @@ cb_ident (cpp_reader *pfile ATTRIBUTE_UNUSED,
/* Called at the start of every non-empty line. TOKEN is the first /* Called at the start of every non-empty line. TOKEN is the first
lexed token on the line. Used for diagnostic line numbers. */ lexed token on the line. Used for diagnostic line numbers. */
static void static void
cb_line_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const cpp_token *token, cb_line_change (cpp_reader * ARG_UNUSED (pfile), const cpp_token *token,
int parsing_args) int parsing_args)
{ {
if (token->type != CPP_EOF && !parsing_args) if (token->type != CPP_EOF && !parsing_args)
...@@ -315,7 +315,7 @@ cb_define (cpp_reader *pfile, source_location loc, cpp_hashnode *node) ...@@ -315,7 +315,7 @@ cb_define (cpp_reader *pfile, source_location loc, cpp_hashnode *node)
/* #undef callback for DWARF and DWARF2 debug info. */ /* #undef callback for DWARF and DWARF2 debug info. */
static void static void
cb_undef (cpp_reader *pfile ATTRIBUTE_UNUSED, source_location loc, cb_undef (cpp_reader * ARG_UNUSED (pfile), source_location loc,
cpp_hashnode *node) cpp_hashnode *node)
{ {
const struct line_map *map = linemap_lookup (&line_table, loc); const struct line_map *map = linemap_lookup (&line_table, loc);
......
...@@ -194,7 +194,7 @@ defer_opt (enum opt_code code, const char *arg) ...@@ -194,7 +194,7 @@ defer_opt (enum opt_code code, const char *arg)
/* Common initialization before parsing options. */ /* Common initialization before parsing options. */
unsigned int unsigned int
c_common_init_options (unsigned int argc, const char **argv ATTRIBUTE_UNUSED) c_common_init_options (unsigned int argc, const char ** ARG_UNUSED (argv))
{ {
static const unsigned int lang_flags[] = {CL_C, CL_ObjC, CL_CXX, CL_ObjCXX}; static const unsigned int lang_flags[] = {CL_C, CL_ObjC, CL_CXX, CL_ObjCXX};
unsigned int result; unsigned int result;
...@@ -1354,7 +1354,7 @@ push_command_line_include (void) ...@@ -1354,7 +1354,7 @@ push_command_line_include (void)
/* File change callback. Has to handle -include files. */ /* File change callback. Has to handle -include files. */
static void static void
cb_file_change (cpp_reader *pfile ATTRIBUTE_UNUSED, cb_file_change (cpp_reader * ARG_UNUSED (pfile),
const struct line_map *new_map) const struct line_map *new_map)
{ {
if (flag_preprocess_only) if (flag_preprocess_only)
...@@ -1367,7 +1367,7 @@ cb_file_change (cpp_reader *pfile ATTRIBUTE_UNUSED, ...@@ -1367,7 +1367,7 @@ cb_file_change (cpp_reader *pfile ATTRIBUTE_UNUSED,
} }
void void
cb_dir_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const char *dir) cb_dir_change (cpp_reader * ARG_UNUSED (pfile), const char *dir)
{ {
if (! set_src_pwd (dir)) if (! set_src_pwd (dir))
warning ("too late for # directive to set debug directory"); warning ("too late for # directive to set debug directory");
......
...@@ -155,7 +155,7 @@ pop_alignment (tree id) ...@@ -155,7 +155,7 @@ pop_alignment (tree id)
#pragma pack (pop) #pragma pack (pop)
#pragma pack (pop, ID) */ #pragma pack (pop, ID) */
static void static void
handle_pragma_pack (cpp_reader *dummy ATTRIBUTE_UNUSED) handle_pragma_pack (cpp_reader * ARG_UNUSED (dummy))
{ {
tree x, id = 0; tree x, id = 0;
int align = -1; int align = -1;
...@@ -315,7 +315,7 @@ maybe_apply_pragma_weak (tree decl) ...@@ -315,7 +315,7 @@ maybe_apply_pragma_weak (tree decl)
/* #pragma weak name [= value] */ /* #pragma weak name [= value] */
static void static void
handle_pragma_weak (cpp_reader *dummy ATTRIBUTE_UNUSED) handle_pragma_weak (cpp_reader * ARG_UNUSED (dummy))
{ {
tree name, value, x, decl; tree name, value, x, decl;
enum cpp_ttype t; enum cpp_ttype t;
...@@ -346,7 +346,7 @@ handle_pragma_weak (cpp_reader *dummy ATTRIBUTE_UNUSED) ...@@ -346,7 +346,7 @@ handle_pragma_weak (cpp_reader *dummy ATTRIBUTE_UNUSED)
} }
#else #else
void void
maybe_apply_pragma_weak (tree decl ATTRIBUTE_UNUSED) maybe_apply_pragma_weak (tree ARG_UNUSED (decl))
{ {
} }
#endif /* HANDLE_PRAGMA_WEAK */ #endif /* HANDLE_PRAGMA_WEAK */
...@@ -389,7 +389,7 @@ static void handle_pragma_redefine_extname (cpp_reader *); ...@@ -389,7 +389,7 @@ static void handle_pragma_redefine_extname (cpp_reader *);
/* #pragma redefine_extname oldname newname */ /* #pragma redefine_extname oldname newname */
static void static void
handle_pragma_redefine_extname (cpp_reader *dummy ATTRIBUTE_UNUSED) handle_pragma_redefine_extname (cpp_reader * ARG_UNUSED (dummy))
{ {
tree oldname, newname, decl, x; tree oldname, newname, decl, x;
enum cpp_ttype t; enum cpp_ttype t;
...@@ -458,7 +458,7 @@ static GTY(()) tree pragma_extern_prefix; ...@@ -458,7 +458,7 @@ static GTY(()) tree pragma_extern_prefix;
/* #pragma extern_prefix "prefix" */ /* #pragma extern_prefix "prefix" */
static void static void
handle_pragma_extern_prefix (cpp_reader *dummy ATTRIBUTE_UNUSED) handle_pragma_extern_prefix (cpp_reader * ARG_UNUSED (dummy))
{ {
tree prefix, x; tree prefix, x;
enum cpp_ttype t; enum cpp_ttype t;
......
...@@ -6806,7 +6806,7 @@ c_end_compound_stmt (tree stmt, bool do_scope) ...@@ -6806,7 +6806,7 @@ c_end_compound_stmt (tree stmt, bool do_scope)
meant to apply to normal control flow transfer. */ meant to apply to normal control flow transfer. */
void void
push_cleanup (tree decl ATTRIBUTE_UNUSED, tree cleanup, bool eh_only) push_cleanup (tree ARG_UNUSED (decl), tree cleanup, bool eh_only)
{ {
enum tree_code code; enum tree_code code;
tree stmt, list; tree stmt, list;
......
...@@ -42,7 +42,7 @@ usage (void) ...@@ -42,7 +42,7 @@ usage (void)
} }
int int
main (int argc, char **argv ATTRIBUTE_UNUSED) main (int argc, char ** ARG_UNUSED (argv))
{ {
int i, j; int i, j;
......
...@@ -138,7 +138,7 @@ extern rtx operands[];\n"); ...@@ -138,7 +138,7 @@ extern rtx operands[];\n");
MAYBE_EVAL (! optimize_size && ! TARGET_READ_MODIFY_WRITE) }, */ MAYBE_EVAL (! optimize_size && ! TARGET_READ_MODIFY_WRITE) }, */
static int static int
write_one_condition (void **slot, void *dummy ATTRIBUTE_UNUSED) write_one_condition (void **slot, void * ARG_UNUSED (dummy))
{ {
const struct c_test *test = * (const struct c_test **) slot; const struct c_test *test = * (const struct c_test **) slot;
const char *p; const char *p;
......
...@@ -369,7 +369,7 @@ main (int argc, char **argv) ...@@ -369,7 +369,7 @@ main (int argc, char **argv)
/* 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 (int code ATTRIBUTE_UNUSED) get_insn_name (int ARG_UNUSED (code))
{ {
return NULL; return NULL;
} }
...@@ -179,8 +179,8 @@ gen_proto (rtx insn) ...@@ -179,8 +179,8 @@ gen_proto (rtx insn)
{ {
putchar ('('); putchar ('(');
for (i = 0; i < num-1; i++) for (i = 0; i < num-1; i++)
printf ("rtx %c ATTRIBUTE_UNUSED, ", 'a' + i); printf ("rtx ARG_UNUSED (%c), ", 'a' + i);
printf ("rtx %c ATTRIBUTE_UNUSED)\n", 'a' + i); printf ("rtx ARG_UNUSED (%c))\n", 'a' + i);
} }
else else
puts ("(void)"); puts ("(void)");
...@@ -287,7 +287,7 @@ main (int argc, char **argv) ...@@ -287,7 +287,7 @@ main (int argc, char **argv)
/* 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 (int code ATTRIBUTE_UNUSED) get_insn_name (int ARG_UNUSED (code))
{ {
return NULL; return NULL;
} }
...@@ -391,7 +391,7 @@ write_rtx_next (void) ...@@ -391,7 +391,7 @@ write_rtx_next (void)
are based in a complex way on the type of RTL. */ are based in a complex way on the type of RTL. */
static type_p static type_p
adjust_field_rtx_def (type_p t, options_p opt ATTRIBUTE_UNUSED) adjust_field_rtx_def (type_p t, options_p ARG_UNUSED (opt))
{ {
pair_p flds = NULL; pair_p flds = NULL;
options_p nodot; options_p nodot;
...@@ -2233,7 +2233,10 @@ write_local_func_for_structure (type_p orig_s, type_p s, type_p *param) ...@@ -2233,7 +2233,10 @@ write_local_func_for_structure (type_p orig_s, type_p s, type_p *param)
oprintf (d.of, "void\n"); oprintf (d.of, "void\n");
oprintf (d.of, "gt_pch_p_"); oprintf (d.of, "gt_pch_p_");
output_mangled_typename (d.of, orig_s); output_mangled_typename (d.of, orig_s);
oprintf (d.of, " (void *this_obj ATTRIBUTE_UNUSED,\n\tvoid *x_p,\n\tgt_pointer_operator op ATTRIBUTE_UNUSED,\n\tvoid *cookie ATTRIBUTE_UNUSED)\n"); oprintf (d.of, " (ATTRIBUTE_UNUSED void *this_obj,\n"
"\tvoid *x_p,\n"
"\tATTRIBUTE_UNUSED gt_pointer_operator op,\n"
"\tATTRIBUTE_UNUSED void *cookie)\n");
oprintf (d.of, "{\n"); oprintf (d.of, "{\n");
oprintf (d.of, " %s %s * const x ATTRIBUTE_UNUSED = (%s %s *)x_p;\n", oprintf (d.of, " %s %s * const x ATTRIBUTE_UNUSED = (%s %s *)x_p;\n",
s->kind == TYPE_UNION ? "union" : "struct", s->u.s.tag, s->kind == TYPE_UNION ? "union" : "struct", s->u.s.tag,
...@@ -2648,11 +2651,12 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd) ...@@ -2648,11 +2651,12 @@ 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 (void *this_obj ATTRIBUTE_UNUSED,\n", oprintf (f, "static void gt_%sa_%s (ATTRIBUTE_UNUSED void *this_obj,\n",
wtd->param_prefix, v->name); wtd->param_prefix, v->name);
oprintf (d.of, " void *x_p ATTRIBUTE_UNUSED,\n"); oprintf (d.of,
oprintf (d.of, " gt_pointer_operator op ATTRIBUTE_UNUSED,\n"); " ATTRIBUTE_UNUSED void *x_p,\n"
oprintf (d.of, " void *cookie ATTRIBUTE_UNUSED)\n"); " ATTRIBUTE_UNUSED gt_pointer_operator op,\n"
" ATTRIBUTE_UNUSED void * cookie)\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;
...@@ -2663,7 +2667,7 @@ write_array (outf_p f, pair_p v, const struct write_types_data *wtd) ...@@ -2663,7 +2667,7 @@ 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 (void *x_p ATTRIBUTE_UNUSED)\n", oprintf (f, "static void\ngt_%sa_%s (ATTRIBUTE_UNUSED void *x_p)\n",
wtd->prefix, v->name); wtd->prefix, v->name);
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;
...@@ -2924,7 +2928,7 @@ write_roots (pair_p variables) ...@@ -2924,7 +2928,7 @@ write_roots (pair_p variables)
extern int main (int argc, char **argv); extern int main (int argc, char **argv);
int int
main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) main(int ARG_UNUSED (argc), char ** ARG_UNUSED (argv))
{ {
unsigned i; unsigned i;
static struct fileloc pos = { __FILE__, __LINE__ }; static struct fileloc pos = { __FILE__, __LINE__ };
......
...@@ -128,7 +128,7 @@ message_with_line (int lineno, const char *msg, ...) ...@@ -128,7 +128,7 @@ message_with_line (int lineno, const char *msg, ...)
the gensupport programs. */ the gensupport programs. */
rtx rtx
gen_rtx_CONST_INT (enum machine_mode mode ATTRIBUTE_UNUSED, gen_rtx_CONST_INT (enum machine_mode ARG_UNUSED (mode),
HOST_WIDE_INT arg) HOST_WIDE_INT arg)
{ {
rtx rt = rtx_alloc (CONST_INT); rtx rt = rtx_alloc (CONST_INT);
......
...@@ -32,7 +32,7 @@ struct alloc_zone *rtl_zone = NULL; ...@@ -32,7 +32,7 @@ struct alloc_zone *rtl_zone = NULL;
struct alloc_zone *garbage_zone = NULL; struct alloc_zone *garbage_zone = NULL;
void * void *
ggc_alloc_typed_stat (enum gt_types_enum gte ATTRIBUTE_UNUSED, size_t size ggc_alloc_typed_stat (enum gt_types_enum ARG_UNUSED (gte), size_t size
MEM_STAT_DECL) MEM_STAT_DECL)
{ {
return xmalloc (size); return xmalloc (size);
...@@ -45,7 +45,7 @@ ggc_alloc_stat (size_t size MEM_STAT_DECL) ...@@ -45,7 +45,7 @@ ggc_alloc_stat (size_t size MEM_STAT_DECL)
} }
void * void *
ggc_alloc_zone_stat (size_t size, struct alloc_zone *zone ATTRIBUTE_UNUSED ggc_alloc_zone_stat (size_t size, struct alloc_zone * ARG_UNUSED (zone)
MEM_STAT_DECL) MEM_STAT_DECL)
{ {
return xmalloc (size); return xmalloc (size);
......
...@@ -501,7 +501,7 @@ builtin_function (const char *name, ...@@ -501,7 +501,7 @@ builtin_function (const char *name,
int function_code, int function_code,
enum built_in_class class, enum built_in_class class,
const char *library_name, const char *library_name,
tree attrs ATTRIBUTE_UNUSED) tree ARG_UNUSED (attrs))
{ {
tree decl = build_decl (FUNCTION_DECL, get_identifier (name), type); tree decl = build_decl (FUNCTION_DECL, get_identifier (name), type);
DECL_EXTERNAL (decl) = 1; DECL_EXTERNAL (decl) = 1;
......
...@@ -46,23 +46,23 @@ lhd_do_nothing (void) ...@@ -46,23 +46,23 @@ lhd_do_nothing (void)
/* Do nothing (tree). */ /* Do nothing (tree). */
void void
lhd_do_nothing_t (tree t ATTRIBUTE_UNUSED) lhd_do_nothing_t (tree ARG_UNUSED (t))
{ {
} }
/* Do nothing (int). */ /* Do nothing (int). */
void void
lhd_do_nothing_i (int i ATTRIBUTE_UNUSED) lhd_do_nothing_i (int ARG_UNUSED (i))
{ {
} }
/* Do nothing (int, int, int). Return NULL_TREE. */ /* Do nothing (int, int, int). Return NULL_TREE. */
tree tree
lhd_do_nothing_iii_return_null_tree (int i ATTRIBUTE_UNUSED, lhd_do_nothing_iii_return_null_tree (int ARG_UNUSED (i),
int j ATTRIBUTE_UNUSED, int ARG_UNUSED (j),
int k ATTRIBUTE_UNUSED) int ARG_UNUSED (k))
{ {
return NULL_TREE; return NULL_TREE;
} }
...@@ -70,7 +70,7 @@ lhd_do_nothing_iii_return_null_tree (int i ATTRIBUTE_UNUSED, ...@@ -70,7 +70,7 @@ lhd_do_nothing_iii_return_null_tree (int i ATTRIBUTE_UNUSED,
/* Do nothing (function). */ /* Do nothing (function). */
void void
lhd_do_nothing_f (struct function *f ATTRIBUTE_UNUSED) lhd_do_nothing_f (struct function * ARG_UNUSED (f))
{ {
} }
...@@ -93,7 +93,7 @@ lhd_return_null_tree_v (void) ...@@ -93,7 +93,7 @@ lhd_return_null_tree_v (void)
/* Do nothing (return NULL_TREE). */ /* Do nothing (return NULL_TREE). */
tree tree
lhd_return_null_tree (tree t ATTRIBUTE_UNUSED) lhd_return_null_tree (tree ARG_UNUSED (t))
{ {
return NULL_TREE; return NULL_TREE;
} }
...@@ -101,7 +101,7 @@ lhd_return_null_tree (tree t ATTRIBUTE_UNUSED) ...@@ -101,7 +101,7 @@ lhd_return_null_tree (tree t ATTRIBUTE_UNUSED)
/* The default post options hook. */ /* The default post options hook. */
bool bool
lhd_post_options (const char **pfilename ATTRIBUTE_UNUSED) lhd_post_options (const char ** ARG_UNUSED (pfilename))
{ {
return false; return false;
} }
...@@ -109,16 +109,16 @@ lhd_post_options (const char **pfilename ATTRIBUTE_UNUSED) ...@@ -109,16 +109,16 @@ lhd_post_options (const char **pfilename ATTRIBUTE_UNUSED)
/* Called from by print-tree.c. */ /* Called from by print-tree.c. */
void void
lhd_print_tree_nothing (FILE *file ATTRIBUTE_UNUSED, lhd_print_tree_nothing (FILE * ARG_UNUSED (file),
tree node ATTRIBUTE_UNUSED, tree ARG_UNUSED (node),
int indent ATTRIBUTE_UNUSED) int ARG_UNUSED (indent))
{ {
} }
/* Called from safe_from_p. */ /* Called from safe_from_p. */
int int
lhd_safe_from_p (rtx x ATTRIBUTE_UNUSED, tree exp ATTRIBUTE_UNUSED) lhd_safe_from_p (rtx ARG_UNUSED (x), tree ARG_UNUSED (exp))
{ {
return 1; return 1;
} }
...@@ -126,17 +126,17 @@ lhd_safe_from_p (rtx x ATTRIBUTE_UNUSED, tree exp ATTRIBUTE_UNUSED) ...@@ -126,17 +126,17 @@ lhd_safe_from_p (rtx x ATTRIBUTE_UNUSED, tree exp ATTRIBUTE_UNUSED)
/* Called from unsafe_for_reeval. */ /* Called from unsafe_for_reeval. */
int int
lhd_unsafe_for_reeval (tree t ATTRIBUTE_UNUSED) lhd_unsafe_for_reeval (tree ARG_UNUSED (t))
{ {
return -1; return -1;
} }
/* Called from staticp. */ /* Called from staticp. */
int bool
lhd_staticp (tree exp ATTRIBUTE_UNUSED) lhd_staticp (tree ARG_UNUSED (exp))
{ {
return 0; return false;
} }
/* Called from check_global_declarations. */ /* Called from check_global_declarations. */
...@@ -207,21 +207,21 @@ lhd_can_use_bit_fields_p (void) ...@@ -207,21 +207,21 @@ lhd_can_use_bit_fields_p (void)
/* Type promotion for variable arguments. */ /* Type promotion for variable arguments. */
tree tree
lhd_type_promotes_to (tree type ATTRIBUTE_UNUSED) lhd_type_promotes_to (tree ARG_UNUSED (type))
{ {
abort (); abort ();
} }
/* Registration of machine- or os-specific builtin types. */ /* Registration of machine- or os-specific builtin types. */
void void
lhd_register_builtin_type (tree type ATTRIBUTE_UNUSED, lhd_register_builtin_type (tree ARG_UNUSED (type),
const char* name ATTRIBUTE_UNUSED) const char * ARG_UNUSED (name))
{ {
} }
/* Invalid use of an incomplete type. */ /* Invalid use of an incomplete type. */
void void
lhd_incomplete_type_error (tree value ATTRIBUTE_UNUSED, tree type) lhd_incomplete_type_error (tree ARG_UNUSED (value), tree type)
{ {
if (TREE_CODE (type) == ERROR_MARK) if (TREE_CODE (type) == ERROR_MARK)
return; return;
...@@ -233,7 +233,7 @@ lhd_incomplete_type_error (tree value ATTRIBUTE_UNUSED, tree type) ...@@ -233,7 +233,7 @@ lhd_incomplete_type_error (tree value ATTRIBUTE_UNUSED, tree type)
is used by languages that don't need to do anything special. */ is used by languages that don't need to do anything special. */
HOST_WIDE_INT HOST_WIDE_INT
lhd_get_alias_set (tree t ATTRIBUTE_UNUSED) lhd_get_alias_set (tree ARG_UNUSED (t))
{ {
return -1; return -1;
} }
...@@ -242,7 +242,7 @@ lhd_get_alias_set (tree t ATTRIBUTE_UNUSED) ...@@ -242,7 +242,7 @@ lhd_get_alias_set (tree t ATTRIBUTE_UNUSED)
used by languages that haven't deal with alias sets yet. */ used by languages that haven't deal with alias sets yet. */
HOST_WIDE_INT HOST_WIDE_INT
hook_get_alias_set_0 (tree t ATTRIBUTE_UNUSED) hook_get_alias_set_0 (tree ARG_UNUSED (t))
{ {
return 0; return 0;
} }
...@@ -250,10 +250,10 @@ hook_get_alias_set_0 (tree t ATTRIBUTE_UNUSED) ...@@ -250,10 +250,10 @@ hook_get_alias_set_0 (tree t ATTRIBUTE_UNUSED)
/* This is the default expand_expr function. */ /* This is the default expand_expr function. */
rtx rtx
lhd_expand_expr (tree t ATTRIBUTE_UNUSED, rtx r ATTRIBUTE_UNUSED, lhd_expand_expr (tree ARG_UNUSED (t), rtx ARG_UNUSED (r),
enum machine_mode mm ATTRIBUTE_UNUSED, enum machine_mode ARG_UNUSED (mm),
int em ATTRIBUTE_UNUSED, int ARG_UNUSED (em),
rtx *a ATTRIBUTE_UNUSED) rtx * ARG_UNUSED (a))
{ {
abort (); abort ();
} }
...@@ -265,7 +265,7 @@ lhd_expand_expr (tree t ATTRIBUTE_UNUSED, rtx r ATTRIBUTE_UNUSED, ...@@ -265,7 +265,7 @@ lhd_expand_expr (tree t ATTRIBUTE_UNUSED, rtx r ATTRIBUTE_UNUSED,
any RTL generation. */ any RTL generation. */
int int
lhd_expand_decl (tree t ATTRIBUTE_UNUSED) lhd_expand_decl (tree ARG_UNUSED (t))
{ {
return 0; return 0;
} }
...@@ -273,7 +273,7 @@ lhd_expand_decl (tree t ATTRIBUTE_UNUSED) ...@@ -273,7 +273,7 @@ lhd_expand_decl (tree t ATTRIBUTE_UNUSED)
/* This is the default decl_printable_name function. */ /* This is the default decl_printable_name function. */
const char * const char *
lhd_decl_printable_name (tree decl, int verbosity ATTRIBUTE_UNUSED) lhd_decl_printable_name (tree decl, int ARG_UNUSED (verbosity))
{ {
return IDENTIFIER_POINTER (DECL_NAME (decl)); return IDENTIFIER_POINTER (DECL_NAME (decl));
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef GCC_STATISTICS #ifndef GCC_STATISTICS
#define GCC_STATISTICS #define GCC_STATISTICS
#ifdef GATHER_STATISTICS #ifdef GATHER_STATISTICS
#define MEM_STAT_DECL , const char *_loc_name ATTRIBUTE_UNUSED, int _loc_line ATTRIBUTE_UNUSED, const char *_loc_function ATTRIBUTE_UNUSED #define MEM_STAT_DECL , const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
#define PASS_MEM_STAT , _loc_name, _loc_line, _loc_function #define PASS_MEM_STAT , _loc_name, _loc_line, _loc_function
#define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__ #define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__
#else #else
......
...@@ -28,37 +28,37 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -28,37 +28,37 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "c-common.h" #include "c-common.h"
tree tree
lookup_interface (tree arg ATTRIBUTE_UNUSED) lookup_interface (tree ARG_UNUSED (arg))
{ {
return 0; return 0;
} }
tree tree
is_class_name (tree arg ATTRIBUTE_UNUSED) is_class_name (tree ARG_UNUSED (arg))
{ {
return 0; return 0;
} }
tree tree
objc_is_object_ptr (tree arg ATTRIBUTE_UNUSED) objc_is_object_ptr (tree ARG_UNUSED (arg))
{ {
return 0; return 0;
} }
tree tree
lookup_objc_ivar (tree arg ATTRIBUTE_UNUSED) lookup_objc_ivar (tree ARG_UNUSED (arg))
{ {
return 0; return 0;
} }
void void
objc_check_decl (tree decl ATTRIBUTE_UNUSED) objc_check_decl (tree ARG_UNUSED (decl))
{ {
} }
int int
objc_comptypes (tree lhs ATTRIBUTE_UNUSED, tree rhs ATTRIBUTE_UNUSED, objc_comptypes (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs),
int reflexive ATTRIBUTE_UNUSED) int ARG_UNUSED (reflexive))
{ {
return -1; return -1;
} }
...@@ -75,7 +75,7 @@ objc_clear_super_receiver (void) ...@@ -75,7 +75,7 @@ objc_clear_super_receiver (void)
} }
int int
objc_is_public (tree expr ATTRIBUTE_UNUSED, tree identifier ATTRIBUTE_UNUSED) objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
{ {
return 1; return 1;
} }
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