aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-03-19 08:50:14 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-03-19 08:50:14 +0000
commit91813b2835a919d45b2244e0f31f8dc3165ad379 (patch)
treed824bf4af7fa66f8308e7c315b05585e2503daf4
parentc16c47fbf04fa8f4a89b78451c6c1db65feefba1 (diff)
downloadgcc-91813b2835a919d45b2244e0f31f8dc3165ad379.zip
gcc-91813b2835a919d45b2244e0f31f8dc3165ad379.tar.gz
gcc-91813b2835a919d45b2244e0f31f8dc3165ad379.tar.bz2
Warning fixes:
* 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
-rw-r--r--gcc/ChangeLog31
-rw-r--r--gcc/calls.c4
-rw-r--r--gcc/dbxout.c10
-rw-r--r--gcc/explow.c2
-rw-r--r--gcc/expmed.c4
-rw-r--r--gcc/expr.c2
-rw-r--r--gcc/expr.h2
-rw-r--r--gcc/function.c2
-rw-r--r--gcc/optabs.c5
-rw-r--r--gcc/sdbout.c4
-rw-r--r--gcc/toplev.c8
-rw-r--r--gcc/varasm.c6
12 files changed, 55 insertions, 25 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 63a5ae9..bf6aa5c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/calls.c b/gcc/calls.c
index 185b0e1..af96b9b 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -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;
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index cb8cea5..07122ec 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -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);
diff --git a/gcc/explow.c b/gcc/explow.c
index 04c8b80..1c92802 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -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
diff --git a/gcc/expmed.c b/gcc/expmed.c
index cf3bbbd..c0f0668 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -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);
diff --git a/gcc/expr.c b/gcc/expr.c
index c3034c4..0eb75b3 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -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:
diff --git a/gcc/expr.h b/gcc/expr.h
index e4f709a..ff08035 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -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));
diff --git a/gcc/function.c b/gcc/function.c
index 82ad012..ac59c21 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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;
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 0ec9066..f65c2bb 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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;
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index f669d15..e8640ff 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -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);
diff --git a/gcc/toplev.c b/gcc/toplev.c
index b51d437..2177a62 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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
diff --git a/gcc/varasm.c b/gcc/varasm.c
index a6ee794..456db02 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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;