From 20217ac1248ad3d2a3cc1ddd75b86468ee8fc97c Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 12 Jul 2000 16:17:15 +0000 Subject: [PATCH] Warning fixes: * c-decl.c (set_current_function_name_declared, anon_aggr_type_p, lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED. * c-parse.in (stmt): Delete unused variables. * convert.c (convert_to_vector): Likewise. * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'. * tree.c (finish_vector_type): Prototype. From-SVN: r34987 --- gcc/ChangeLog | 13 +++++++++++++ gcc/c-decl.c | 6 +++--- gcc/c-parse.in | 4 ++-- gcc/convert.c | 2 -- gcc/gensupport.c | 3 ++- gcc/tree.c | 1 + 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf039beecbc..f4bb29835a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2000-07-12 Kaveh R. Ghazi + + * c-decl.c (set_current_function_name_declared, anon_aggr_type_p, + lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED. + + * c-parse.in (stmt): Delete unused variables. + + * convert.c (convert_to_vector): Likewise. + + * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'. + + * tree.c (finish_vector_type): Prototype. + 2000-07-12 Bruce Korb * fixinc/fixfixes.c: use xmalloc diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 239bf1327fd..619c20c1216 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6818,7 +6818,7 @@ stmts_are_full_exprs_p () int anon_aggr_type_p (node) - tree node; + tree node ATTRIBUTE_UNUSED; { return 0; } @@ -6904,7 +6904,7 @@ do_case (low_value, high_value) tree lang_expand_stmt (t) - tree t; + tree t ATTRIBUTE_UNUSED; { abort (); return NULL_TREE; @@ -6914,7 +6914,7 @@ lang_expand_stmt (t) void set_current_function_name_declared (i) - int i; + int i ATTRIBUTE_UNUSED; { abort (); } diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 646183cc340..04e160d02ee 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1843,11 +1843,11 @@ stmt: lineno_labeled_stmt { expand_end_case ($3); } | BREAK ';' - { tree break_stmt = build_break_stmt (); + { build_break_stmt (); stmt_count++; genrtl_break_stmt (); } | CONTINUE ';' - { tree continue_stmt = build_continue_stmt (); + { build_continue_stmt (); stmt_count++; genrtl_continue_stmt (); } | RETURN ';' diff --git a/gcc/convert.c b/gcc/convert.c index 6eea7d684c6..dd1b91a4e0b 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -460,8 +460,6 @@ tree convert_to_vector (type, expr) tree type, expr; { - tree subtype = TREE_TYPE (type); - switch (TREE_CODE (TREE_TYPE (expr))) { case INTEGER_TYPE: diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 44bd3f2e9a4..ce4869bccbe 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -173,7 +173,8 @@ process_rtx (desc, lineno) case DEFINE_INSN_AND_SPLIT: { const char *split_cond; - rtx split, attr; + rtx split; + rtvec attr; int i; /* Create a split with values from the insn_and_split. */ diff --git a/gcc/tree.c b/gcc/tree.c index e1551c56338..e2ffc4b41d4 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -279,6 +279,7 @@ static int type_hash_eq PARAMS ((const void*, const void*)); static unsigned int type_hash_hash PARAMS ((const void*)); static void print_type_hash_statistics PARAMS((void)); static int mark_hash_entry PARAMS((void **, void *)); +static void finish_vector_type PARAMS((tree)); /* If non-null, these are language-specific helper functions for unsave_expr_now. If present, LANG_UNSAVE is called before its