Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 19 Mar 1999 08:50:14 +0000 (08:50 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 19 Mar 1999 08:50:14 +0000 (08:50 +0000)
        * calls.c (initialize_argument_information): Mark parameters
        `num_actuals' and `n_named_args' with ATTRIBUTE_UNUSED.
        * dbxout.c (dbxout_start_new_source_file): Likewise for parameter
        `filename'.
        (dbxout_finish): Likewise for parameters `file' and `filename'.
        (dbxout_prepare_symbol): Likewise for parameter `decl'.
        (dbxout_begin_function): Likewise.
        * explow.c (hard_function_value): Likewise for parameter `func'.
        * function.c (locate_and_pad_parm): Likewise for parameter `fndecl'.
        * expmed.c (expand_divmod): Omit unused argument to `expand_abs'.
        * expr.c (expand_expr): Likewise.
        * expr.h (expand_abs): Delete unused argument from prototype.
        * optabs.c (expand_abs): Remove unused parameter `unsignedp'.
        * sdbout.c (sdbout_init): Mark parameter `syms' with ATTRIBUTE_UNUSED.
        (sdbout_end_block): Likewise for parameter `n'.
        * toplev.c (debug_define): Likewise for parameters `lineno' and
        `buffer'.
        (debug_undef): Likewise.
        * varasm.c (named_section): Likewise for parameter 'reloc'.
        (assemble_external): Likewise for parameter `decl'.
        (assemble_alias): Likewise for parameter `target'.

From-SVN: r25858

12 files changed:
gcc/ChangeLog
gcc/calls.c
gcc/dbxout.c
gcc/explow.c
gcc/expmed.c
gcc/expr.c
gcc/expr.h
gcc/function.c
gcc/optabs.c
gcc/sdbout.c
gcc/toplev.c
gcc/varasm.c

index 63a5ae9f3d7b99e31455e0f9c5f434e90d1b3665..bf6aa5c743d65fc59be3aa6447fa8a2b44a09e63 100644 (file)
@@ -1,3 +1,34 @@
+Fri Mar 19 11:19:31 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * calls.c (initialize_argument_information): Mark parameters
+       `num_actuals' and `n_named_args' with ATTRIBUTE_UNUSED.
+
+       * dbxout.c (dbxout_start_new_source_file): Likewise for parameter
+       `filename'.
+       (dbxout_finish): Likewise for parameters `file' and `filename'.
+       (dbxout_prepare_symbol): Likewise for parameter `decl'.
+       (dbxout_begin_function): Likewise.
+
+       * explow.c (hard_function_value): Likewise for parameter `func'.
+
+       * function.c (locate_and_pad_parm): Likewise for parameter `fndecl'.
+       
+       * expmed.c (expand_divmod): Omit unused argument to `expand_abs'.
+       * expr.c (expand_expr): Likewise.
+       * expr.h (expand_abs): Delete unused argument from prototype.
+       * optabs.c (expand_abs): Remove unused parameter `unsignedp'.
+
+       * sdbout.c (sdbout_init): Mark parameter `syms' with ATTRIBUTE_UNUSED.
+       (sdbout_end_block): Likewise for parameter `n'.
+       
+       * toplev.c (debug_define): Likewise for parameters `lineno' and
+       `buffer'.
+       (debug_undef): Likewise.
+       
+       * varasm.c (named_section): Likewise for parameter 'reloc'.
+       (assemble_external): Likewise for parameter `decl'.
+       (assemble_alias): Likewise for parameter `target'.
+       
 Fri Mar 19 01:54:30 1999  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
 
        * toplev.c (read_integral_parameter): Constify.  Better control of
index 185b0e123755e6774cb260cf7b5444a30f8d1c95..af96b9b60fbf9a5c1100f092f90718b48a56a4f2 100644 (file)
@@ -868,10 +868,10 @@ initialize_argument_information (num_actuals, args, args_size, n_named_args,
                                 actparms, fndecl, args_so_far,
                                 reg_parm_stack_space, old_stack_level,
                                 old_pending_adj, must_preallocate, is_const)
-     int num_actuals;
+     int num_actuals ATTRIBUTE_UNUSED;
      struct arg_data *args;
      struct args_size *args_size;
-     int n_named_args;
+     int n_named_args ATTRIBUTE_UNUSED;
      tree actparms;
      tree fndecl;
      CUMULATIVE_ARGS *args_so_far;
index cb8cea5c9187125edd2b9f54157796004e5708ed..07122ecb97f0a7f3f4feea263481899b220a6405 100644 (file)
@@ -497,7 +497,7 @@ dbxout_typedefs (syms)
 
 void
 dbxout_start_new_source_file (filename)
-     char *filename;
+     char *filename ATTRIBUTE_UNUSED;
 {
 #ifdef DBX_USE_BINCL
   struct dbx_file *n = (struct dbx_file *) xmalloc (sizeof *n);
@@ -582,8 +582,8 @@ dbxout_source_line (file, filename, lineno)
 
 void
 dbxout_finish (file, filename)
-     FILE *file;
-     char *filename;
+     FILE *file ATTRIBUTE_UNUSED;
+     char *filename ATTRIBUTE_UNUSED;
 {
 #ifdef DBX_OUTPUT_MAIN_SOURCE_FILE_END
   DBX_OUTPUT_MAIN_SOURCE_FILE_END (file, filename);
@@ -2190,7 +2190,7 @@ dbxout_symbol_name (decl, suffix, letter)
 
 static void
 dbxout_prepare_symbol (decl)
-     tree decl;
+     tree decl ATTRIBUTE_UNUSED;
 {
 #ifdef WINNING_GDB
   char *filename = DECL_SOURCE_FILE (decl);
@@ -2683,7 +2683,7 @@ dbxout_really_begin_function (decl)
 
 void
 dbxout_begin_function (decl)
-     tree decl;
+     tree decl ATTRIBUTE_UNUSED;
 {
 #ifdef DBX_FUNCTION_FIRST
   dbxout_really_begin_function (decl);
index 04c8b80f581799b2769b37775958d62dfb377db3..1c9280232660ccc0bbaebb12894a4107eb8b07fc 100644 (file)
@@ -1468,7 +1468,7 @@ probe_stack_range (first, size)
 rtx
 hard_function_value (valtype, func)
      tree valtype;
-     tree func;
+     tree func ATTRIBUTE_UNUSED;
 {
   rtx val = FUNCTION_VALUE (valtype, func);
   if (GET_CODE (val) == REG
index cf3bbbd5a0d9667de9b8a88624471f65e6f9145b..c0f0668a89c213801686ef70598a0b792d0a5c70 100644 (file)
@@ -3784,8 +3784,8 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
                remainder = expand_binop (compute_mode, sub_optab, op0, tem,
                                          remainder, 0, OPTAB_LIB_WIDEN);
              }
-           abs_rem = expand_abs (compute_mode, remainder, NULL_RTX, 0, 0);
-           abs_op1 = expand_abs (compute_mode, op1, NULL_RTX, 0, 0);
+           abs_rem = expand_abs (compute_mode, remainder, NULL_RTX, 0);
+           abs_op1 = expand_abs (compute_mode, op1, NULL_RTX, 0);
            tem = expand_shift (LSHIFT_EXPR, compute_mode, abs_rem,
                                build_int_2 (1, 0), NULL_RTX, 1);
            do_cmp_and_jump (tem, abs_op1, LTU, compute_mode, label);
index c3034c4b80286e531aa5e77e386434867712be68..0eb75b37440380aa98899f1ba75eaaac5273fd7e 100644 (file)
@@ -7205,7 +7205,7 @@ expand_expr (exp, target, tmode, modifier)
       if (TREE_UNSIGNED (type))
        return op0;
 
-      return expand_abs (mode, op0, target, unsignedp,
+      return expand_abs (mode, op0, target,
                         safe_from_p (target, TREE_OPERAND (exp, 0), 1));
 
     case MAX_EXPR:
index e4f709a143e0ee196c1d6fa9141cfa1570a3a05f..ff08035698e3e2ecb876759b3c0eebac256d8402 100644 (file)
@@ -599,7 +599,7 @@ extern int expand_twoval_binop PROTO((optab, rtx, rtx, rtx, rtx, int));
 extern rtx expand_unop PROTO((enum machine_mode, optab, rtx, rtx, int));
 
 /* Expand the absolute value operation.  */
-extern rtx expand_abs PROTO((enum machine_mode, rtx, rtx, int, int));
+extern rtx expand_abs PROTO((enum machine_mode, rtx, rtx, int));
 
 /* Expand the complex absolute value operation.  */
 extern rtx expand_complex_abs PROTO((enum machine_mode, rtx, rtx, int));
index 82ad012e9f3337531d78a84834b7e978754c3902..ac59c210a04febdb2ddaf07d2a7c9ee1a8f64e0f 100644 (file)
@@ -4961,7 +4961,7 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
      enum machine_mode passed_mode;
      tree type;
      int in_regs;
-     tree fndecl;
+     tree fndecl ATTRIBUTE_UNUSED;
      struct args_size *initial_offset_ptr;
      struct args_size *offset_ptr;
      struct args_size *arg_size_ptr;
index 0ec9066126d5df7f9c8b25f5c09cbb9b56007b80..f65c2bb3becc77ac1d536897749a6cb5ff18dd47 100644 (file)
@@ -2109,14 +2109,13 @@ expand_unop (mode, unoptab, op0, target, unsignedp)
    MODE is the mode of the operand; the mode of the result is
    different but can be deduced from MODE.
 
  UNSIGNEDP is relevant if extension is needed.  */
+ */
 
 rtx
-expand_abs (mode, op0, target, unsignedp, safe)
+expand_abs (mode, op0, target, safe)
      enum machine_mode mode;
      rtx op0;
      rtx target;
-     int unsignedp;
      int safe;
 {
   rtx temp, op1;
index f669d15040104c7ab358bb8d442c83f6ff05fb6a..e8640ff6e0ce424bb6803da2b22694c960218960 100644 (file)
@@ -338,7 +338,7 @@ void
 sdbout_init (asm_file, input_file_name, syms)
      FILE *asm_file;
      char *input_file_name;
-     tree syms;
+     tree syms ATTRIBUTE_UNUSED;
 {
 #ifdef MIPS_DEBUGGING_INFO
   current_file = (struct sdb_file *) xmalloc (sizeof *current_file);
@@ -1561,7 +1561,7 @@ void
 sdbout_end_block (file, line, n)
      FILE *file;
      int line;
-     int n;
+     int n ATTRIBUTE_UNUSED;
 {
   MAKE_LINE_SAFE (line);
 
index b51d437e0bc047cd036c7039dc72c779a9c2e2ae..2177a62b666634651f425fa4f48737cb8cb76e21 100644 (file)
@@ -5576,8 +5576,8 @@ debug_end_source_file (lineno)
 
 void
 debug_define (lineno, buffer)
-     register unsigned lineno;
-     register char *buffer;
+     register unsigned lineno ATTRIBUTE_UNUSED;
+     register char *buffer ATTRIBUTE_UNUSED;
 {
 #ifdef DWARF_DEBUGGING_INFO
   if (debug_info_level == DINFO_LEVEL_VERBOSE
@@ -5597,8 +5597,8 @@ debug_define (lineno, buffer)
 
 void
 debug_undef (lineno, buffer)
-     register unsigned lineno;
-     register char *buffer;
+     register unsigned lineno ATTRIBUTE_UNUSED;
+     register char *buffer ATTRIBUTE_UNUSED;
 {
 #ifdef DWARF_DEBUGGING_INFO
   if (debug_info_level == DINFO_LEVEL_VERBOSE
index a6ee794a3e414f0b94913e8667363f0608fade8e..456db0241f995d42bb1a721973f08eae8dad03e0 100644 (file)
@@ -264,7 +264,7 @@ void
 named_section (decl, name, reloc)
      tree decl;
      const char *name;
-     int reloc;
+     int reloc ATTRIBUTE_UNUSED;
 {
   if (decl != NULL_TREE
       && TREE_CODE_CLASS (TREE_CODE (decl)) != 'd')
@@ -1611,7 +1611,7 @@ contains_pointers_p (type)
 
 void
 assemble_external (decl)
-     tree decl;
+     tree decl ATTRIBUTE_UNUSED;
 {
 #ifdef ASM_OUTPUT_EXTERNAL
   if (TREE_CODE_CLASS (TREE_CODE (decl)) == 'd'
@@ -4336,7 +4336,7 @@ weak_finish ()
 
 void
 assemble_alias (decl, target)
-     tree decl, target;
+     tree decl, target ATTRIBUTE_UNUSED;
 {
   char *name;